diff --git a/app/Makefile.version b/app/Makefile.version index fe0f93e5..3fad2907 100644 --- a/app/Makefile.version +++ b/app/Makefile.version @@ -3,4 +3,4 @@ APPVERSION_M=2 # This is the `spec_version` field of `Runtime` APPVERSION_N=0 # This is the patch version of this release -APPVERSION_P=0 \ No newline at end of file +APPVERSION_P=1 \ No newline at end of file diff --git a/app/src/common/actions.h b/app/src/common/actions.h index 6c2dc7fd..547cca9d 100644 --- a/app/src/common/actions.h +++ b/app/src/common/actions.h @@ -49,8 +49,8 @@ __Z_INLINE void app_sign() { set_code(G_io_apdu_buffer, 0, APDU_CODE_SIGN_VERIFY_ERROR); io_exchange(CHANNEL_APDU | IO_RETURN_AFTER_TX, 2); } else { - set_code(G_io_apdu_buffer, SIG_PLUS_TYPE_LEN, APDU_CODE_OK); - io_exchange(CHANNEL_APDU | IO_RETURN_AFTER_TX, SIG_PLUS_TYPE_LEN + 2); + set_code(G_io_apdu_buffer, SK_LEN_25519, APDU_CODE_OK); + io_exchange(CHANNEL_APDU | IO_RETURN_AFTER_TX, SK_LEN_25519 + 2); } } diff --git a/tests_zemu/snapshots/s-mainmenu/00005.png b/tests_zemu/snapshots/s-mainmenu/00005.png index de1f2218..7f9dd20c 100644 Binary files a/tests_zemu/snapshots/s-mainmenu/00005.png and b/tests_zemu/snapshots/s-mainmenu/00005.png differ diff --git a/tests_zemu/snapshots/s-mainmenu/00011.png b/tests_zemu/snapshots/s-mainmenu/00011.png index de1f2218..7f9dd20c 100644 Binary files a/tests_zemu/snapshots/s-mainmenu/00011.png and b/tests_zemu/snapshots/s-mainmenu/00011.png differ diff --git a/tests_zemu/snapshots/sp-mainmenu/00005.png b/tests_zemu/snapshots/sp-mainmenu/00005.png index 40da7731..3759bbb5 100644 Binary files a/tests_zemu/snapshots/sp-mainmenu/00005.png and b/tests_zemu/snapshots/sp-mainmenu/00005.png differ diff --git a/tests_zemu/snapshots/sp-mainmenu/00011.png b/tests_zemu/snapshots/sp-mainmenu/00011.png index 40da7731..3759bbb5 100644 Binary files a/tests_zemu/snapshots/sp-mainmenu/00011.png and b/tests_zemu/snapshots/sp-mainmenu/00011.png differ diff --git a/tests_zemu/snapshots/x-mainmenu/00005.png b/tests_zemu/snapshots/x-mainmenu/00005.png index 40da7731..3759bbb5 100644 Binary files a/tests_zemu/snapshots/x-mainmenu/00005.png and b/tests_zemu/snapshots/x-mainmenu/00005.png differ diff --git a/tests_zemu/snapshots/x-mainmenu/00011.png b/tests_zemu/snapshots/x-mainmenu/00011.png index 40da7731..3759bbb5 100644 Binary files a/tests_zemu/snapshots/x-mainmenu/00011.png and b/tests_zemu/snapshots/x-mainmenu/00011.png differ diff --git a/tests_zemu/tests/standard.test.ts b/tests_zemu/tests/standard.test.ts index d1270409..96f9c7ef 100644 --- a/tests_zemu/tests/standard.test.ts +++ b/tests_zemu/tests/standard.test.ts @@ -169,7 +169,7 @@ describe('Standard', function () { // Now verify the signature const prehash = Buffer.concat([Buffer.from('TX'), txBlob]); - const valid = ed25519.verify(signatureResponse.signature.slice(0, -1), prehash, pubKey) + const valid = ed25519.verify(signatureResponse.signature, prehash, pubKey) expect(valid).toEqual(true) } finally { await sim.close() @@ -202,7 +202,7 @@ describe('Standard', function () { // Now verify the signature const prehash = Buffer.concat([Buffer.from('TX'), txBlob]); - const valid = ed25519.verify(signatureResponse.signature.slice(0, -1), prehash, pubKey) + const valid = ed25519.verify(signatureResponse.signature, prehash, pubKey) expect(valid).toEqual(true) } finally { await sim.close() @@ -235,7 +235,7 @@ describe('Standard', function () { // Now verify the signature const prehash = Buffer.concat([Buffer.from('TX'), txBlob]); - const valid = ed25519.verify(signatureResponse.signature.slice(0, -1), prehash, pubKey) + const valid = ed25519.verify(signatureResponse.signature, prehash, pubKey) expect(valid).toEqual(true) } finally { await sim.close() @@ -268,7 +268,7 @@ describe('Standard', function () { // Now verify the signature const prehash = Buffer.concat([Buffer.from('TX'), txBlob]); - const valid = ed25519.verify(signatureResponse.signature.slice(0, -1), prehash, pubKey) + const valid = ed25519.verify(signatureResponse.signature, prehash, pubKey) expect(valid).toEqual(true) } finally { await sim.close() @@ -301,7 +301,7 @@ describe('Standard', function () { // Now verify the signature const prehash = Buffer.concat([Buffer.from('TX'), txBlob]); - const valid = ed25519.verify(signatureResponse.signature.slice(0, -1), prehash, pubKey) + const valid = ed25519.verify(signatureResponse.signature, prehash, pubKey) expect(valid).toEqual(true) } finally { await sim.close() @@ -334,7 +334,7 @@ describe('Standard', function () { // Now verify the signature const prehash = Buffer.concat([Buffer.from('TX'), txBlob]); - const valid = ed25519.verify(signatureResponse.signature.slice(0, -1), prehash, pubKey) + const valid = ed25519.verify(signatureResponse.signature, prehash, pubKey) expect(valid).toEqual(true) } finally { await sim.close()