Skip to content
Open
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Changes

- Remove ocaml-interop dependency, fix
[#1235](https://github.com/o1-labs/mina-rust/issues/1235)
([#1646](https://github.com/o1-labs/mina-rust/pull/1646))

## [0.18.0] - 2025-11-04

### OCaml node
Expand Down
35 changes: 0 additions & 35 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ num_cpus = "1.0"
num_enum = "0.5.7"
o1-utils = { git = "https://github.com/o1-labs/proof-systems", rev = "0b0fd5fe73964d2a3628c788e40ead819a8a806d" }
object = "0.37.1"
ocaml-interop = { git = "https://github.com/sebastiencs/ocaml-interop.git", branch = "closure-values" }
once_cell = "1"
p256 = { version = "0.13", features = ["default", "ecdh", "ecdsa"] }
p384 = "0.13"
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ setup-taplo: ## Install taplo TOML formatter
@if taplo --version 2>/dev/null | grep -q ${TAPLO_CLI_VERSION}; then \
echo "taplo ${TAPLO_CLI_VERSION} already installed"; \
else \
cargo install taplo-cli --version ${TAPLO_CLI_VERSION} --force; \
cargo +nightly install taplo-cli --version ${TAPLO_CLI_VERSION} --force; \
fi

.PHONY: setup
Expand Down
3 changes: 1 addition & 2 deletions core/src/block/genesis.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
use crate::constants::{constraint_constants, slots_per_window};
use mina_p2p_messages::{
bigint::InvalidBigInt,
v2::{self, StateHash},
};

use crate::constants::{constraint_constants, slots_per_window};

#[allow(clippy::too_many_arguments)]
pub fn genesis_and_negative_one_protocol_states(
constants: v2::MinaBaseProtocolConstantsCheckedValueStableV1,
Expand Down
14 changes: 5 additions & 9 deletions core/src/block/mod.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
mod block_with_hash;
pub use block_with_hash::{BlockHeaderWithHash, BlockWithHash};

mod applied_block;
pub use applied_block::AppliedBlock;

pub mod prevalidate;

mod block_with_hash;
pub mod genesis;
pub mod prevalidate;

use std::sync::Arc;

pub use applied_block::AppliedBlock;
pub use block_with_hash::{BlockHeaderWithHash, BlockWithHash};
pub use mina_p2p_messages::v2::{
MinaBlockBlockStableV2 as Block, MinaBlockHeaderStableV2 as BlockHeader, StateHash as BlockHash,
};

use std::sync::Arc;
pub type ArcBlock = Arc<Block>;
pub type ArcBlockWithHash = BlockWithHash<Arc<Block>>;
3 changes: 1 addition & 2 deletions core/src/block/prevalidate.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use serde::{Deserialize, Serialize};

use super::ArcBlockWithHash;
use crate::constants::PROTOCOL_VERSION;
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug, Clone)]
pub enum BlockPrevalidationError {
Expand Down
1 change: 0 additions & 1 deletion ledger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ wasm-bindgen-futures = { workspace = true }

[target.'cfg(not(target_family = "wasm"))'.dependencies]
zstd = { workspace = true, optional = true }
ocaml-interop = { workspace = true, optional = true }
reqwest = { workspace = true, features = ["blocking"] }

[dev-dependencies]
Expand Down
23 changes: 0 additions & 23 deletions ledger/dune

This file was deleted.

152 changes: 0 additions & 152 deletions ledger/mina_tree.ml

This file was deleted.

32 changes: 12 additions & 20 deletions ledger/src/account/account.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
use std::{io::Cursor, str::FromStr, sync::Arc};

use ark_ff::{BigInteger256, One, UniformRand, Zero};
use mina_core::constants::PROTOCOL_VERSION;
use mina_curves::pasta::Fp;
use mina_p2p_messages::{
binprot::{BinProtRead, BinProtWrite},
v2,
};
use mina_signer::CompressedPubKey;
use once_cell::sync::{Lazy, OnceCell};
use rand::{prelude::ThreadRng, seq::SliceRandom, Rng};
use serde::{Deserialize, Serialize};

use crate::{
gen_compressed,
proofs::{
Expand All @@ -31,6 +17,15 @@ use crate::{
zkapps::snark::FlaggedOption,
AppendToInputs as _, MerklePath, MyCow, ToInputs,
};
use ark_ff::{BigInteger256, One, UniformRand, Zero};
use mina_core::constants::PROTOCOL_VERSION;
use mina_curves::pasta::Fp;
use mina_p2p_messages::{
binprot::{BinProtRead, BinProtWrite},
v2,
};
use mina_signer::CompressedPubKey;
use once_cell::sync::{Lazy, OnceCell};
use poseidon::hash::{
hash_noinputs, hash_with_kimchi,
params::{
Expand All @@ -39,6 +34,9 @@ use poseidon::hash::{
},
Inputs,
};
use rand::{prelude::ThreadRng, seq::SliceRandom, Rng};
use serde::{Deserialize, Serialize};
use std::{io::Cursor, str::FromStr, sync::Arc};

use super::common::*;

Expand Down Expand Up @@ -424,12 +422,6 @@ pub struct VerificationKey {
pub wrap_vk: Option<()>,
}

// impl From<VerificationKey> for MinaBaseVerificationKeyWireStableV1Base64 {
// fn from(value: VerificationKey) -> Self {
// MinaBaseVerificationKeyWireStableV1Base64((&value).into())
// }
// }

impl Check<Fp> for VerificationKey {
fn check(&self, w: &mut Witness<Fp>) {
let Self {
Expand Down
12 changes: 5 additions & 7 deletions ledger/src/account/common.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
use std::str::FromStr;

use ark_ff::{UniformRand, Zero};
use mina_curves::pasta::Fp;
use o1_utils::{field_helpers::FieldHelpersError, FieldHelpers};
use serde::{Deserialize, Serialize};

use crate::{
proofs::{
field::{Boolean, FieldWitness, ToBoolean},
Expand All @@ -17,6 +10,11 @@ use crate::{
scan_state::currency::{Amount, Balance, Magnitude, Slot, SlotSpan},
ControlTag, ToInputs,
};
use ark_ff::{UniformRand, Zero};
use mina_curves::pasta::Fp;
use o1_utils::{field_helpers::FieldHelpersError, FieldHelpers};
use serde::{Deserialize, Serialize};
use std::str::FromStr;

#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct VotingFor(pub Fp);
Expand Down
Loading
Loading