Skip to content

0xGoerliMainnet/header_chain

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Header Chain Proof

A STARK proof of Bitcoin's header chain

Run Tests

make test

Generate Proofs

Setup

This command installs all required dependencies if you have your cairo_venv at ~/cairo_venv.

make setup

Batch Proof

This command proves a batch of headers.

make batch_proof BATCH_SIZE=63 BATCH_NUMBER=0 

Aggregate Proof

This command aggregates two batch proofs (or aggregate proofs) into a single, aggegated proof.

make aggregate_proof PREV_PROOF=batch_proofs/batch_0 NEXT_PROOF=batch_proofs/batch_1 START=0 END=125 

Increment Proof

This command extends an aggregate or batch proof with a next batch.

make increment_proof BATCH_SIZE=63 START=0 END=62 PREV_PROOF=batch_proofs/batch_0 

Develop

Update program hashes

make batch_program_hash

About

A STARK proof of Bitcoin's header chain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Cairo 76.1%
  • Python 9.4%
  • HTML 7.8%
  • Rust 3.8%
  • Makefile 1.7%
  • JavaScript 1.1%
  • Shell 0.1%