Skip to content

Commit

Permalink
Update JS package (#5)
Browse files Browse the repository at this point in the history
* update sign response

* bump version
  • Loading branch information
abenso authored Sep 30, 2024
1 parent 7710fe6 commit 7163d69
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 10 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=0
# This is the minor version
APPVERSION_N=0
# This is the patch version
APPVERSION_P=3
APPVERSION_P=4
14 changes: 7 additions & 7 deletions tests_zemu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,27 @@
"upgrade": "bunx npm-check-updates -i"
},
"dependencies": {
"@zondax/ledger-kadena": "v0.0.2",
"@zondax/ledger-kadena": "v0.0.3",
"@zondax/zemu": "^0.50.3"
},
"devDependencies": {
"@ledgerhq/hw-transport-node-hid": "^6.29.3",
"@ledgerhq/hw-transport-node-hid": "^6.29.5",
"@noble/curves": "^1.6.0",
"@types/jest": "^29.5.12",
"@types/jest": "^29.5.13",
"@types/ledgerhq__hw-transport": "^4.21.8",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"blakejs": "^1.2.1",
"crypto-js": "4.2.0",
"ed25519-supercop": "^2.0.1",
"eslint": "^9.10.0",
"eslint": "^9.11.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-jest": "^28.8.3",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-promise": "^7.1.0",
"eslint-plugin-tsdoc": "^0.3.0",
"eslint-plugin-unused-imports": "^4.1.3",
"eslint-plugin-unused-imports": "^4.1.4",
"@zondax/hw-app-kda": "^0.1.1",
"jest": "29.7.0",
"jssha": "^3.3.1",
Expand Down
Binary file modified tests_zemu/snapshots/fl-mainmenu/00004.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/00004.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/00010.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/00004.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/00010.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/st-mainmenu/00004.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/00004.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/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tests_zemu/tests/transactions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ describe.each(TRANSACTIONS_TEST_CASES)('Tx transfer', function (data) {

const signatureResponse = await signatureRequest

const decodedHash = decodeHash(signatureResponse.hash)
const decodedHash = decodeHash(signatureResponse.pact_command.hash)

// Now verify the signature
const valid = ed25519.verify(signatureResponse.signature, decodedHash, pubKey)
const valid = ed25519.verify(signatureResponse.pact_command.sigs[0].sig, decodedHash, pubKey)
expect(valid).toEqual(true)
} finally {
await sim.close()
Expand Down

0 comments on commit 7163d69

Please sign in to comment.