[−][src]Trait cashweb_bitcoin::Encodable
Provides a common interface for the serialization of bitcoin structures.
Required methods
fn encoded_len(&self) -> usize
Returns the encoded length of the message.
fn encode_raw<B: BufMut>(&self, buf: &mut B)
Encodes structure to a buffer. This panics if buffer contains insufficient capacity.
Provided methods
fn encode<B: BufMut>(&self, buf: &mut B) -> Result<(), InsufficientCapacity>
Encodes structure to a buffer.