encodeSelectorEnvelopeDagCbor function

Future<Uint8List> encodeSelectorEnvelopeDagCbor(
  1. Selector selector
)

Encode a Selector wrapped in the SelectorEnvelope ({"selector": ...}) to canonical DAG-CBOR bytes.

Implementation

Future<Uint8List> encodeSelectorEnvelopeDagCbor(Selector selector) async {
  return DagCborCodec().encode(_singleKeyMap('selector', selector.toNode()));
}