Skip to content

Commit

Permalink
chore: remove whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
HashMapsData2Value committed Apr 26, 2024
1 parent c068a44 commit a6ffb6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/arc-0052/bip32-ed25519.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export function deriveChildNodePublic(extendedKey: Uint8Array, index: number, g:

// Step 2: Compute child public key
const zL: Uint8Array = trunc_256_minus_g_bits(z.subarray(0, 32), g)

// ######################################
// Standard BIP32-ed25519 derivation
// #######################################
Expand All @@ -182,7 +182,7 @@ export function deriveChildNodePublic(extendedKey: Uint8Array, index: number, g:
// Chris Peikert's ammendment to BIP32-ed25519 derivation
// #######################################
// zL = 8 * trunc_256_minus_g_bits (z_left_hand_side, g)

const left = new BN(zL, 16, 'le').mul(new BN(8)).toArrayLike(Buffer, 'le', 32);
const p: Uint8Array = crypto_scalarmult_ed25519_base_noclamp(left);

Expand Down

0 comments on commit a6ffb6e

Please sign in to comment.