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

support b58 addresses' in view and summaries #36

Merged
merged 4 commits into from
Apr 17, 2023
Merged

Conversation

ryankurte
Copy link
Contributor

@ryankurte ryankurte commented Apr 13, 2023

per #20

  • adds prost with a minimal proto file reproducing of PrintableWrapper (avoiding grpc components of mc-api)
  • adds FogIds to summary messages as a compressed alternative to fog URLs, removes ShortAddressHash as this is now derived on device
  • adds helpers for ShortAddressHash derivation from primitive types w/ tests against mc-account-keys types
  • adds helpers for b58 encoding from primitive types w/ tests against mc-account-keys types
  • updates to new summary reports w/ caching for address resolution
  • updates summary view with subpages showing b58 addresses
  • replaces key views with b58 encoded address view

this is more alloc heavy than would be ideal, but, cannot currently be avoided due to prost. we also can't sign fog authorities at the moment as the CSPRNG uses 10kb of stack all by itself, which is non-critical but should be addressed so we can display generated addresses in a manner consistent with the upstream app.

tested running on the nanosplus, may need atomic polyfill for nanox depending on the outcome of #27

@ryankurte ryankurte requested a review from a team as a code owner April 13, 2023 23:13
@ryankurte ryankurte self-assigned this Apr 13, 2023
- updates tx summary messages to include fog information
- moves hashing on-device
- updates summary reports with caching for full address info
- updates UI with address rendering
@ryankurte
Copy link
Contributor Author

i've managed to hack down schnorrkel to require ~half the stack, which is enough to get things working on the nanosplus! now workin' out how to best propagate the required changes

@ryankurte ryankurte changed the title WIP: support b58 addresses' in view and summaries support b58 addresses' in view and summaries Apr 14, 2023
@ryankurte ryankurte merged commit 5cd7c05 into main Apr 17, 2023
@ryankurte ryankurte deleted the feature/b58-addresses branch April 17, 2023 21:53
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.

2 participants