@scrow/tapscript
Version:
A development build of tapscript. Built for escrow.
21 lines (17 loc) • 971 B
text/typescript
import { Bytes } from '@cmdcode/buff'
import { TxInput, ScriptData } from './index.js'
export interface SigHashOptions {
extension ?: Bytes // Extend hash with additional commitment (for taproot).
extflag ?: number // Set the extention version flag (future use).
txindex ?: number // Index value of the input you wish to sign for.
key_version ?: number // Set the key version flag (future use).
pubkey ?: Bytes // Verify using this pubkey instead of the tapkey.
script ?: ScriptData // Use this script for signing and validation.
separator_pos ?: number // If using OP_CODESEPARATOR, specify the latest opcode position.
sigflag ?: number // Set the signature type flag.
throws ?: boolean // Should throw an exception on failure.
txinput ?: TxInput // Use this txinput for signing and validation.
}
export interface SignerAPI {
sign : (msg : Bytes) => Bytes
}