eip4844 0.8.1

This crate provides an implementation of the cryptography needed for EIP-4844
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use kzg_single_open::{prover::CommitKey, verifier::VerificationKey};
pub use trusted_setup::TrustedSetup;

pub fn commit_key_from_setup(setup: &TrustedSetup) -> CommitKey {
    CommitKey::new(setup.g1_monomial.clone())
}

pub fn verification_key_from_setup(setup: &TrustedSetup) -> VerificationKey {
    VerificationKey {
        gen_g1: setup.g1_monomial[0],
        gen_g2: setup.g2_monomial[0],
        tau_g2: setup.g2_monomial[1],
    }
}