Skip to content

Commit b79ff70

Browse files
committed
update deps
1 parent 6651e04 commit b79ff70

17 files changed

+122
-133
lines changed

Cargo.lock

+24-41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ edition = "2021"
2222
license = "Apache-2.0"
2323

2424
[workspace.dependencies]
25-
amplify = "~4.7.0"
26-
strict_encoding = "~2.7.0"
27-
strict_types = "~2.7.2"
25+
amplify = "~4.8.0"
26+
strict_encoding = "~2.8.1"
27+
strict_types = "~2.8.2"
2828
commit_verify = "0.11.0"
2929
single_use_seals = "0.11.0"
3030
bp-consensus = { version = "0.11.1-alpha.1", path = "./consensus" }

consensus/src/stl.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,21 @@ use crate::{
3232
};
3333

3434
pub const LIB_ID_BP_TX: &str =
35-
"stl:9WwTYiP2-OadKCZP-cR0bJ!Y-qruINYX-bXZFj8Y-fsQoGgo#signal-color-cipher";
35+
"stl:9WwTYiP2-OadKCZP-cR0bJ_Y-qruINYX-bXZFj8Y-fsQoGgo#signal-color-cipher";
3636
pub const LIB_ID_BP_CONSENSUS: &str =
37-
"stl:q7G95wzt-SxT2BMV-t!PokBt-wNYgZTu-AaYAtM3-rYjlzs4#agenda-wolf-pagoda";
37+
"stl:wUfEZiWN-tvMpLYq-~h1iQC3-bHNSjiW-h9d7O0t-i154uQ0#quiz-patent-exit";
3838

3939
#[deprecated(since = "0.10.8", note = "use _bp_tx_stl instead")]
4040
fn _bitcoin_stl() -> Result<TypeLib, CompileError> { _bp_tx_stl() }
4141

4242
fn _bp_tx_stl() -> Result<TypeLib, CompileError> {
43-
LibBuilder::new(libname!(LIB_NAME_BITCOIN), None).transpile::<Tx>().compile()
43+
LibBuilder::with(libname!(LIB_NAME_BITCOIN), None).transpile::<Tx>().compile()
4444
}
4545

4646
fn _bp_consensus_stl() -> Result<TypeLib, CompileError> {
47-
LibBuilder::new(libname!(LIB_NAME_BITCOIN), tiny_bset! {
48-
strict_types::stl::std_stl().to_dependency(),
49-
})
47+
LibBuilder::with(libname!(LIB_NAME_BITCOIN), [
48+
strict_types::stl::std_stl().to_dependency_types()
49+
])
5050
.transpile::<LegacySig>()
5151
.transpile::<Bip340Sig>()
5252
.transpile::<OpCode>()

seals/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ path = "src/lib.rs"
1818

1919
[dependencies]
2020
amplify = { workspace = true }
21-
baid64 = "0.2.2"
21+
baid64 = "0.4.1"
2222
single_use_seals = { workspace = true }
2323
commit_verify = { workspace = true }
2424
strict_encoding = { workspace = true }

seals/src/secret.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ mod test {
7373

7474
#[test]
7575
fn secret_seal_baid64() {
76-
let baid64 = "utxob:xDfmDF9g-yNOjriV-6Anbe6H-MLJ!!g6-lo7Dd4f-dhWBW8S-XYGBm";
76+
let baid64 = "utxob:xDfmDF9g-yNOjriV-6Anbe6H-MLJ__g6-lo7Dd4f-dhWBW8S-XYGBm";
7777
let seal: SecretSeal = baid64.parse().unwrap();
7878
assert_eq!(baid64, seal.to_string());
7979
assert_eq!(seal.to_string(), seal.to_baid64_string());

src/bin/bpcore-stl.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use strict_types::{parse_args, SystemBuilder};
3434
fn main() {
3535
let (format, dir) = parse_args();
3636

37-
let mut lib = bc::stl::bp_tx_stl();
37+
let mut lib = bp_tx_stl();
3838
lib.name = libname!("Tx");
3939
lib.serialize(
4040
format,
@@ -81,14 +81,14 @@ fn main() {
8181
.expect("unable to write to the file");
8282

8383
let std = std_stl();
84-
let tx = bp_tx_stl();
84+
let consensus = bp_consensus_stl();
8585
let bp = bp_core_stl();
8686
let cv = commit_verify_stl();
8787

8888
let sys = SystemBuilder::new()
8989
.import(bp)
9090
.unwrap()
91-
.import(tx)
91+
.import(consensus)
9292
.unwrap()
9393
.import(cv)
9494
.unwrap()

src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ pub extern crate dbc;
4848
pub extern crate seals;
4949

5050
#[cfg(feature = "stl")]
51-
#[macro_use]
5251
extern crate amplify;
5352
#[cfg(feature = "stl")]
5453
#[macro_use]

src/stl.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ use strict_types::{CompileError, LibBuilder, TypeLib};
3131
/// Strict types id for the library providing data types from [`dbc`] and
3232
/// [`seals`] crates.
3333
pub const LIB_ID_BPCORE: &str =
34-
"stl:abxDwrpE-mSRfNo!-x4bvuzi-vlsho8Y-uyxOx7l-vkBy9KE#alfonso-andrea-nitro";
34+
"stl:Pes7Egpg-6IfFCxl-fFGcbh6-sLkFInB-w26eHfd-unAO5JE#juliet-super-dominic";
3535

3636
fn _bp_core_stl() -> Result<TypeLib, CompileError> {
37-
LibBuilder::new(libname!(LIB_NAME_BPCORE), tiny_bset! {
38-
strict_types::stl::std_stl().to_dependency(),
39-
bc::stl::bp_tx_stl().to_dependency(),
40-
commit_verify::stl::commit_verify_stl().to_dependency()
41-
})
37+
LibBuilder::with(libname!(LIB_NAME_BPCORE), [
38+
strict_types::stl::std_stl().to_dependency_types(),
39+
bc::stl::bp_consensus_stl().to_dependency_types(),
40+
commit_verify::stl::commit_verify_stl().to_dependency_types(),
41+
])
4242
.transpile::<dbc::Anchor<TapretProof>>()
4343
.transpile::<dbc::Anchor<OpretProof>>()
4444
.transpile::<seals::txout::ExplicitSeal<TxPtr>>()

stl/Anchor.Opret.vesper

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
AnchorOpretProof rec
2-
mpcProof rec MerkleProof
3-
pos is U32
4-
cofactor is U16
5-
path list len=0..32
6-
element bytes len=32 aka=MerkleHash
7-
dbcProof is Unit aka=OpretProof
1+
rec AnchorOpretProof
2+
rec mpcProof, MerkleProof
3+
is pos, U32
4+
is cofactor, U16
5+
list path, len 0..32
6+
bytes element, len 32, aka MerkleHash
7+
is dbcProof, Unit, aka OpretProof

stl/Anchor.Tapret.vesper

+18-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
AnchorTapretProof rec
2-
mpcProof rec MerkleProof
3-
pos is U32
4-
cofactor is U16
5-
path list len=0..32
6-
element bytes len=32 aka=MerkleHash
7-
dbcProof rec TapretProof
8-
pathProof rec TapretPathProof
9-
some union TapretNodePartner option wrapped tag=1
10-
rightBranch rec TapretRightBranch wrapped tag=2
11-
nonce is U8
1+
rec AnchorTapretProof
2+
rec mpcProof, MerkleProof
3+
is pos, U32
4+
is cofactor, U16
5+
list path, len 0..32
6+
bytes element, len 32, aka MerkleHash
7+
rec dbcProof, TapretProof
8+
rec pathProof, TapretPathProof
9+
union some, TapretNodePartner, option, wrapped, tag 1
10+
bytes leftNode, len 32, wrapped, aka TapNodeHash, tag 0
11+
rec rightLeaf, LeafScript, wrapped, tag 1
12+
is version, U8, aka LeafVer
13+
bytes script, len 0..MAX32, aka ScriptBytes
14+
rec rightBranch, TapretRightBranch, wrapped, tag 2
15+
bytes leftNodeHash, len 32, aka TapNodeHash
16+
bytes rightNodeHash, len 32, aka TapNodeHash
17+
is nonce, U8
18+
bytes internalPk, len 32, aka InternalPk, aka XOnlyPk

0 commit comments

Comments
 (0)