decodeSelectorDagCbor function
- Uint8List bytes
Decode a selector from DAG-CBOR bytes. A bare selector or a
{"selector": ...} envelope are both accepted.
Implementation
Future<Selector> decodeSelectorDagCbor(Uint8List bytes) async {
return _parseMaybeEnveloped(await DagCborCodec().decode(bytes));
}