PHP WebShell
Текущая директория: /opt/BitGoJS/modules/utxo-core/dist/src/descriptor/psbt
Просмотр файла: sign.d.ts
import * as utxolib from '@bitgo/utxo-lib';
import { Psbt as WasmPsbt } from '@bitgo/wasm-miniscript';
/** These can be replaced when @bitgo/wasm-miniscript is updated */
export type SignPsbtInputResult = {
Schnorr: string[];
} | {
Ecdsa: string[];
};
export type SignPsbtResult = {
[inputIndex: number]: SignPsbtInputResult;
};
/**
* @param signResult
* @return the number of new signatures created by the signResult for a single input
*/
export declare function getNewSignatureCountForInput(signResult: SignPsbtInputResult): number;
/**
* @param signResult
* @return the number of new signatures created by the signResult
*/
export declare function getNewSignatureCount(signResult: SignPsbtResult): number;
type Key = Buffer | utxolib.BIP32Interface | utxolib.ECPairInterface;
/** Convenience function to sign a PSBT with a key */
export declare function signWithKey(psbt: WasmPsbt, key: Key): SignPsbtResult;
export {};
//# sourceMappingURL=sign.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!