SaplingPaymentAddress.fromBytesUnchecked constructor

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

Implementation

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