Struct lock_keeper::crypto::SignableBytes
source · pub struct SignableBytes(pub Vec<u8>);
Expand description
Wrapper used to declare arbitrary bytes as Signable
.
SignableBytes
is used to send bytes across the network in a format that
is easy to work with during serialization and deserialization.
NOTE: This type is only meant to be used in message types and should not be exposed by the client API.
Tuple Fields§
§0: Vec<u8>
Trait Implementations§
source§impl AsRef<[u8]> for SignableBytes
impl AsRef<[u8]> for SignableBytes
source§impl Clone for SignableBytes
impl Clone for SignableBytes
source§fn clone(&self) -> SignableBytes
fn clone(&self) -> SignableBytes
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SignableBytes
impl Debug for SignableBytes
source§impl<'de> Deserialize<'de> for SignableBytes
impl<'de> Deserialize<'de> for SignableBytes
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 Serialize for SignableBytes
impl Serialize for SignableBytes
Auto Trait Implementations§
impl Freeze for SignableBytes
impl RefUnwindSafe for SignableBytes
impl Send for SignableBytes
impl Sync for SignableBytes
impl Unpin for SignableBytes
impl UnwindSafe for SignableBytes
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<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
)