pub trait WriteZcashExt: Write {
    // Provided methods
    fn write_32_bytes(&mut self, bytes: &[u8; 32]) -> Result<()> { ... }
    fn write_64_bytes(&mut self, bytes: &[u8; 64]) -> Result<()> { ... }
}
Expand description

Extends Write with methods for writing Zcash/Bitcoin types.

Provided Methods§

source

fn write_32_bytes(&mut self, bytes: &[u8; 32]) -> Result<()>

Convenience method to write exactly 32 u8’s.

source

fn write_64_bytes(&mut self, bytes: &[u8; 64]) -> Result<()>

Convenience method to write exactly 64 u8’s.

Implementors§

source§

impl<W: Write + ?Sized> WriteZcashExt for W

Mark all types implementing Write as implementing the extension.