@polkadot/util-crypto
Version:
A collection of useful crypto utilities for @polkadot
10 lines (9 loc) • 407 B
TypeScript
import type { BN } from '@polkadot/util';
import type { Prefix } from './types.js';
/**
* @name encodeMultiAddress
* @summary Creates a multisig address.
* @description
* Creates a Substrate multisig address based on the input address and the required threshold.
*/
export declare function encodeMultiAddress(who: (string | Uint8Array)[], threshold: bigint | BN | number, ss58Format?: Prefix): string;