BootstrapWitness.fromJson constructor

BootstrapWitness.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory BootstrapWitness.fromJson(Map<String, dynamic> json) {
  return BootstrapWitness(
      vkey: Vkey.fromHex(json['vkey']),
      signature: Ed25519Signature.fromHex(json['signature']),
      chainCode: BytesUtils.fromHexString(json['chain_code']),
      attributes: BytesUtils.fromHexString(json['attributes']));
}