-
Notifications
You must be signed in to change notification settings - Fork 13
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
Public offer strict encoding #197
Public offer strict encoding #197
Conversation
e045876
to
465282c
Compare
I'm not convinced the best way for public offer serde is with the string, if we want a string we use a String type and have it with |
cargo fmt
465282c
to
cc56dfb
Compare
Fully agree it's not the best way. I suggest we use this and switch to your proper serde impl once that's done, unless you can finish that quickly? |
Fair enough, let's add this and release 0.4.3, then add proper support in 0.5. |
aa3d3ff
to
cb5eae0
Compare
src/negotiation.rs
Outdated
let encoded = base58_monero::encode_check(consensus::serialize(self).as_ref()) | ||
.expect("Encoding in base58 check works"); | ||
s.push_str(&encoded); | ||
serializer.serialize_str(s.as_ref()) |
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.
This code will also run if we use to_string
, we should use it to maintain only one interface IMO
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.
agreed - updated
d5d7d05
to
f1072a4
Compare
f1072a4
to
a380795
Compare
No description provided.