@bsv/sdk
Version:
BSV Blockchain Software Development Kit
36 lines • 1.35 kB
TypeScript
import Signature from './Signature.js';
import BigNumber from './BigNumber.js';
import Script from '../script/Script.js';
import TransactionInput from '../transaction/TransactionInput.js';
import TransactionOutput from '../transaction/TransactionOutput.js';
export default class TransactionSignature extends Signature {
static readonly SIGHASH_ALL = 1;
static readonly SIGHASH_NONE = 2;
static readonly SIGHASH_SINGLE = 3;
static readonly SIGHASH_FORKID = 64;
static readonly SIGHASH_ANYONECANPAY = 128;
scope: number;
static format(params: {
sourceTXID: string;
sourceOutputIndex: number;
sourceSatoshis: number;
transactionVersion: number;
otherInputs: TransactionInput[];
outputs: TransactionOutput[];
inputIndex: number;
subscript: Script;
inputSequence: number;
lockTime: number;
scope: number;
}): number[];
static fromChecksigFormat(buf: number[]): TransactionSignature;
constructor(r: BigNumber, s: BigNumber, scope: number);
/**
* Compares to bitcoind's IsLowDERSignature
* See also Ecdsa signature algorithm which enforces this.
* See also Bip 62, "low S values in signatures"
*/
hasLowS(): boolean;
toChecksigFormat(): number[];
}
//# sourceMappingURL=TransactionSignature.d.ts.map