UNPKG

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