-
Notifications
You must be signed in to change notification settings - Fork 17
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
chore: support large text fields #55
Merged
sleepdefic1t
merged 1 commit into
ArkEcosystem:develop
from
sleepdefic1t:chore/support-large-text-fields
Jan 9, 2020
Merged
chore: support large text fields #55
sleepdefic1t
merged 1 commit into
ArkEcosystem:develop
from
sleepdefic1t:chore/support-large-text-fields
Jan 9, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The only way to get large fields to display properly would be to use patterns that invoke undefined behavior. This PR creates a separate variable for these large fields and 64-byte aligns the DisplayContext object (704-bytes). - add an extended-sized text variable to DisplayCtx. - change large fields to last display step (ipfs, tranfer, etc). - rename the UX flow steps to be more concise. - create secondary UX flow steps for extended text fields. - change `transaction_t` `vendorFieldLength` to `size_t`. - add bool (isExtended) to the `setDisplaySteps` method. - update examples and docs to demonstrate v2 Transfers with vendorFields up to 255 characters. - update Message example with extended field up to 255 characters. - update the changelog.
sleepdefic1t
added a commit
that referenced
this pull request
Feb 5, 2020
While there are no breaking changes from a users perspective, this release includes a massive rewrite of the project. Backwards compatibility is maintained in this release. Specific objectives accomplished within this release: - Support ARK Core v2 Transactions. - Support Message Signing. - Merge changes from `LedgerHQ/ledger-app-ark`. - Update the ARK Ledger App to use Ledger Nano FW v.1.6.0. - Improve overall project layout. - Add files to support development environment setup using Vagrant. - Update documentation. Significant changes can also be found in the CHANGELOG, as well as the following pull requests: - added message signing features [#40](#40) - implement v2 Transactions [#27](#27) - added VendorField display support [#29](#29) - added build options and documentation [#32](#32) - merged updates from LedgerHQ/ledger-app-ark [#23](#23) - cleaned up warnings and refactored implementation [#25](#25) - upgraded `nanos-secure-sdk` version `1553` -> `160` [#46](#46) - refactor transactions classes to decouple Ledger SDK code [#51](#51) - unify Ledger NanoS and NanoX ux display flow [#53](#53) - implement support for large text fields [#55](#55)
This was referenced Feb 5, 2020
sleepdefic1t
added a commit
that referenced
this pull request
Feb 8, 2020
## Summary While there are no breaking changes from a users perspective, this release includes a massive rewrite of the project. Specific objectives accomplished within this release: - Support ARK Core v2 Transactions. - Support Message Signing. - Merge changes from `LedgerHQ/ledger-app-ark`. - Update the ARK Ledger App to use Ledger Nano FW v.1.6.0. - Implement optimized Base58 from Ledger BTC App. - Improve overall project layout. - Add files to support development environment setup using Vagrant. - Update documentation. Significant changes can be found in the CHANGELOG, as well as the following pull requests: - added message signing features [#40](#40) - implement v2 Transactions [#27](#27) - added VendorField display support [#29](#29) - added build options and documentation [#32](#32) - merged updates from LedgerHQ/ledger-app-ark [#23](#23) - cleaned up warnings and refactored implementation [#25](#25) - upgraded `nanos-secure-sdk` version `1553` -> `160` [#46](#46) - refactor transactions classes to decouple Ledger SDK code [#51](#51) - unify Ledger NanoS and NanoX ux display flow [#53](#53) - implement support for large text fields [#55](#55) - use optimized Base58 implementation from Ledger BTC app [#66](#66) ## Supported in v.2.0.0 ### Transaction Versions: - v0 - v1 (_added_) - v2 (_added_) ### Signing Algorithms: - Ecdsa ### Operation Types: - Get PublicKey - Get App Configuration - Sign Message (_added_) - Sign Transaction ### Transaction Types: - v0 - Transfer - Vote - v1 (_added_) - Transfer - Vote - v2 (_added_) - Transfer - Second Signature Registration - Vote - IPFS - Htlc Lock - Htlc Claim - Htlc Refund ## Checklist - [x] Documentation _(if necessary)_ - [x] Ready to be merged
sleepdefic1t
added a commit
that referenced
this pull request
Feb 8, 2020
## Summary While there are no breaking changes from a users perspective, this release includes a massive rewrite of the project. Specific objectives accomplished within this release: - Support ARK Core v2 Transactions. - Support Message Signing. - Merge changes from `LedgerHQ/ledger-app-ark`. - Update the ARK Ledger App to use Ledger Nano FW v.1.6.0. - Implement optimized Base58 from Ledger BTC App. - Improve overall project layout. - Add files to support development environment setup using Vagrant. - Update documentation. Significant changes can be found in the CHANGELOG, as well as the following pull requests: - added message signing features [#40](#40) - implement v2 Transactions [#27](#27) - added VendorField display support [#29](#29) - added build options and documentation [#32](#32) - merged updates from LedgerHQ/ledger-app-ark [#23](#23) - cleaned up warnings and refactored implementation [#25](#25) - upgraded `nanos-secure-sdk` version `1553` -> `160` [#46](#46) - refactor transactions classes to decouple Ledger SDK code [#51](#51) - unify Ledger NanoS and NanoX ux display flow [#53](#53) - implement support for large text fields [#55](#55) - use optimized Base58 implementation from Ledger BTC app [#66](#66) ## Supported in v.2.0.0 ### Transaction Versions: - v0 - v1 (_added_) - v2 (_added_) ### Signing Algorithms: - Ecdsa ### Operation Types: - Get PublicKey - Get App Configuration - Sign Message (_added_) - Sign Transaction ### Transaction Types: - v0 - Transfer - Vote - v1 (_added_) - Transfer - Vote - v2 (_added_) - Transfer - Second Signature Registration - Vote - IPFS - Htlc Lock - Htlc Claim - Htlc Refund ## Checklist - [x] Documentation _(if necessary)_ - [x] Ready to be merged
sleepdefic1t
added a commit
that referenced
this pull request
Feb 8, 2020
## Summary While there are no breaking changes from a users perspective, this release includes a massive rewrite of the project. Specific objectives accomplished within this release: - Support ARK Core v2 Transactions. - Support Message Signing. - Merge changes from `LedgerHQ/ledger-app-ark`. - Update the ARK Ledger App to use Ledger Nano FW v.1.6.0. - Implement optimized Base58 from Ledger BTC App. - Improve overall project layout. - Add files to support development environment setup using Vagrant. - Update documentation. Significant changes can be found in the CHANGELOG, as well as the following pull requests: - added message signing features [#40](#40) - implement v2 Transactions [#27](#27) - added VendorField display support [#29](#29) - added build options and documentation [#32](#32) - merged updates from LedgerHQ/ledger-app-ark [#23](#23) - cleaned up warnings and refactored implementation [#25](#25) - upgraded `nanos-secure-sdk` version `1553` -> `160` [#46](#46) - refactor transactions classes to decouple Ledger SDK code [#51](#51) - unify Ledger NanoS and NanoX ux display flow [#53](#53) - implement support for large text fields [#55](#55) - use optimized Base58 implementation from Ledger BTC app [#66](#66) ## Supported in v.2.0.0 ### Transaction Versions: - v0 - v1 (_added_) - v2 (_added_) ### Signing Algorithms: - Ecdsa ### Operation Types: - Get PublicKey - Get App Configuration - Sign Message (_added_) - Sign Transaction ### Transaction Types: - v0 - Transfer - Vote - v1 (_added_) - Transfer - Vote - v2 (_added_) - Transfer - Second Signature Registration - Vote - IPFS - Htlc Lock - Htlc Claim - Htlc Refund ## Checklist - [x] Documentation _(if necessary)_ - [x] Ready to be merged ## Additional Discussion This patch release adds #66 to #65
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Complexity: High
More than 256 lines changed.
Type: Task
The issue is a request to setup third-party integrations or any general non-code related tasks.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR creates a separate variable for large fields and 64-byte aligns the DisplayContext object (to 704-bytes).
Specifically, this PR recommends:
transaction_t
'svendorFieldLength
tosize_t
(vsuint8_t
).setDisplaySteps
method.Checklist
Additional Comments
This also resolves #20