Add signature verify method

This commit is contained in:
junderw 2019-07-08 15:46:06 +09:00
commit d0d94c7f06
No known key found for this signature in database
GPG key ID: B256185D3A971908
4 changed files with 170 additions and 13 deletions

1
types/psbt.d.ts vendored
View file

@ -29,6 +29,7 @@ export declare class Psbt extends PsbtBase {
inputResults: boolean[];
};
finalizeInput(inputIndex: number): boolean;
validateSignatures(inputIndex: number, pubkey?: Buffer): boolean;
signInput(inputIndex: number, keyPair: Signer): this;
signInputAsync(inputIndex: number, keyPair: SignerAsync): Promise<void>;
}