import { ExtendedPoint as Point } from '@noble/ed25519'; import { PrivKey, PubKey, HDPrivKey, HDPubKey } from '../internal.js'; /** * Calculates the EdDSA Point (public key) from the given bytes (private key). */ export declare function calcPoint(bytes: Uint8Array): Point; /** * Calculates a shared secret between an Ed25519 privkey and pubkey. It first * converts the keys to the Montgomery X25519 curve. */ export declare function getSharedSecret(privKey: PrivKey, pubKey: PubKey): Uint8Array; /** * Returns a point from the given bytes (compressed public key). */ export declare function pointFromBytes(bytes: string | Uint8Array): Point; /** * Converts a point to bytes (compressed public key). */ export declare function pointToBytes(point: Point): Uint8Array; /** * Signs the given message with the PrivKey and returns a 64 byte signature. */ export declare function sign(msg: Uint8Array, privKey: PrivKey | HDPrivKey | Uint8Array): Uint8Array; /** * Verifies the given signature using the specified message and Public Key. */ export declare function verify(sig: Uint8Array, msg: Uint8Array, pubKey: PubKey | HDPubKey | Uint8Array): boolean; declare module '@noble/ed25519' { interface ExtendedPoint { _scalarMult(n: bigint): ExtendedPoint; } } export { Point }; //# sourceMappingURL=ed25519.d.ts.map