PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@polkadot/util-crypto/address
Просмотр файла: encodeDerived.js
import { decodeAddress } from './decode.js';
import { encodeAddress } from './encode.js';
import { createKeyDerived } from './keyDerived.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 function encodeDerivedAddress(who, index, ss58Format) {
return encodeAddress(createKeyDerived(decodeAddress(who), index), ss58Format);
}
Выполнить команду
Для локальной разработки. Не используйте в интернете!