diff --git a/Cargo.lock b/Cargo.lock index 2f8bc71dfb..8ff9a63094 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -870,6 +870,10 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "47716fe1ae67969c5e0b2ef826f32db8c3be72be325e1aa3c1951d06b5575ec5" +[[package]] +name = "halo2_poseidon" +version = "0.0.0" + [[package]] name = "halo2_proofs" version = "0.3.0" diff --git a/Cargo.toml b/Cargo.toml index b7878ae843..6e2af51bb1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,5 +2,6 @@ members = [ "halo2", "halo2_gadgets", + "halo2_poseidon", "halo2_proofs", ] diff --git a/halo2_poseidon/Cargo.toml b/halo2_poseidon/Cargo.toml new file mode 100644 index 0000000000..c975ae4839 --- /dev/null +++ b/halo2_poseidon/Cargo.toml @@ -0,0 +1,17 @@ +[package] +name = "halo2_poseidon" +version = "0.0.0" +authors = [ + "Jack Grigg ", + "Daira Emma Hopwood ", + "Ying Tong Lai", +] +edition = "2021" +rust-version = "1.60" +description = "The Poseidon algebraic hash function for Halo 2" +license = "MIT OR Apache-2.0" +repository = "https://github.com/zcash/halo2" +readme = "README.md" +categories = ["cryptography"] + +[dependencies] diff --git a/halo2_poseidon/README.md b/halo2_poseidon/README.md new file mode 100644 index 0000000000..7a455df6b4 --- /dev/null +++ b/halo2_poseidon/README.md @@ -0,0 +1,25 @@ +# halo2_poseidon [![Crates.io](https://img.shields.io/crates/v/halo2_poseidon.svg)](https://crates.io/crates/halo2_poseidon) # + +Requires Rust 1.60+. + +## Documentation + +- [The Halo 2 Book](https://zcash.github.io/halo2/) +- [Crate documentation](https://docs.rs/halo2_gadgets) + +## License + +Licensed under either of + + * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or + http://www.apache.org/licenses/LICENSE-2.0) + * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) + +at your option. + +### Contribution + +Unless you explicitly state otherwise, any contribution intentionally +submitted for inclusion in the work by you, as defined in the Apache-2.0 +license, shall be dual licensed as above, without any additional terms or +conditions. diff --git a/halo2_poseidon/src/lib.rs b/halo2_poseidon/src/lib.rs new file mode 100644 index 0000000000..e69de29bb2