deserialize static method

ADAByronAddress deserialize(
  1. CborBytesValue cbor, {
  2. ADANetwork? network,
})
override

Deserializes a CBOR object into an ADAByronAddress instance.

Implementation

static ADAByronAddress deserialize(CborBytesValue cbor,
    {ADANetwork? network}) {
  final CborListValue cborList = CborObject.fromCbor(cbor.value).cast();
  final addr = ADAByronAddr.deserialize(cborList.encode());
  return ADAByronAddress(addr.encode(), network: network);
}