Skip to content

Commit

Permalink
seals: improve mmb APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Dec 22, 2024
1 parent b59221a commit cdacf2a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion seals/src/txout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,16 @@ pub mod mmb {
fn from(hasher: Sha256) -> Self { hasher.finish().into() }

Check warning on line 72 in seals/src/txout.rs

View check run for this annotation

Codecov / codecov/patch

seals/src/txout.rs#L72

Added line #L72 was not covered by tests
}

impl From<Commitment> for mpc::Message {
fn from(msg: Commitment) -> Self { mpc::Message::from_byte_array(msg.to_byte_array()) }

Check warning on line 76 in seals/src/txout.rs

View check run for this annotation

Codecov / codecov/patch

seals/src/txout.rs#L76

Added line #L76 was not covered by tests
}

#[derive(Clone, Ord, PartialOrd, Eq, PartialEq, Hash, Debug)]
#[derive(StrictType, StrictDumb, StrictEncode, StrictDecode)]

Check warning on line 80 in seals/src/txout.rs

View check run for this annotation

Codecov / codecov/patch

seals/src/txout.rs#L80

Added line #L80 was not covered by tests
#[strict_type(lib = dbc::LIB_NAME_BPCORE)]
#[derive(CommitEncode)]
#[commit_encode(strategy = strict, id = Commitment)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize), serde(rename_all = "camelCase"))]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct BundleProof {
pub map: SmallOrdMap<u32, Message>,
}
Expand Down

0 comments on commit cdacf2a

Please sign in to comment.