Function zenith_types::encode_txns

source ·
pub fn encode_txns<'a, C>(
    transactions: impl IntoIterator<Item = &'a C::Tx>,
) -> Vec<u8> 
where C: Coder, C::Tx: 'a,
Expand description

Encode a set of transactions into a single RLP-encoded buffer.

The function is generic over the coder type, which is used to encode the transactions. This allows for different transaction types to be encoded using different encodings.