UNPKG

637 BTypeScriptView Raw
1import type { HexString } from '@polkadot/util/types';
2/**
3 * @name ed25519Sign
4 * @summary Verifies the signature on the supplied message.
5 * @description
6 * Verifies the `signature` on `message` with the supplied `publicKey`. Returns `true` on sucess, `false` otherwise.
7 * @example
8 * <BR>
9 *
10 * ```javascript
11 * import { ed25519Verify } from '@polkadot/util-crypto';
12 *
13 * ed25519Verify([...], [...], [...]); // => true/false
14 * ```
15 */
16export declare function ed25519Verify(message: HexString | Uint8Array | string, signature: HexString | Uint8Array | string, publicKey: HexString | Uint8Array | string, onlyJs?: boolean): boolean;