Skip to content

Commit

Permalink
Merge pull request #4 from Zondax/dev
Browse files Browse the repository at this point in the history
Fix integration issue
  • Loading branch information
ftheirs authored Jul 21, 2022
2 parents 2cbf328 + 81ddee1 commit 7b814e0
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/Makefile.version
Original file line number Diff line number Diff line change
Expand Up @@ -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
APPVERSION_P=1
4 changes: 2 additions & 2 deletions app/src/common/actions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
Binary file modified tests_zemu/snapshots/s-mainmenu/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-mainmenu/00011.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-mainmenu/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-mainmenu/00011.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/x-mainmenu/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/x-mainmenu/00011.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions tests_zemu/tests/standard.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 7b814e0

Please sign in to comment.