Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large flow app update #28

Conversation

relatko
Copy link

@relatko relatko commented Jun 12, 2024

Checklist

  • App update process has been followed
  • Target branch is develop
  • Application version has been bumped

This PR contains a lot improvements most of them implemented almost two years ago. As Ledger made significant changes o he app while our development was stopped, our apps diverged significantly. We decided o rebase our work from https://github.com/onflow/ledger-app-flow on top of your develop branch, keeping almost all changes you made.

Main new features:

  • New transactions using the new version of Cadence language. This is a breaking change on chain which is not live yet. Thus as of now this app requires special chain similar to testnet to run .
  • Message signing - signs a plain text message
  • Arbitrary transaction signing - signs any transaction, requires expert mode activated, it shows transaction script hash and all the arguments provided they are reasonably long (in which case i shows that data is too long to display).
  • Internal app rework - replaces repetitive transaction code a more general code that uses transaction metadata to parse and display the transaction. To save space the metadata is provided by the client application and its integrity if validated by a Merkle tree proof.

as we will need to make a lot of changes there.

Replace zxlib logging mechanism based on debugging with PRINTF macro.
Ported from old c++ tests to cmocka
No tests for message signing, but everything else works as before.
To remove CodeQL warnings.
First transaction test runs, needs to fix other tests
Some manifest tests may not work at all if script hashes are not in
merkle tree
To test the app that it discovers errors in the proof by a malicious client
Now supports key value reversal. Displays value JSON.
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@tdejoigny-ledger tdejoigny-ledger merged commit 24ba23a into LedgerHQ:develop Jun 26, 2024
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants