Compare commits

...

2 Commits
sp ... master

Author SHA1 Message Date
Craig Raw
e9c6f35fe6 update hid4java to remove rpath from linux x86 binary 2026-05-24 19:01:17 +02:00
Craig Raw
2a8c73c131 improve trezor error message when non witness utxo field is not provided 2026-05-19 18:14:56 +02:00
2 changed files with 4 additions and 1 deletions

View File

@ -22,7 +22,7 @@ java {
dependencies {
implementation(project(':drongo'))
implementation('com.sparrowwallet:hid4java:0.8.0')
implementation('com.sparrowwallet:hid4java:0.8.1')
implementation('com.fazecast:jSerialComm:2.11.4')
implementation('com.sparrowwallet:usb4java:1.3.6')
implementation('co.nstant.in:cbor:0.9')

View File

@ -270,6 +270,9 @@ public class TrezorDevice implements Closeable, ProtocolCallbacks {
private Message sendResponsePrev(Map<Sha256Hash, PrevTx> prevTxs, TrezorMessageBitcoin.TxRequest.RequestType requestType,
TrezorMessageBitcoin.TxRequest.TxRequestDetailsType details) throws DeviceException {
PrevTx prevTx = prevTxs.get(Sha256Hash.wrap(details.getTxHash().toByteArray()));
if(prevTx == null) {
throw new DeviceException("This device requires the full previous transaction for every input, which is omitted from some PSBTs, such as those transferred via QR");
}
if(requestType == TrezorMessageBitcoin.TxRequest.RequestType.TXINPUT) {
TrezorMessageBitcoin.PrevInput prevInput = prevTx.prevInputs().get(details.getRequestIndex());
TrezorMessageBitcoin.TxAckPrevInput txAckPrevInput = TrezorMessageBitcoin.TxAckPrevInput.newBuilder()