-
Notifications
You must be signed in to change notification settings - Fork 221
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!: change tar address to use base58 and not hex #6372
feat!: change tar address to use base58 and not hex #6372
Conversation
Test Results (CI) 3 files 120 suites 45m 16s ⏱️ Results for commit 3538e6f. ♻️ This comment has been updated with latest results. |
Test Results (Integration tests) 2 files 11 suites 33m 15s ⏱️ For more details on these failures, see this check. Results for commit 3538e6f. ♻️ This comment has been updated with latest results. |
7a90565
to
53b733a
Compare
378c739
to
a38d162
Compare
Some clippy and compile issues? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
let bytes = self.to_bytes(); | ||
let mut network = bs58::encode(&bytes[0..1]).into_string(); | ||
let features = bs58::encode(&bytes[1..2].to_vec()).into_string(); | ||
let rest = bs58::encode(&bytes[2..]).into_string(); | ||
network.push_str(&features); | ||
network.push_str(&rest); | ||
network |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: I still think this reads better
let bytes = self.to_bytes(); | |
let mut network = bs58::encode(&bytes[0..1]).into_string(); | |
let features = bs58::encode(&bytes[1..2].to_vec()).into_string(); | |
let rest = bs58::encode(&bytes[2..]).into_string(); | |
network.push_str(&features); | |
network.push_str(&rest); | |
network | |
let bytes = self.to_bytes(); | |
let network = bs58::encode(&bytes[0..1]).into_string(); | |
let features = bs58::encode(&bytes[1..2].to_vec()).into_string(); | |
let rest = bs58::encode(&bytes[2..]).into_string(); | |
let mut address = "".into_string(); | |
address.push_str(&network); | |
address.push_str(&features); | |
address.push_str(&rest); | |
address |
Some cucumber tests are still failing |
2d7bd92
to
539c5c3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
Description
Remove hex display from tari address
Use Base 58 encoding instead.
Keeps the network and features human readable
Motivation and Context
reduces the display size from 134 chars, down to 92
How Has This Been Tested?
unit tests and manual