import { CryptoBackend, XOnlyPointAddTweakResult } from './backend.js'; import { Bytes32, MessageHash, PrivateKey, PublicKey, SchnorrSignature, Signature, XOnlyPublicKey } from './branded.js'; /** * {@link CryptoBackend} implementation backed by `@noble/curves/secp256k1`. * * Pure JavaScript, no native dependencies. * * Prefer {@link createNobleBackend} for construction. */ export declare class NobleBackend implements CryptoBackend { /** @inheritDoc */ isPrivate(d: Uint8Array): boolean; /** @inheritDoc */ isPoint(p: Uint8Array): boolean; /** @inheritDoc */ isXOnlyPoint(p: Uint8Array): boolean; /** @inheritDoc */ pointFromScalar(d: PrivateKey, compressed?: boolean): PublicKey | null; /** @inheritDoc */ pointCompress(p: PublicKey, compressed?: boolean): PublicKey; /** @inheritDoc */ pointAddScalar(p: PublicKey, tweak: Bytes32, compressed?: boolean): PublicKey | null; /** @inheritDoc */ xOnlyPointAddTweak(p: XOnlyPublicKey, tweak: Bytes32): XOnlyPointAddTweakResult | null; /** @inheritDoc */ privateAdd(d: PrivateKey, tweak: Bytes32): PrivateKey | null; /** @inheritDoc */ privateNegate(d: PrivateKey): PrivateKey; /** @inheritDoc */ sign(hash: MessageHash, privateKey: PrivateKey, extraEntropy?: Uint8Array): Signature; /** @inheritDoc */ verify(hash: MessageHash, publicKey: PublicKey, signature: Signature): boolean; /** @inheritDoc */ signSchnorr(hash: MessageHash, privateKey: PrivateKey, extraEntropy?: Uint8Array): SchnorrSignature; /** @inheritDoc */ verifySchnorr(hash: MessageHash, publicKey: XOnlyPublicKey, signature: SchnorrSignature): boolean; } /** * Creates a {@link NobleBackend} instance. * * @returns A new pure-JS secp256k1 backend powered by `@noble/curves`. */ export declare function createNobleBackend(): NobleBackend; //# sourceMappingURL=noble.d.ts.map