Vkeywitness.deserialize constructor

Vkeywitness.deserialize(
  1. CborListValue cbor
)

Deserialize a Vkeywitness from a CBOR list value.

Implementation

factory Vkeywitness.deserialize(CborListValue cbor) {
  return Vkeywitness(
    vKey: Vkey.deserialize(cbor.getIndex(0)),
    signature: Ed25519Signature.deserialize(cbor.getIndex(1)),
  );
}