@@ -141,10 +141,10 @@ We have integrated three APIs—Mempool, BlockCypher, and Electrum—into the pl
141141 final publicKey = privateKey.getPublic();
142142
143143 // Sign an input using the private key.
144- final signSegwitV0OrLagacy = privateKey.signInput ();
144+ final signSegwitV0OrLagacy = privateKey.signECDSA ();
145145
146146 // Sign a Taproot transaction using the private key.
147- final signSegwitV1TapprotTransaction = privateKey.signTapRoot ();
147+ final signSegwitV1TapprotTransaction = privateKey.signBip340 ();
148148
149149 // Convert the private key to a WIF (Wallet Import Format) encoded string.
150150 // The boolean argument specifies whether to use the compressed format.
@@ -432,9 +432,9 @@ In the [example](https://github.com/mrtnetwork/bitcoin_base/tree/main/example/li
432432 final transaction =
433433 builder.buildTransaction((trDigest, utxo, publicKey, sighash) {
434434 if (utxo.utxo.isP2tr()) {
435- return privateKey.signTapRoot (trDigest, sighash: sighash);
435+ return privateKey.signBip340 (trDigest, sighash: sighash);
436436 }
437- return privateKey.signInput (trDigest, sigHash : sighash);
437+ return privateKey.signECDSA (trDigest, sighash : sighash);
438438 });
439439
440440 /// get tx id
@@ -569,7 +569,7 @@ In the [example](https://github.com/mrtnetwork/bitcoin_base/tree/main/example/li
569569 );
570570 final transaaction =
571571 bchTransaction.buildTransaction((trDigest, utxo, publicKey, sighash) {
572- return privateKey.signInput (trDigest, sigHash : sighash);
572+ return privateKey.signECDSA (trDigest, sighash : sighash);
573573 });
574574
575575 /// transaction ID
@@ -645,7 +645,7 @@ In the [example](https://github.com/mrtnetwork/bitcoin_base/tree/main/example/li
645645 extFlags: 0,
646646 );
647647
648- // sign transaction using `signTapRoot ` method of thransaction
648+ // sign transaction using `signBip340 ` method of thransaction
649649 final signedTx = sign(txDigit, utxo[i].public().toHex(), SIGHASH_ALL);
650650
651651 // add witness for current index
0 commit comments