Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.11 fixes #285

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
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
138 changes: 95 additions & 43 deletions Cargo.lock

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

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ aluvm = { version = "~0.11.0-beta.9", features = ["std", "ascii-armor"] }
commit_verify = { version = "~0.11.0-beta.9", features = ["rand", "derive"] }
single_use_seals = "~0.11.0-beta.9"
bp-core = { version = "~0.11.0-beta.9" }
secp256k1-zkp = { version = "0.11.0", features = ["rand", "rand-std", "global-context"] } # TODO: Update version before the release
bp-std = { version = "~0.11.0-beta.9.1" }
secp256k1 = { version = "0.30.0", features = ["global-context"] }
mime = "~0.3.17"
serde_crate = { package = "serde", version = "1", features = ["derive"], optional = true }
chrono = "0.4.38"
Expand All @@ -47,7 +48,7 @@ serde = [
"commit_verify/serde",
"bp-core/serde",
"aluvm/serde",
"secp256k1-zkp/serde"
"secp256k1/serde"
]

[target.'cfg(target_arch = "wasm32")'.dependencies]
Expand Down
9 changes: 4 additions & 5 deletions doc/Commitments.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,9 @@ assignments are concealed before the merklization, and range proofs are
removed from the commitment, such that an aggregation of the historical proofs
can be applied without changing the operation ids.

To ensure succinctness, other types of collections, such as redeemed and
defined valencies and list of alternate layer 1 in genesis are not merklized
and strict-serialized producing `StrictHash`, which participates in the final
`OpCommitment` structure.
To ensure succinctness, other types of collections, such as redeemed and
defined valencies in genesis are not merklized and strict-serialized producing
`StrictHash`, which participates in the final `OpCommitment` structure.

```mermaid
flowchart LR
Expand All @@ -222,7 +221,7 @@ flowchart LR
subgraph "Genesis"
schemaId --> BaseCommitment
testnet --> BaseCommitment
altLayers1 -- StrictHash --> BaseCommitment
closeMethod --> BaseCommitment
end

subgraph "Transition"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ pub mod vm;
pub mod stl;

pub mod prelude {
pub use bp::Txid;
pub use commit_verify::ReservedBytes;
pub use operation::*;
pub use schema::*;
pub use vm::XWitnessId;

#[cfg(feature = "stl")]
pub use super::stl;
Expand Down
Loading
Loading