-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: updates the emoji ID API to be more idiomatic (#6287)
Description --- Updates the emoji ID public API to be more idiomatic. Motivation and Context --- The emoji ID public API includes functionality to convert to and from types like `String` and `PublicKey`, but not idiomatically. This PR updates the API to use `From` and `FromStr` trait implementations where possible. It also makes some minor changes to checksum function signatures to avoid unnecessary vector cloning, and improves a test. How Has This Been Tested? --- Existing tests pass. What process can a PR reviewer use to test or verify this change? --- Check that the new API is, in fact, more idiomatic :) While this doesn't affect consensus or existing databases, this public API change is technically breaking. For example, existing [documentation](https://www.tari.com/lessons/05_emoji_id) needs to be updated.
- Loading branch information
1 parent
b5b9360
commit f538714
Showing
6 changed files
with
63 additions
and
51 deletions.
There are no files selected for viewing
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
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
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
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
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
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