INNER CODE UNIT · Rust
to_bits
IronCoreLabs/recrypt-rs · src/internal/mod.rs:182
fn to_bits(&self) -> Vec<ConstantBool<LimbType>> {
self.value.to_bits()
}
}
#[derive(Clone, Debug)]
#[cfg_attr(test, derive(PartialEq, Eq))]
pub struct SignedValue<T> {
pub public_signing_key: PublicSigningKey,
pub signature: Ed25519Signature,
pub payload: T,
}
impl<T: Hashable> Hashable for SignedValue<T> {
fn to_bytes(&self) -> ByteVector {
(&self.public_signing_key, &self.payload).to_bytes()
}
}