NativeScriptScriptPubkey.deserialize constructor
NativeScriptScriptPubkey.deserialize(
- CborListValue cbor
Deserializes a NativeScriptScriptPubkey from CBOR.
Implementation
factory NativeScriptScriptPubkey.deserialize(CborListValue cbor) {
NativeScriptUtils.validateCborTypeObject(
cbor.getIndex(0), NativeScriptType.scriptPubkey);
return NativeScriptScriptPubkey(
Ed25519KeyHash.deserialize(cbor.getIndex<CborBytesValue>(1)),
);
}