Trait dkg_primitives::EnvelopedEncodable
pub trait EnvelopedEncodable {
// Required methods
fn type_id(&self) -> Option<u8>;
fn encode_payload(&self) -> BytesMut;
// Provided method
fn encode(&self) -> BytesMut { ... }
}
Expand description
Encodable typed transactions.
Required Methods§
fn encode_payload(&self) -> BytesMut
fn encode_payload(&self) -> BytesMut
Encode inner payload.
Provided Methods§
fn encode(&self) -> BytesMut
fn encode(&self) -> BytesMut
Convert self to an owned vector.