PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/@polkadot/util-crypto/key

Просмотр файла: hdkdDerive.js

export function createSeedDeriveFn(fromSeed, derive) {
    return (keypair, { chainCode, isHard }) => {
        if (!isHard) {
            throw new Error('A soft key was found in the path and is not supported');
        }
        return fromSeed(derive(keypair.secretKey.subarray(0, 32), chainCode));
    };
}

Выполнить команду


Для локальной разработки. Не используйте в интернете!