SaplingIvk.fromBytes constructor

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

Implementation

factory SaplingIvk.fromBytes(List<int> bytes) {
  return SaplingIvk(
    JubJubNativeFr.fromBytes(
      bytes.exc(
        operation: "SaplingIvk",
        name: "bytes",
        reason: "Invalid ivk bytes length.",
        length: 32,
      ),
    ),
  );
}