pbc_zk_core

Type Alias Sbu1

source
pub type Sbu1 = bool;
Expand description

A secret-shared bool value.

Trait Implementations§

source§

impl SecretBinary for Sbu1

Implementation of SecretBinary trait for Sbu1. Uses a full byte to present a single bit.

source§

fn secret_read_from<T: Read>(reader: &mut T) -> Self

Deserialization method for a secret.
source§

fn secret_write_to<T: Write>(&self, writer: &mut T) -> Result<()>

Serialization method for a secret.
source§

impl SecretBinaryFixedSize for Sbu1

Implementation of SecretBinaryFixedSize trait for Sbu1.

source§

const BITS: u32 = 1u32

The bitsize of the type.