-
Notifications
You must be signed in to change notification settings - Fork 41
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
MultiAddress Display update #1790
Conversation
|
||
/// Hash the [`MultiAddress`] with BLAKE2b-256. | ||
#[inline(always)] | ||
pub fn hash(&self) -> [u8; 32] { |
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.
why pub
? users gonna need to work with the hash of it?
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.
I asked myself the same but since it's public anyway through the display I think it's fair to have the method pub
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.
yea, figured it wouldnt hurt to have available
Description of change
Changes MultiAddress Display to show the hashed total of its addresses instead of the addresses themselves
Fixes #1587