Struct lock_keeper::crypto::KeyId
source · pub struct KeyId(Box<[u8; 32]>);
Expand description
Universally unique identifier for a stored secret or signing key.
Wrapped in a Box
to avoid stack overflows during heavy traffic.
KeyIds are created by implementors of our DataStore trait. So we expose
the internal as pub.
Tuple Fields§
§0: Box<[u8; 32]>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for KeyId
impl<'de> Deserialize<'de> for KeyId
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl IntoIterator for KeyId
impl IntoIterator for KeyId
source§impl PartialEq for KeyId
impl PartialEq for KeyId
impl Eq for KeyId
impl StructuralPartialEq for KeyId
Auto Trait Implementations§
impl Freeze for KeyId
impl RefUnwindSafe for KeyId
impl Send for KeyId
impl Sync for KeyId
impl Unpin for KeyId
impl UnwindSafe for KeyId
Blanket Implementations§
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
source§impl<T> ConvertMessage for Twhere
T: for<'a> Deserialize<'a> + Serialize,
impl<T> ConvertMessage for Twhere
T: for<'a> Deserialize<'a> + Serialize,
fn from_message(value: Message) -> Result<Self, LockKeeperError>
fn to_message(self) -> Result<Message, LockKeeperError>
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
§fn combine_to_field_element<F, C>(&self) -> Result<F, Error>where
F: PrimeField,
C: ShareSetCombiner<I, S, F, F>,
fn combine_to_field_element<F, C>(&self) -> Result<F, Error>where
F: PrimeField,
C: ShareSetCombiner<I, S, F, F>,
Convert the given shares into a field element
§fn combine_to_group_element<G, C>(&self) -> Result<G, Error>where
G: Group + GroupEncoding + Default,
C: ShareSetCombiner<I, S, <G as Group>::Scalar, G>,
fn combine_to_group_element<G, C>(&self) -> Result<G, Error>where
G: Group + GroupEncoding + Default,
C: ShareSetCombiner<I, S, <G as Group>::Scalar, G>,
Convert the given shares into a group element
source§impl<T> ToHex for T
impl<T> ToHex for T
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
)