SaplingNullifierDerivingKey.fromBytes constructor
SaplingNullifierDerivingKey.fromBytes(
- List<int> bytes
)
Implementation
factory SaplingNullifierDerivingKey.fromBytes(List<int> bytes) {
// Single validating parse; afterwards only raw bytes are kept.
final inner = JubJubPoint.fromBytes(
bytes.exc(
operation: "SaplingNullifierDerivingKey",
name: "bytes",
reason: "Invalid nullifier deriving key bytes length.",
length: 32,
),
);
final self = SaplingNullifierDerivingKey(inner);
self._inner = inner;
return self;
}