SaplingPaymentAddress.fromBytes constructor

SaplingPaymentAddress.fromBytes(
  1. List<int> bytes
)

Implementation

factory SaplingPaymentAddress.fromBytes(List<int> bytes) {
  bytes = bytes.exc(
    operation: "SaplingPaymentAddress",
    name: "bytes",
    reason: "Invalid sapling address bytes length.",
    length: 43,
  );
  return SaplingPaymentAddress(
    transmissionKey: SaplingDiversifiedTransmissionKey.fromBytes(
      bytes.sublist(11),
    ),
    diversifier: Diversifier(bytes.sublist(0, 11)),
  );
}