macro_rules! to_bytes {
($x:expr) => { ... };
}
Expand description
Takes as input a struct, and converts them to a series of bytes. All traits
that implement CanonicalSerialize
can be automatically converted to bytes
in this manner.
From jellyfish lib