Skip to content

CharmsDev/scrolls-nonce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Compute Scrolls address nonce

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages