More progress on merkle-tree-stream in Rust! Just need to figure out now how to keep a pointer to the same value from two different structs, so we can index all roots. Probably Rc<>, but ooops lifetimes. Progress though!https://github.com/datrs/merkle-tree-stream …
-
Show this thread
-
Yay, figured out how to use Rc! Turns out you need to call Rc::clone() on an Rc::new() to increment the reference counter. Once that "clone" falls out of scope, it calls the Drop trait that decrements the counter. That's like... really neat! https://github.com/yoshuawuyts/spec-rust/blob/master/src/reference_counters.rs …
1 reply 0 retweets 5 likesShow this thread -
Yay, it works! Sort of at least. Now busy cleaning up structs so folks using the module don't need to wade through lots of Option<> definitions
1 reply 0 retweets 2 likesShow this thread -
Annnnd done. I think. The result looks like it does what I want it to do. I guess that's good enough for now. So y'all, with pride I present: merkle-tree-stream 0.1.0! GitHub https://github.com/datrs/merkle-tree-stream … Docs https://docs.rs/merkle-tree-stream/0.1.0/merkle_tree_stream/ …
2 replies 3 retweets 4 likesShow this thread
Can finally move into the random-access-* family of modules. Yay!
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.