Skip to content

Commit 37da2bb

Browse files
chore: rearranged lines to align with steps in paper
1 parent c068a44 commit 37da2bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/arc-0052/bip32-ed25519.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export function deriveChildNodePublic(extendedKey: Uint8Array, index: number, g:
172172

173173
// Step 2: Compute child public key
174174
const zL: Uint8Array = trunc_256_minus_g_bits(z.subarray(0, 32), g)
175-
175+
176176
// ######################################
177177
// Standard BIP32-ed25519 derivation
178178
// #######################################
@@ -182,7 +182,7 @@ export function deriveChildNodePublic(extendedKey: Uint8Array, index: number, g:
182182
// Chris Peikert's ammendment to BIP32-ed25519 derivation
183183
// #######################################
184184
// zL = 8 * trunc_256_minus_g_bits (z_left_hand_side, g)
185-
185+
186186
const left = new BN(zL, 16, 'le').mul(new BN(8)).toArrayLike(Buffer, 'le', 32);
187187
const p: Uint8Array = crypto_scalarmult_ed25519_base_noclamp(left);
188188

0 commit comments

Comments
 (0)