/** * Shared secp256k1 helpers for encryption/decryption paths. * Scanning can pass compressed announcement pubkeys here directly, which avoids expanding `pkx` * into a full uncompressed key inside the hot loop. */ import { BigNumberish } from '../ethers'; /** * @notice Rebuilds a compressed secp256k1 public key from its x-coordinate and prefix bit * @param pkx x-coordinate of the compressed public key * @param prefix Prefix byte, must be 2 or 3 * @returns Compressed public key as a 0x-prefixed hex string */ export declare function compressedPublicKeyFromX(pkx: BigNumberish, prefix?: number | string): string; /** * @notice Computes the Umbra shared-secret hash for a private/public key pair * @dev The first byte is discarded so compressed keys with different prefix parity still derive the same secret * @param privateKey Private key as hex string with 0x prefix * @param publicKey Compressed or uncompressed public key as hex string with 0x prefix * @returns 32-byte sha256 hash of the ECDH shared secret */ export declare function getSharedSecretHash(privateKey: string, publicKey: string): string; //# sourceMappingURL=sharedSecret.d.ts.map