SaplingIncomingViewingKey.fromBytes constructor

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

Implementation

factory SaplingIncomingViewingKey.fromBytes(List<int> bytes) {
  bytes = bytes.exc(
    operation: "SaplingIncomingViewingKey",
    name: "bytes",
    reason: "Invalid incoming view key bytes length.",
    length: 64,
  );
  return SaplingIncomingViewingKey(
    dk: SaplingDiversifierKey(bytes.sublist(0, 32)),
    ivk: SaplingIvk.fromBytes(bytes.sublist(32)),
  );
}