@polkadot/util-crypto
Version:
A collection of useful crypto utilities for @polkadot
10 lines (9 loc) • 434 B
TypeScript
import type { HexString } from '@polkadot/util/types';
import type { Prefix } from './types.js';
/**
* @name deriveAddress
* @summary Creates a sr25519 derived address from the supplied and path.
* @description
* Creates a sr25519 derived address based on the input address/publicKey and the uri supplied.
*/
export declare function deriveAddress(who: HexString | Uint8Array | string, suri: string, ss58Format?: Prefix): string;