toScript method

Implementation

NativeScriptScriptPubkey toScript() {
  final publickKey = Ed25519KeyHash.fromPubkey(pubKeyBytes);
  return NativeScriptScriptPubkey(publickKey);
}