Documentation
¶
Overview ¶
Package ncroot provides Go bindings to the Rust FFI function that computes the Orchard note commitment tree root from a hex-encoded frontier.
The orchardTree field from lightwalletd's TreeState is a hex string encoding a serialized CommitmentTree. Computing the root requires Sinsemilla hashing which is only available in Rust. This package bridges Go ↔ Rust via CGo.
It requires the Rust static library to be built first:
cargo build --release --manifest-path sdk/circuits/Cargo.toml
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractNcRoot ¶
ExtractNcRoot computes the Orchard note commitment tree root from a hex-encoded frontier string (the orchardTree field from lightwalletd).
Returns the 32-byte Sinsemilla-based root.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.