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(core/cardano): Implement bech32 asset ids based on CIP-0014 #1510

Conversation

refi93
Copy link
Contributor

@refi93 refi93 commented Mar 2, 2021

Motivation: CIP-0014 specifying a human-readable token fingerprint has reached a consensus, it has been picked up by block explorers such as cardanoscan.io already, hence we are updating Trezor's UI to show it instead of the raw token policy id and name (which may or may not be printable)

Changes:

  • add utility function to format the asset id as specified in CIP-0014, cover it with basic unit tests
  • updated UI test fixtures to reflect the changes

Testing:

  • pytest tests/device_tests -k "test_cardano_sign_tx" passes
  • updated UI fixtures via make test_emu_ui_record

Affected UI fixtures before: https://drive.google.com/drive/u/0/folders/1n2nHWf7ssMOPzrxW5cHsZKrxiHdF0cnf
Affected UI fixtures after: https://drive.google.com/drive/u/0/folders/1jNKn3ts-txOYhjySaM6wbAny4kCm8O6j

@refi93 refi93 requested a review from matejcik as a code owner March 2, 2021 22:21
@matejcik matejcik changed the base branch from master to matejcik/cardano-dest-branch March 17, 2021 15:17
@matejcik
Copy link
Contributor

merging into a Cardano branch, will merge to master once CI checks go through

@matejcik matejcik merged commit 1b4f114 into trezor:matejcik/cardano-dest-branch Mar 17, 2021
@matejcik
Copy link
Contributor

in master now

@gabrielKerekes gabrielKerekes deleted the cardano-bech32-assetid branch July 2, 2021 11:49
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