@polkadot/util-crypto
Version:
A collection of useful crypto utilities for @polkadot
11 lines (10 loc) • 439 B
TypeScript
/// <reference types="bn.js" />
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;