@polkadot/util-crypto
Version:
A collection of useful crypto utilities for @polkadot
12 lines (11 loc) • 506 B
TypeScript
/// <reference types="bn.js" />
import type { BN } from '@polkadot/util';
import type { HexString } from '@polkadot/util/types';
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: (HexString | Uint8Array | string)[], threshold: bigint | BN | number, ss58Format?: Prefix): string;