From 8aaf1ba3f2f4521a8a9dabb07d3136840baad670 Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Mon, 19 Aug 2024 21:50:15 +0200 Subject: [PATCH] doc: fix MerkleConceal byte length --- commit_verify/doc/MPC.drawio | 234 +++++++++++++++++------------------ commit_verify/doc/MPC.svg | 2 +- 2 files changed, 118 insertions(+), 118 deletions(-) diff --git a/commit_verify/doc/MPC.drawio b/commit_verify/doc/MPC.drawio index 6bf8eb11..ad1ebe95 100644 --- a/commit_verify/doc/MPC.drawio +++ b/commit_verify/doc/MPC.drawio @@ -1,34 +1,34 @@ - + - + - + - + - + - + - + - + - + - + @@ -36,46 +36,46 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -85,31 +85,31 @@ - + - + - + - + - + - + - + - + - + @@ -117,61 +117,61 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -181,7 +181,7 @@ - + @@ -192,13 +192,13 @@ - + - + - + @@ -207,7 +207,7 @@ - + @@ -217,13 +217,13 @@ - + - + - + @@ -233,58 +233,58 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -294,7 +294,7 @@ - + @@ -304,127 +304,127 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/commit_verify/doc/MPC.svg b/commit_verify/doc/MPC.svg index 79d705d9..3a1b118f 100644 --- a/commit_verify/doc/MPC.svg +++ b/commit_verify/doc/MPC.svg @@ -1,4 +1,4 @@ -
0x10
protocol_id
message
1
32
32
Leaf::Inhabited
SHA256t(urn:ubideco:merkle:node#2024-01-31)
0x11
Leaf::Entropy
entropy
pos
8
4
1
MerkleHash
hash
32
branching
depth
32
1
width
node1
node2
1
32
32
MerkleNode
NodeBranching
u8
MerkleNode
u256
MerkleNode
98 bytes:
13 bytes:
65 bytes:
ProtocolId
Message
u64
u32
tag
tag
VIRTUAL_LEAF = u256::MAX
32
NodeBranching
0x00: empty (two virtual leafs)
0x01: single (one virtual leaf)
0x02: branch
tag
Commitment
hash
32
depth
cofactor
merkle_root
1
2
32
MerkleConcealed
65 bytes:
u16
MerkleHash
u5
SHA256t(urn:ubideco:mpc:commitment#2024-01-31)
Leaf::Inhabited
MerkleNode
NodeBranching::Single
Leaf::entropy
MerkleNode
NodeBranching::Empty
Leaf::Inhabited
MerkleNode
NodeBranching::Branch
Leaf::entropy
Leaf::entropy
cofactor=3
width=8
(2^depth)
depth=3
\ No newline at end of file +
0x10
protocol_id
message
1
32
32
Leaf::Inhabited
SHA256t(urn:ubideco:merkle:node#2024-01-31)
0x11
Leaf::Entropy
entropy
pos
8
4
1
MerkleHash
hash
32
branching
depth
32
1
width
node1
node2
1
32
32
MerkleNode
NodeBranching
u8
MerkleNode
u256
MerkleNode
98 bytes:
13 bytes:
65 bytes:
ProtocolId
Message
u64
u32
tag
tag
VIRTUAL_LEAF = u256::MAX
32
NodeBranching
0x00: empty (two virtual leafs)
0x01: single (one virtual leaf)
0x02: branch
tag
Commitment
hash
32
depth
cofactor
merkle_root
1
2
32
MerkleConcealed
35 bytes:
u16
MerkleHash
u5
SHA256t(urn:ubideco:mpc:commitment#2024-01-31)
Leaf::Inhabited
MerkleNode
NodeBranching::Single
Leaf::entropy
MerkleNode
NodeBranching::Empty
Leaf::Inhabited
MerkleNode
NodeBranching::Branch
Leaf::entropy
Leaf::entropy
cofactor=3
width=8
(2^depth)
depth=3
\ No newline at end of file