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

feat!: sign_message_nep413, sign_message_nep366_delegate_action features, examples #6

Merged
merged 27 commits into from
Feb 29, 2024

Conversation

dj8yfo
Copy link
Contributor

@dj8yfo dj8yfo commented Jan 18, 2024

blind_sign_transaction pubilc api was removed
this pr is fast-forward extension of #5

@@ -16,14 +16,17 @@ const INS_GET_VERSION: u8 = 6; // Instruction code to get app version from the L
const INS_SIGN_TRANSACTION: u8 = 2; // Instruction code to sign a transaction on the Ledger
const NETWORK_ID: u8 = 'W' as u8; // Instruction parameter 2
const RETURN_CODE_OK: u16 = 36864; // APDUAnswer.retcode which means success from Ledger
const CHUNK_SIZE: usize = 128; // Chunk size to be sent to Ledger
const CHUNK_SIZE: usize = 250; // Chunk size to be sent to Ledger
Copy link
Owner

Choose a reason for hiding this comment

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

I don't recall was the size of this chunk 128 because of historical reason or due to the capabilities of the Nano S. Can you confirm Nano S works with this increased?

Copy link
Contributor Author

@dj8yfo dj8yfo Jan 18, 2024

Choose a reason for hiding this comment

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

yes. this is specifically to handle large txs. see Case 2 in app-near-rs/tree/proto/README

Copy link
Contributor Author

Choose a reason for hiding this comment

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

additionally reconfirmed that this chunk size is fine with app-near 1.2.1 for nanos, downloaded from Ledger Live

@dj8yfo dj8yfo force-pushed the more_examples branch 2 times, most recently from ece8b02 to 96d5eb2 Compare January 29, 2024 08:01
@dj8yfo dj8yfo force-pushed the more_examples branch 2 times, most recently from b281207 to 16c8b62 Compare February 1, 2024 20:20
@dj8yfo dj8yfo force-pushed the more_examples branch 3 times, most recently from 8cd803d to 72fde37 Compare February 8, 2024 18:42
@dj8yfo dj8yfo changed the title chore: more examples per each case feat: sign_message_nep413, sign_message_nep366_delegate_action features, examples Feb 12, 2024
@dj8yfo dj8yfo changed the title feat: sign_message_nep413, sign_message_nep366_delegate_action features, examples feat!: sign_message_nep413, sign_message_nep366_delegate_action features, examples Feb 27, 2024
@dj8yfo dj8yfo marked this pull request as ready for review February 27, 2024 16:14
Copy link
Collaborator

@frol frol left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@khorolets please, review, merge, and cut a new release 🙏

Copy link
Owner

@khorolets khorolets left a comment

Choose a reason for hiding this comment

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

Great work! Thank you! 🙏

@khorolets khorolets merged commit 75b6363 into khorolets:main Feb 29, 2024
1 check 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