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: EIPS/eip-2333.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ Keys are defined in terms of a tree structure where a key is determined by the t
43
43
44
44
### The Tree Structure
45
45
46
-
The key tree is defined purely through the relationship between a child-node and its ancestors. Starting with the root of the tree, the *master key*, a child node can be derived by knowing the parent's private key and the index of the child. The tree is broken up into depths which are indicated by `/` and the master node is described as `m`. The first child of the master node is therefore described as `m / 0` and `m / 0`'s siblings are `m / i` for all `0 < i < 2**64`.
46
+
The key tree is defined purely through the relationship between a child-node and its ancestors. Starting with the root of the tree, the *master key*, a child node can be derived by knowing the parent's private key and the index of the child. The tree is broken up into depths which are indicated by `/` and the master node is described as `m`. The first child of the master node is therefore described as `m / 0` and `m / 0`'s siblings are `m / i` for all `0 <= i < 2**32`.
47
47
48
48
```text
49
49
[m / 0] - [m / 0 / 0]
@@ -93,7 +93,7 @@ Every key generated via the key derivation process derives a child key via a set
93
93
##### Inputs
94
94
95
95
*`parent_SK`, the BLS Secret Key of the parent node
96
-
*`index`, the index of the desired child node, an integer `0 <= index < 2^64`
96
+
*`index`, the index of the desired child node, an integer `0 <= index < 2^32`
97
97
98
98
##### Outputs
99
99
@@ -109,7 +109,7 @@ Every key generated via the key derivation process derives a child key via a set
109
109
##### Procedure
110
110
111
111
```text
112
-
0. salt = I2OSP(index, 8)
112
+
0. salt = I2OSP(index, 4)
113
113
1. IKM = I2OSP(parent_SK, 32)
114
114
2. lamport_0 = IKM_to_lamport_SK(IKM, salt)
115
115
3. not_IKM = flip_bits(IKM)
@@ -161,7 +161,7 @@ The child key derivation function takes in the parent's private key and the inde
161
161
##### Inputs
162
162
163
163
*`parent_SK`, the secret key of the parent node, a big endian encoded integer
164
-
*`index`, the index of the desired child node, an integer `0 <= index < 2^64`
164
+
*`index`, the index of the desired child node, an integer `0 <= index < 2^32`
0 commit comments