Skip to content

Plonky2 implementation of Solidity compatible Keccak256 circuit

License

Notifications You must be signed in to change notification settings

qope/plonky2-keccak256

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plonky2-keccak256

Plonky2 implementation of Solidity compatible Keccak256 circuit.

Usage

let mut input_target = vec![];
for i in 0..input_bits.len() {
    input_target.push(builder.constant_bool(input_bits[i]));
}
let output_target = keccak256_circuit(input_target, &mut builder);

Test


cargo test -r test_keccak256 -- --nocapture

Result


[src/keccak.rs:276] builder.num_gates() = 13702
time = 1028 ms
degree = 16384, degree_bits= 14
test keccak::tests::test_keccak256_circuit ... ok

About

Plonky2 implementation of Solidity compatible Keccak256 circuit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages