Struct chain_vote::encrypted_vote::Ptp
source · pub struct Ptp<A> {
pub elements: Vec<A>,
pub orig_len: usize,
}
Expand description
To achieve logarithmic communication complexity in the unit_vector ZKP, we represent votes as Power of Two Padded vector structures.
Fields§
§elements: Vec<A>
§orig_len: usize
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<A> RefUnwindSafe for Ptp<A>where A: RefUnwindSafe,
impl<A> Send for Ptp<A>where A: Send,
impl<A> Sync for Ptp<A>where A: Sync,
impl<A> Unpin for Ptp<A>where A: Unpin,
impl<A> UnwindSafe for Ptp<A>where A: UnwindSafe,
Blanket Implementations§
§impl<T> Base32Len for Twhere
T: AsRef<[u8]>,
impl<T> Base32Len for Twhere T: AsRef<[u8]>,
§fn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere T: AsRef<[u8]>,
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)