Skip to content

Commit

Permalink
commmit: add strict serialization to mpc::MerkleBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Dec 17, 2023
1 parent 6251885 commit 6b634bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion commit_verify/src/mpc/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use std::collections::{BTreeMap, BTreeSet};

use amplify::confinement::{Confined, LargeVec};
use amplify::num::u5;
use strict_encoding::StrictEncode;
use strict_encoding::{StrictDeserialize, StrictEncode, StrictSerialize};

use crate::id::CommitmentId;
use crate::merkle::{MerkleBuoy, MerkleNode};
Expand Down Expand Up @@ -158,6 +158,9 @@ pub struct MerkleBlock {
entropy: Option<u64>,
}

impl StrictSerialize for MerkleBlock {}
impl StrictDeserialize for MerkleBlock {}

impl Proof for MerkleBlock {}

impl From<&MerkleTree> for MerkleBlock {
Expand Down

0 comments on commit 6b634bc

Please sign in to comment.