PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/utxo-lib/dist/src/bitgo

Просмотр файла: keyutil.d.ts

import { ECPairInterface } from 'ecpair';
import { Network } from '../networks';
/**
 * Create an ECPair from the raw private key bytes
 * @param {Buffer} buffer - Private key for the ECPair. Must be exactly 32 bytes.
 * @param {Object} [network] - Network for the ECPair. Defaults to bitcoin.
 * @return {ECPair}
 */
export declare function privateKeyBufferToECPair(buffer: Buffer, network?: Network): ECPairInterface;
/**
 * Get the private key as a 32 bytes buffer. If it is smaller than 32 bytes, pad it with zeros
 * @param {ECPair} ecPair
 * @return Buffer 32 bytes
 */
export declare function privateKeyBufferFromECPair(ecPair: ECPairInterface): Buffer;
/**
 * Converts an extended key from one network to another by updating its version bytes.
 *
 * Handles both public and private keys, allowing conversion between networks like
 * Bitcoin Mainnet and Testnet.
 *
 * @returns The extended key with the updated network version.
 */
export declare function convertExtendedKeyNetwork(extendedKey: string, fromNetwork: Network, targetNetwork: Network): string;
//# sourceMappingURL=keyutil.d.ts.map

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


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