NativeScriptScriptPubkey.fromPubKey constructor

NativeScriptScriptPubkey.fromPubKey(
  1. List<int> pubkeyBytes
)

Constructs a NativeScriptScriptPubkey from a public key.

Implementation

factory NativeScriptScriptPubkey.fromPubKey(List<int> pubkeyBytes) {
  return NativeScriptScriptPubkey(Ed25519KeyHash.fromPubkey(pubkeyBytes));
}