A command-line utility to calculate Scrolls nonces from funding UTXOs.
Calculates a nonce value by:
- Taking a funding UTXO ID and output index
- Computing SHA256 hash of
{funding_utxo_id}:{output_index} - Extracting the first 8 bytes and converting to a u64 (little-endian)
cargo install --path .scrolls-nonce <funding_utxo_id> <output_index>scrolls-nonce abc123def456:0 0This will output a numeric nonce value.
MIT