@@ -269,19 +269,19 @@ pub struct GetPublicKeyResponse {
269269}
270270
271271#[ derive( Encode , Decode ) ]
272- pub struct Signature ( pub [ u8 ; 64 ] ) ;
272+ pub struct SignatureResponse ( pub [ u8 ; 64 ] ) ;
273273
274274#[ derive( Encode , Decode ) ]
275275pub struct TxInputSignatureResponse {
276- pub signature : Signature ,
276+ pub signature : SignatureResponse ,
277277 pub input_idx : u32 ,
278278 pub multisig_idx : Option < u32 > ,
279279 pub has_next : bool ,
280280}
281281
282282#[ derive( Encode , Decode ) ]
283283pub struct MsgSignatureResponse {
284- pub signature : Signature ,
284+ pub signature : SignatureResponse ,
285285}
286286
287287#[ derive( Encode , Decode ) ]
@@ -416,54 +416,44 @@ pub enum StatusWord {
416416 // App Specific Errors (0xB...)
417417 #[ display( "Transaction display failed" ) ]
418418 TxDisplayFail = 0xB000 ,
419- #[ display( "Address display failed " ) ]
420- AddrDisplayFail = 0xB001 ,
419+ #[ display( "Transaction lock time value is invalid " ) ]
420+ TxLockTimeInvalid = 0xB001 ,
421421 #[ display( "Transaction wrong length" ) ]
422422 TxWrongLength = 0xB002 ,
423- #[ display( "Transaction parsing failed" ) ]
424- TxParsingFail = 0xB003 ,
425423 #[ display( "Transaction hashing failed" ) ]
426- TxHashFail = 0xB004 ,
424+ TxHashFail = 0xB003 ,
427425 #[ display( "Transaction address failed" ) ]
428- TxAddressFail = 0xB005 ,
429- #[ display( "Transaction signing failed " ) ]
430- TxSignFail = 0xB006 ,
426+ TxAddressFail = 0xB004 ,
427+ #[ display( "Different instruction than expected " ) ]
428+ WrongInstruction = 0xB005 ,
431429 #[ display( "Key derivation failed" ) ]
432- KeyDeriveFail = 0xB007 ,
433- #[ display( "Version parsing failed " ) ]
434- VersionParsingFail = 0xB008 ,
430+ KeyDeriveFail = 0xB006 ,
431+ #[ display( "Orders V0 not supported " ) ]
432+ OrdersV0NotSupported = 0xB007 ,
435433 #[ display( "Wrong context" ) ]
436- WrongContext = 0xB009 ,
434+ WrongContext = 0xB008 ,
437435 #[ display( "Deserialization failed" ) ]
438- DeserializeFail = 0xB00A ,
436+ DeserializeFail = 0xB009 ,
439437 #[ display( "Invalid input UTXO" ) ]
440- TxInvalidInputUtxo = 0xB00B ,
438+ TxInvalidInputUtxo = 0xB00A ,
441439 #[ display( "Numeric operation failed" ) ]
442- TxNumericOperationFail = 0xB00C ,
440+ TxNumericOperationFail = 0xB00B ,
443441 #[ display( "Tx fee underflow" ) ]
444- TxFeeUnderflow = 0xB00D ,
445- #[ display( "Unsupported input" ) ]
446- TxUnsupportedInput = 0xB00E ,
447- #[ display( "Invalid Token V0" ) ]
448- TxInvalidTokenV0 = 0xB00F ,
442+ TxFeeUnderflow = 0xB00C ,
449443 #[ display( "Invalid input path" ) ]
450- TxInvalidInputPath = 0xB010 ,
444+ TxInvalidInputPath = 0xB00D ,
451445 #[ display( "Nothing to sign" ) ]
452- NothingToSign = 0xB011 ,
446+ NothingToSign = 0xB00E ,
453447 #[ display( "Transaction already finished" ) ]
454- TxAlreadyFinished = 0xB012 ,
448+ TxAlreadyFinished = 0xB00F ,
455449 #[ display( "Invalid path" ) ]
456- InvalidPath = 0xB013 ,
450+ InvalidPath = 0xB010 ,
457451 #[ display( "Invalid uncompressed public key" ) ]
458- InvalidUncompressedPublicKey = 0xB014 ,
452+ InvalidUncompressedPublicKey = 0xB011 ,
459453 #[ display( "Max buffer length exceeded" ) ]
460- MaxBufferLenExceeded = 0xB015 ,
454+ MaxBufferLenExceeded = 0xB012 ,
461455 #[ display( "Different input commitment hash" ) ]
462- DifferentInputCommitmentHash = 0xB016 ,
463- #[ display( "Orders V0 not supported" ) ]
464- OrdersV0NotSupported = 0xB017 ,
465- #[ display( "Different instruction than expected" ) ]
466- WrongInstruction = 0xB018 ,
456+ DifferentInputCommitmentHash = 0xB013 ,
467457
468458 // Ecc Errors
469459 #[ display( "ECC Carry" ) ]
0 commit comments