Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 586 Bytes

File metadata and controls

34 lines (22 loc) · 586 Bytes

scrolls-nonce

A command-line utility to calculate Scrolls nonces from funding UTXOs.

What it does

Calculates a nonce value by:

  1. Taking a funding UTXO ID and output index
  2. Computing SHA256 hash of {funding_utxo_id}:{output_index}
  3. Extracting the first 8 bytes and converting to a u64 (little-endian)

Installation

cargo install --path .

Usage

scrolls-nonce <funding_utxo_id> <output_index>

Example

scrolls-nonce abc123def456:0 0

This will output a numeric nonce value.

License

MIT