You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bip-0175.mediawiki
+22-18Lines changed: 22 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ Hardened derivation is used at this level.
74
74
75
75
===Payment address generation===
76
76
77
-
For a given contract documents denoted by c<sub>1</sub>,...,c<sub>n</sub>, payment base extended public key denoted by <code>payment_base</code>, and cryptographic hash function denoted by <code>h</code>.
77
+
For a given contract documents denoted by c<sub>1</sub>,...,c<sub>n</sub>, payment base extended public key denoted by <code>payment_base</code>, and cryptographic hash function denoted by <code>h</code>.
78
78
79
79
1. Compute cryptographic hashes for all contract documents, by applying the hash function.
80
80
@@ -84,9 +84,9 @@ For a given contract documents denoted by c<sub>1</sub> ,...,c<sub>n</sub>, paym
84
84
85
85
hash_1,...,hash_n
86
86
87
-
3. Concatenate the sorted hashes and apply the hash function.
87
+
3. Prepend payment_base and concatenate the sorted hashes and apply the hash function.
88
88
89
-
h(hash_1+...+hash_n)
89
+
h(payment_base+hash_1+...+hash_n)
90
90
91
91
4. Compute a partial BIP32 derivation path from the combined hash as defined in Hash to Partial Derivation Path Mapping procedure below.
92
92
@@ -171,28 +171,28 @@ document 2:
171
171
172
172
3. Concatenate hashes and apply the hash function.
0 commit comments