@polkadot/util-crypto
Version:
A collection of useful crypto utilities for @polkadot
7 lines (6 loc) • 308 B
TypeScript
import type { HexString } from '@polkadot/util/types';
/**
* @name sr25519Agreement
* @description Key agreement between other's public key and self secret key
*/
export declare function sr25519Agreement(secretKey: HexString | Uint8Array | string, publicKey: HexString | Uint8Array | string): Uint8Array;