Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 14 additions & 52 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ libflate = "2"
log = "0.4.20"
num-bigint = { version = "0.4.6", features = ["rand", "serde"] }
num-integer = "0.1.45"
ocaml = { version = "0.22.2" }
ocaml-gen = { version = "1.0.0" }
ocaml = { version = "1.3.0" }
ocaml-gen = { git = "https://github.com/o1-labs/ocaml-gen.git", branch = "lyh/bump-ocaml-rs-to-1.3.0" }
once_cell = "=1.21.3"
os_pipe = { version = "1.1.4", features = ["io_safety"] }
paste = "1.0.15"
Expand Down
8 changes: 4 additions & 4 deletions poseidon/src/sponge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,12 @@ pub mod caml {
// ScalarChallenge<F> <-> CamlScalarChallenge<CamlF>
//

#[derive(Debug, Clone, ocaml::IntoValue, ocaml::FromValue, ocaml_gen::Struct)]
pub struct CamlScalarChallenge<CamlF>(pub CamlF);
#[derive(Debug, Clone, ocaml::ToValue, ocaml::FromValue, ocaml_gen::Struct)]
pub struct CamlScalarChallenge<CamlF: ocaml::ToValue + ocaml::FromValue>(pub CamlF);

impl<F, CamlF> From<ScalarChallenge<F>> for CamlScalarChallenge<CamlF>
where
CamlF: From<F>,
CamlF: From<F> + ocaml::ToValue + ocaml::FromValue,
{
fn from(sc: ScalarChallenge<F>) -> Self {
Self(sc.0.into())
Expand All @@ -289,7 +289,7 @@ pub mod caml {

impl<F, CamlF> From<CamlScalarChallenge<CamlF>> for ScalarChallenge<F>
where
CamlF: Into<F>,
CamlF: Into<F> + ocaml::ToValue + ocaml::FromValue,
{
fn from(caml_sc: CamlScalarChallenge<CamlF>) -> Self {
Self(caml_sc.0.into())
Expand Down
Loading