Skip to content

crate-crypto/proto-danksharding-crypto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proto-Danksharding Cryptography

Usage

// Create a context. This is insecure as it uses a \tau
// which is known
let context = Context::new_insecure();

// Prover
let blobs = ...
let proof = context.compute_aggregated_kzg_proof(blobs);

// Verifier
//
let blob_comms = context.blobs_to_kzg_commitments(blobs);
let valid = context.verify_aggregated_kzg_proof(blobs, blob_comms, proof);
assert!(valid)

Benchmarks

  • cargo bench --features insecure

Specs

https://github.com/ethereum/consensus-specs/blob/dev/specs/eip4844/validator.md#compute_proof_from_blobs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages