@polkadot/util-crypto
Version:
A collection of useful crypto utilities for @polkadot
10 lines (9 loc) • 436 B
TypeScript
import type { BN } from '@polkadot/util';
import type { Prefix } from './types.js';
/**
* @name encodeDerivedAddress
* @summary Creates a derived address as used in Substrate utility.
* @description
* Creates a Substrate derived address based on the input address/publicKey and the index supplied.
*/
export declare function encodeDerivedAddress(who: string | Uint8Array, index: bigint | BN | number, ss58Format?: Prefix): string;