Skip to content

Commit 3504108

Browse files
committed
mpc: fix tag values
1 parent acc4afb commit 3504108

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

commit_verify/src/mpc/atoms.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ impl CommitEncode for Leaf {
102102
}
103103

104104
impl CommitmentId for Leaf {
105-
// TODO: Use a real midstate
106-
const TAG: [u8; 32] = [0u8; 32];
105+
const TAG: [u8; 32] = *b"urn:lnpbp:lnpbp4:leaf:v01#230202";
107106
type Id = MerkleNode;
108107
}
109108

commit_verify/src/mpc/block.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,7 @@ impl CommitEncode for MerkleBlock {
448448
}
449449

450450
impl CommitmentId for MerkleBlock {
451-
// TODO: Use a real midstate
452-
const TAG: [u8; 32] = [0u8; 32];
451+
const TAG: [u8; 32] = *b"urn:lnpbp:lnpbp4:tree:v01#230202";
453452
type Id = Commitment;
454453
}
455454

0 commit comments

Comments
 (0)