SpinResearch / merkle.rs

:christmas_tree: Merkle tree in Rust
BSD 3-Clause "New" or "Revised" License
129 stars 23 forks source link

Fix proof deserialization. #45

Closed afck closed 6 years ago

afck commented 6 years ago

Deserializing into a borrowed str slice fails if the deserializer doesn't own such a slice. E.g. it couldn't be used to deserialize proofs from a TcpStream.

afck commented 6 years ago

If you prefer, we could also use https://github.com/serde-rs/bytes to avoid the unnecessary string allocation.

romac commented 6 years ago

LGTM