SaplingFullViewingKey.fromBytes constructor

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

Implementation

factory SaplingFullViewingKey.fromBytes(List<int> bytes) {
  bytes = bytes.exc(
    operation: "SaplingFullViewingKey",
    name: "bytes",
    reason: "Invalid full view key bytes length.",
    length: 96,
  );
  return SaplingFullViewingKey(
    ovk: SaplingOutgoingViewingKey(bytes.sublist(64)),
    vk: SaplingViewingKey.fromBytes(bytes.sublist(0, 64)),
  );
}