PHP WebShell

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

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

import { Transaction, bitgo } from '@bitgo/utxo-lib';
export declare const BIP322_TAG = "BIP0322-signed-message";
/**
 * Perform a tagged hash
 *
 * @param {string | Buffer} message - The message to hash as a Buffer or utf-8 string
 * @param {Buffer} [tag=BIP322_TAG] - The tag to use for hashing, defaults to BIP322_TAG.
 * @returns {Buffer} - The resulting hash of the message with the tag.
 */
export declare function hashMessageWithTag(message: string | Buffer, tag?: string): Buffer;
/**
 * Build a BIP322 "to spend" transaction
 * Source: https://github.com/bitcoin/bips/blob/master/bip-0322.mediawiki#full
 *
 * @param {Buffer} scriptPubKey - The scriptPubKey to use for the output
 * @param {string | Buffer} message - The message to include in the transaction
 * @param {Buffer} [tag=BIP322_TAG] - The tag to use for hashing, defaults to BIP322_TAG.
 * @returns {Transaction} - The constructed transaction
 */
export declare function buildToSpendTransaction(scriptPubKey: Buffer, message: string | Buffer, tag?: string): Transaction<bigint>;
export declare function buildToSpendTransactionFromChainAndIndex(rootWalletKeys: bitgo.RootWalletKeys, chain: bitgo.ChainCode, index: number, message: string | Buffer, tag?: string): Transaction<bigint>;
//# sourceMappingURL=toSpend.d.ts.map

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


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