pedersenHash abstract method

BuBytes pedersenHash({
  1. required int personal,
  2. int layer = 0,
  3. required BuBytes packedBits,
  4. required int bitLen,
})

Pedersen hash over packed LSB-first bits → 32-byte Jubjub compressed. personal selects the generator set (0 = note commitment, 1 = Merkle tree at layer); bitLen is the number of significant bits in packedBits. Routes to the active backend (pure-Dart PedersenHash, or native Rust). Throws on crypto failure.

Implementation

BuBytes pedersenHash({
  required int personal,
  int layer = 0,
  required BuBytes packedBits,
  required int bitLen,
});