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

Reserve bytes in anchor for the future new types and SPVs #81

Merged
merged 1 commit into from
Mar 19, 2024
Merged
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
4 changes: 2 additions & 2 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 @@ -88,7 +88,7 @@ getrandom = { version = "0.2", features = ["js"] }
wasm-bindgen-test = "0.3"

[package.metadata.docs.rs]
features = [ "all" ]
features = ["all"]

[patch.crates-io]
commit_verify = { git = "https://github.com/LNP-BP/client_side_validation", branch = "master" }
commit_verify = { git = "https://github.com/LNP-BP/client_side_validation", branch = "reserved" }
13 changes: 13 additions & 0 deletions dbc/src/anchor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

use bc::{Tx, Txid};
use commit_verify::mpc::{self, Message, ProtocolId};
use commit_verify::ReservedBytes;
use strict_encoding::{StrictDumb, StrictEncode};

use crate::{DbcMethod, Method, LIB_NAME_BPCORE};
Expand Down Expand Up @@ -68,9 +69,15 @@
serde(crate = "serde_crate", rename_all = "camelCase")
)]
pub struct Anchor<L: mpc::Proof + StrictDumb, D: dbc::Proof<M>, M: DbcMethod = Method> {
/// Bytes reserved for enum tag for the future versions of anchors.
pub reserved1: ReservedBytes<1>,

/// Transaction containing deterministic bitcoin commitment.
pub txid: Txid,

/// Bytes reserved for the optional SPV information.
pub reserved2: ReservedBytes<1>,

/// Structured multi-protocol LNPBP-4 data the transaction commits to.
pub mpc_proof: L,

Expand All @@ -87,7 +94,9 @@
/// proofs.
pub fn new(witness_txid: Txid, mpc_proof: L, dbc_proof: D) -> Self {
Self {
reserved1: default!(),

Check warning on line 97 in dbc/src/anchor.rs

View check run for this annotation

Codecov / codecov/patch

dbc/src/anchor.rs#L97

Added line #L97 was not covered by tests
txid: witness_txid,
reserved2: default!(),

Check warning on line 99 in dbc/src/anchor.rs

View check run for this annotation

Codecov / codecov/patch

dbc/src/anchor.rs#L99

Added line #L99 was not covered by tests
mpc_proof,
dbc_proof,
_method: PhantomData,
Expand Down Expand Up @@ -121,7 +130,9 @@
let lnpbp4_proof =
mpc::MerkleBlock::with(&self.mpc_proof, protocol_id.into(), message.into())?;
Ok(Anchor {
reserved1: self.reserved1,

Check warning on line 133 in dbc/src/anchor.rs

View check run for this annotation

Codecov / codecov/patch

dbc/src/anchor.rs#L133

Added line #L133 was not covered by tests
txid: self.txid,
reserved2: self.reserved2,

Check warning on line 135 in dbc/src/anchor.rs

View check run for this annotation

Codecov / codecov/patch

dbc/src/anchor.rs#L135

Added line #L135 was not covered by tests
mpc_proof: lnpbp4_proof,
dbc_proof: self.dbc_proof,
_method: default!(),
Expand Down Expand Up @@ -181,7 +192,9 @@
) -> Result<Anchor<mpc::MerkleProof, D, M>, mpc::LeafNotKnown> {
let lnpbp4_proof = self.mpc_proof.to_merkle_proof(protocol.into())?;
Ok(Anchor {
reserved1: self.reserved1,

Check warning on line 195 in dbc/src/anchor.rs

View check run for this annotation

Codecov / codecov/patch

dbc/src/anchor.rs#L195

Added line #L195 was not covered by tests
txid: self.txid,
reserved2: self.reserved2,

Check warning on line 197 in dbc/src/anchor.rs

View check run for this annotation

Codecov / codecov/patch

dbc/src/anchor.rs#L197

Added line #L197 was not covered by tests
mpc_proof: lnpbp4_proof,
dbc_proof: self.dbc_proof,
_method: default!(),
Expand Down
2 changes: 1 addition & 1 deletion src/stl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use strict_types::{CompileError, LibBuilder, TypeLib};
/// Strict types id for the library providing data types from [`dbc`] and
/// [`seals`] crates.
pub const LIB_ID_BPCORE: &str =
"urn:ubideco:stl:BeAiDVK898mzgHrmWgxHtysDhmffgMEoDwBgNuZo7QeZ#connect-verona-secret";
"urn:ubideco:stl:9pKFs7Gw7gwerYGVcPCDqiCv5fa165qC6PvFxiotJjaG#rebel-herbert-tourist";

fn _bp_core_stl() -> Result<TypeLib, CompileError> {
LibBuilder::new(libname!(LIB_NAME_BPCORE), tiny_bset! {
Expand Down
2 changes: 2 additions & 0 deletions stl/Anchor.MerkleBlock.Tapret.vesper
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
AnchorMerkleBlockTapretProof rec
reserved1 bytes len=1 aka=ReservedBytes1
txid bytes len=32 aka=Txid
reserved2 bytes len=1 aka=ReservedBytes1
mpcProof rec MerkleBlock
depth enum {
U5 _0=0 _1=1 _2=2 _3=3 _4=4 _5=5 _6=6 _7=7
Expand Down
2 changes: 2 additions & 0 deletions stl/Anchor.MerkleProof.Tapret.vesper
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
AnchorMerkleProofTapretProof rec
reserved1 bytes len=1 aka=ReservedBytes1
txid bytes len=32 aka=Txid
reserved2 bytes len=1 aka=ReservedBytes1
mpcProof rec MerkleProof
pos is U32
cofactor is U16
Expand Down
2 changes: 2 additions & 0 deletions stl/Anchor.MerkleTree.Opret.vesper
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
AnchorMerkleTreeOpretProof rec
reserved1 bytes len=1 aka=ReservedBytes1
txid bytes len=32 aka=Txid
reserved2 bytes len=1 aka=ReservedBytes1
mpcProof rec MerkleTree
depth enum {
U5 _0=0 _1=1 _2=2 _3=3 _4=4 _5=5 _6=6 _7=7
Expand Down
2 changes: 2 additions & 0 deletions stl/Anchor.MerkleTree.Tapret.vesper
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
AnchorMerkleTreeTapretProof rec
reserved1 bytes len=1 aka=ReservedBytes1
txid bytes len=32 aka=Txid
reserved2 bytes len=1 aka=ReservedBytes1
mpcProof rec MerkleTree
depth enum {
U5 _0=0 _1=1 _2=2 _3=3 _4=4 _5=5 _6=6 _7=7
Expand Down
145 changes: 82 additions & 63 deletions stl/[email protected]
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
-----BEGIN STRICT TYPE LIB-----
Id: urn:ubideco:stl:BeAiDVK898mzgHrmWgxHtysDhmffgMEoDwBgNuZo7QeZ#connect-verona-secret
Id: urn:ubideco:stl:9pKFs7Gw7gwerYGVcPCDqiCv5fa165qC6PvFxiotJjaG#rebel-herbert-tourist
Name: BPCore
Dependency: 7qvjR4HCwJKF3mxE5GqsAaADces5JDRwb8ajAse9mkz3#exhibit-karate-ritual
Dependency: 7EpM1uymEteG4g4xmF5ntKYX1wXXpbQj5iLiDreH4jWa#protein-donald-cool
Dependency: DzTvt9gGhPUKD8Dkkjk9PDBhkJ4gtWxXWQjxnmUYLNrs#voyage-kimono-disco
Dependency: HX2UBak8vPsTokug1DGMDvTpzns3xUdwZ7QJdyt4qBA9#speed-atlanta-trilogy
Checksum-SHA256: 64929409fba4ac73a0e4add2e174504c170ed17008f31180956f05569ceee36c
Checksum-SHA256: f7bced17d414c08d760e039a06c43277e985cc1fba332ddfe415af8a36008cb3

20~CnZ*pY=Wv;<0l-(Pe$^)UD5K7r}*s>bq5$WSxcMKAy3WKnC3`1{iZE18?WpZg
20~CnZ*pY=T(C5e*2&|@7ZL8K8p|GAt|gDDdvc%!k2x;ddcL`H3`1{iZE18?WpZg
|dBFtCMqVsrZe&e(V->r|?y|b&t*2isXxNhAA_oAshyzn}Wc6$lVk7oBr%DNv+($
;q`HHK!gIHa)*%m(-e#9sm3I{@IbYpL6ZUYBGX>?<6X>JGrA>%$n#j0HLDJN5-IK
gM_J7b(p+0MPGk2Gl)y2(Rz1Xgc#bS10xxe^o?x}!PNUwajGr*TW+dUY6G&@nZ7)
Expand All @@ -15,69 +15,88 @@ a87SzWk_LjXkV<^ZRI~s#T41Gjc0(`3ajfaCJX&HEu+ACq+L0mO$tn9VP;cfa%pg
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STRICT TYPE LIB-----

Binary file modified stl/[email protected]
Binary file not shown.
41 changes: 27 additions & 14 deletions stl/[email protected]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-
Id: urn:ubideco:stl:BeAiDVK898mzgHrmWgxHtysDhmffgMEoDwBgNuZo7QeZ#connect-verona-secret
Id: urn:ubideco:stl:9pKFs7Gw7gwerYGVcPCDqiCv5fa165qC6PvFxiotJjaG#rebel-herbert-tourist
Name: BPCore
Version: 0.1.0
Description: Bitcoin client-side-validation library
Expand All @@ -11,13 +11,14 @@
@context
typelib BPCore

import CommitVerify#7qvjR4HCwJKF3mxE5GqsAaADces5JDRwb8ajAse9mkz3#exhibit-karate-ritual
import CommitVerify#7EpM1uymEteG4g4xmF5ntKYX1wXXpbQj5iLiDreH4jWa#protein-donald-cool
use MerkleTree#side-locate-bonus
use ProtocolId#gamma-banjo-corona
use Message#shampoo-bishop-morgan
use MerkleHash#culture-metro-modular
use MerkleBlock#miracle-antenna-moral
use MerkleProof#labor-hilton-magenta
use ReservedBytes1#joker-lemon-mental
use TreeNode#risk-opinion-orca

import Std#DzTvt9gGhPUKD8Dkkjk9PDBhkJ4gtWxXWQjxnmUYLNrs#voyage-kimono-disco
Expand All @@ -34,33 +35,45 @@ import Bitcoin#HX2UBak8vPsTokug1DGMDvTpzns3xUdwZ7QJdyt4qBA9#speed-atlanta-trilog
use XOnlyPk#evident-finance-promo


@mnemonic(promo-byte-ceramic)
data AnchorMerkleBlockOpretProof : txid Bitcoin.Txid#cowboy-diego-betty
@mnemonic(marvin-austin-fame)
data AnchorMerkleBlockOpretProof : reserved1 CommitVerify.ReservedBytes1#joker-lemon-mental
, txid Bitcoin.Txid#cowboy-diego-betty
, reserved2 CommitVerify.ReservedBytes1#joker-lemon-mental
, mpcProof CommitVerify.MerkleBlock#miracle-antenna-moral
, dbcProof OpretProof

@mnemonic(tarzan-grille-telecom)
data AnchorMerkleBlockTapretProof : txid Bitcoin.Txid#cowboy-diego-betty
@mnemonic(bottle-mozart-mimosa)
data AnchorMerkleBlockTapretProof : reserved1 CommitVerify.ReservedBytes1#joker-lemon-mental
, txid Bitcoin.Txid#cowboy-diego-betty
, reserved2 CommitVerify.ReservedBytes1#joker-lemon-mental
, mpcProof CommitVerify.MerkleBlock#miracle-antenna-moral
, dbcProof TapretProof

@mnemonic(absent-eric-armada)
data AnchorMerkleProofOpretProof : txid Bitcoin.Txid#cowboy-diego-betty
@mnemonic(flag-center-weather)
data AnchorMerkleProofOpretProof : reserved1 CommitVerify.ReservedBytes1#joker-lemon-mental
, txid Bitcoin.Txid#cowboy-diego-betty
, reserved2 CommitVerify.ReservedBytes1#joker-lemon-mental
, mpcProof CommitVerify.MerkleProof#labor-hilton-magenta
, dbcProof OpretProof

@mnemonic(harvest-biscuit-smile)
data AnchorMerkleProofTapretProof : txid Bitcoin.Txid#cowboy-diego-betty
@mnemonic(camel-mentor-taboo)
data AnchorMerkleProofTapretProof : reserved1 CommitVerify.ReservedBytes1#joker-lemon-mental
, txid Bitcoin.Txid#cowboy-diego-betty
, reserved2 CommitVerify.ReservedBytes1#joker-lemon-mental
, mpcProof CommitVerify.MerkleProof#labor-hilton-magenta
, dbcProof TapretProof

@mnemonic(gemini-france-egypt)
data AnchorMerkleTreeOpretProof : txid Bitcoin.Txid#cowboy-diego-betty
@mnemonic(clock-bazooka-cadet)
data AnchorMerkleTreeOpretProof : reserved1 CommitVerify.ReservedBytes1#joker-lemon-mental
, txid Bitcoin.Txid#cowboy-diego-betty
, reserved2 CommitVerify.ReservedBytes1#joker-lemon-mental
, mpcProof CommitVerify.MerkleTree#side-locate-bonus
, dbcProof OpretProof

@mnemonic(forward-spiral-parade)
data AnchorMerkleTreeTapretProof : txid Bitcoin.Txid#cowboy-diego-betty
@mnemonic(vacuum-fluid-acid)
data AnchorMerkleTreeTapretProof : reserved1 CommitVerify.ReservedBytes1#joker-lemon-mental
, txid Bitcoin.Txid#cowboy-diego-betty
, reserved2 CommitVerify.ReservedBytes1#joker-lemon-mental
, mpcProof CommitVerify.MerkleTree#side-locate-bonus
, dbcProof TapretProof

Expand Down
Loading