toMgoBytes method

Uint8List toMgoBytes()

Returns the bytes representation of the public key prefixed with the signature scheme flag

Implementation

Uint8List toMgoBytes() {
	final bytes = toRawBytes();
	final mgoPublicKey = Uint8List(bytes.length + 1);
	mgoPublicKey.setAll(0, [flag()]);
	mgoPublicKey.setAll(1, bytes);
    return mgoPublicKey;
  }