Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bitcoin-lab

Experimental Bitcoin Script arithmetic and cryptographic primitives.

Layout

src/
├── arithmetic/       # u4, u32, fixed-width bigint, and RNS
├── hashes/           # SHA-256, BLAKE3, and BitHash128
├── signatures/       # Lamport, HORS, and Winternitz OTS
├── ciphers/          # PRINCEv2
├── curves/           # BN254 fields, groups, and pairing
└── support/          # Script execution and shared pseudo-op helpers

Every primitive directory has a README covering parameters, measured script and witness sizes, stack behavior, security assumptions, script-type compatibility, standardness, and witness hints. Shared interpretation notes are in docs/script-types.md and docs/standardness.md.

The cleaner domain paths are the canonical organization. Existing paths such as bitcoin_lab::u4, bitcoin_lab::hash, and bitcoin_lab::bn254 remain available as compatibility re-exports.

Metric snapshots

tests/primitive_metrics.rs computes documented script/witness sizes. Normal tests fail if a snapshot is stale. After an intentional script change, update the numeric README markers with:

UPDATE_PRIMITIVE_METRICS=1 cargo test --test primitive_metrics

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages