PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@polkadot/util-crypto/address
Просмотр файла: encodeMulti.js
import { encodeAddress } from './encode.js';
import { createKeyMulti } from './keyMulti.js';
/**
* @name encodeMultiAddress
* @summary Creates a multisig address.
* @description
* Creates a Substrate multisig address based on the input address and the required threshold.
*/
export function encodeMultiAddress(who, threshold, ss58Format) {
return encodeAddress(createKeyMulti(who, threshold), ss58Format);
}
Выполнить команду
Для локальной разработки. Не используйте в интернете!