PHP WebShell

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

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

import * as utxolib from '@bitgo/utxo-lib';
/** This function adds the entropy and signature into the PSBT output unknown key vals.
 * We store the entropy so that we reconstruct the message <ENTROPY><ADDRESS><UUID>
 * to later verify.
 *
 * @param psbt - PSBT that we need to encode our paygo address into
 * @param outputIndex - the index of the address in our output
 * @param sig - the signature that we want to encode
 * @param entropy - the arbitrary entropy bytes from our vasp proof
 */
export declare function addPayGoAddressProof(psbt: utxolib.bitgo.UtxoPsbt, outputIndex: number, sig: Buffer, entropy: Buffer): void;
/** Verify the paygo address signature is valid using verification pub key.
 *
 * @param psbt - PSBT we want to verify that the paygo address is in
 * @param outputIndex - we have the output index that address is in
 * @param verificationPubkey - the pubkey signed by the HSM to verify our message
 * @returns
 */
export declare function verifyPayGoAddressProof(psbt: utxolib.bitgo.UtxoPsbt, outputIndex: number, verificationPubkey: Buffer): void;
/** Get the output index of the paygo output if there is one. It does this by
 * checking if the metadata is on one of the outputs of the PSBT. If there is
 * no paygo output, return undefined
 *
 * @param psbt
 * @returns number - the index of the output address
 */
export declare function getPayGoAddressProofOutputIndex(psbt: utxolib.bitgo.UtxoPsbt): number | undefined;
export declare function psbtOutputIncludesPaygoAddressProof(psbt: utxolib.bitgo.UtxoPsbt): boolean;
//# sourceMappingURL=payGoAddressProof.d.ts.map

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


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