fix(util-crypto): use correct x/y getters in secp256k1Expand (#2018)

This commit is contained in:
AndreasGassmann
2026-03-13 16:50:22 -04:00
committed by GitHub
parent a8732a99aa
commit 372d460f1a
+3 -3
View File
@@ -21,10 +21,10 @@ export function secp256k1Expand (publicKey: Uint8Array, onlyJs?: boolean): Uint8
return wasm(publicKey).subarray(1);
}
const { px, py } = secp256k1.ProjectivePoint.fromHex(publicKey);
const { x, y } = secp256k1.ProjectivePoint.fromHex(publicKey);
return u8aConcat(
bnToU8a(px, BN_BE_256_OPTS),
bnToU8a(py, BN_BE_256_OPTS)
bnToU8a(x, BN_BE_256_OPTS),
bnToU8a(y, BN_BE_256_OPTS)
);
}