sinsemillaShortCommit method
Sinsemilla shortCommit → LE Fp x, or null only when commit is undefined
(Dart incomplete-point / Rust sinsemilla_null). Other failures throw.
Implementation
@override
BuBytes? sinsemillaShortCommit({
required List<int> r,
required List<bool> bits,
String domain = 'z.cash:Orchard-CommitIvk',
}) {
if (r.length != 32) {
throw CoreErrors.cryptoFailed(
'sinsemillaShortCommit',
reason: 'r must be 32-byte LE Vesta Fq',
);
}
return _optional(
api.sinsemillaShortCommit(
domain: domain,
packedBits: _packBits(bits),
bitLen: bits.length,
r: r.asBytes,
),
'sinsemillaShortCommit',
);
}