Skip to content

Commit 8733d5b

Browse files
committed
Remove verbose comments
1 parent a733cce commit 8733d5b

File tree

5 files changed

+0
-6
lines changed

5 files changed

+0
-6
lines changed

packages/avalanche/src/tx.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { BigNumber } from 'bignumber.js'
77

88
/** @ignore */
99
export function publicKeyToAddress (pk: Uint8Array, hrp: string): AvalancheAddressSet {
10-
// Convert public key using @noble/curves
1110
const point = secp256k1.Point.fromHex(pk)
1211

1312
// NOTE: avalanchejs publicKeyBytesToAddress expects compressed public key!!! (otherwise you get wrong address)

packages/cosmos/src/tx.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,6 @@ export async function getEthermintAccount (lcdUrl: string, address: string): Pro
380380

381381
/** @ignore */
382382
export function publicKeyToAddress (pk: Uint8Array, bechPrefix: string): string {
383-
// Convert public key to compressed format using @noble/curves
384383
const point = secp256k1.Point.fromHex(pk)
385384
const pkCompressed = point.toBytes(true)
386385

@@ -389,7 +388,6 @@ export function publicKeyToAddress (pk: Uint8Array, bechPrefix: string): string
389388

390389
/** @ignore */
391390
export function publicKeyToEthBasedAddress (pk: Uint8Array, bechPrefix: string): string {
392-
// Convert public key to uncompressed format using @noble/curves
393391
const point = secp256k1.Point.fromHex(pk)
394392
const pkUncompressed = point.toBytes(false)
395393

packages/ethereum/src/staker.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ export class EthereumStaker {
6767
static getAddressDerivationFn =
6868
() =>
6969
async (publicKey: Uint8Array): Promise<Array<string>> => {
70-
// Convert public key to uncompressed format using @noble/curves
7170
const point = secp256k1.Point.fromHex(publicKey)
7271
const pkUncompressed = point.toBytes(false)
7372
const hash = keccak256(pkUncompressed.subarray(1))

packages/hyperliquid/src/staker.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ export class HyperliquidStaker {
9898
static getAddressDerivationFn =
9999
() =>
100100
async (publicKey: Uint8Array): Promise<Array<string>> => {
101-
// Convert public key to uncompressed format using @noble/curves
102101
const point = secp256k1.Point.fromHex(publicKey)
103102
const pkUncompressed = point.toBytes(false)
104103
const hash = keccak256(pkUncompressed.subarray(1))

packages/monad/src/staker.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ export class MonadStaker {
8383
static getAddressDerivationFn =
8484
() =>
8585
async (publicKey: Uint8Array): Promise<Array<string>> => {
86-
// Convert public key to uncompressed format using @noble/curves
8786
const point = secp256k1.Point.fromHex(publicKey)
8887
const pkUncompressed = point.toBytes(false)
8988
const hash = keccak256(pkUncompressed.subarray(1))

0 commit comments

Comments
 (0)