encodeSelectorDagJson function

Future<Uint8List> encodeSelectorDagJson(
  1. Selector selector
)

Encode a Selector to canonical DAG-JSON bytes.

Implementation

Future<Uint8List> encodeSelectorDagJson(Selector selector) async {
  return DagJsonCodec().encode(selector.toNode());
}