@@ -4,11 +4,10 @@ import {
44 getDefaultVersionGroupIdForVersion ,
55 ZcashTransaction ,
66} from './ZcashTransaction' ;
7- import { Network , PsbtTransaction , Signer } from '../../' ;
7+ import { Network , PsbtTransaction } from '../../' ;
88import { Psbt as PsbtBase } from 'bip174' ;
99import * as types from 'bitcoinjs-lib/src/types' ;
10- import { ValidateSigFunction } from 'bitcoinjs-lib/src/psbt' ;
11- import { ProprietaryKeySubtype , PSBT_PROPRIETARY_IDENTIFIER , withUnsafeNonSegwit } from '../PsbtUtil' ;
10+ import { ProprietaryKeySubtype , PSBT_PROPRIETARY_IDENTIFIER } from '../PsbtUtil' ;
1211const typeforce = require ( 'typeforce' ) ;
1312
1413const CONSENSUS_BRANCH_ID_KEY = Buffer . concat ( [
@@ -124,17 +123,6 @@ export class ZcashPsbt extends UtxoPsbt<ZcashTransaction<bigint>> {
124123 this . tx . consensusBranchId = getDefaultConsensusBranchIdForVersion ( network , version ) ;
125124 }
126125
127- // For Zcash transactions, we do not have to have non-witness UTXO data for non-segwit
128- // transactions because zcash hashes the value directly. Thus, it is unnecessary to have
129- // the previous transaction hash on the unspent.
130- signInput ( inputIndex : number , keyPair : Signer , sighashTypes ?: number [ ] ) : this {
131- return withUnsafeNonSegwit ( this , super . signInput . bind ( this , inputIndex , keyPair , sighashTypes ) ) ;
132- }
133-
134- validateSignaturesOfInput ( inputIndex : number , validator : ValidateSigFunction , pubkey ?: Buffer ) : boolean {
135- return withUnsafeNonSegwit ( this , super . validateSignaturesOfInput . bind ( this , inputIndex , validator , pubkey ) ) ;
136- }
137-
138126 private setPropertyCheckSignatures ( propName : keyof ZcashTransaction < bigint > , value : unknown ) {
139127 if ( this . tx [ propName ] === value ) {
140128 return ;
0 commit comments