pub struct HalfKeyChallenge(/* private fields */);
Expand description
Represents a challenge for the half-key in Proof of Relay. Half-key challenge is equivalent to a secp256k1 curve point. Therefore, HalfKeyChallenge can be obtained from a HalfKey.
Implementations§
Source§impl HalfKeyChallenge
impl HalfKeyChallenge
pub fn new(half_key_challenge: &[u8]) -> Self
pub fn to_address(&self) -> Address
Trait Implementations§
Source§impl AsRef<[u8]> for HalfKeyChallenge
impl AsRef<[u8]> for HalfKeyChallenge
Source§impl BytesRepresentable for HalfKeyChallenge
impl BytesRepresentable for HalfKeyChallenge
Source§impl Clone for HalfKeyChallenge
impl Clone for HalfKeyChallenge
Source§fn clone(&self) -> HalfKeyChallenge
fn clone(&self) -> HalfKeyChallenge
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 HalfKeyChallenge
impl Debug for HalfKeyChallenge
Source§impl Default for HalfKeyChallenge
impl Default for HalfKeyChallenge
Source§impl<'de> Deserialize<'de> for HalfKeyChallenge
impl<'de> Deserialize<'de> for HalfKeyChallenge
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 Display for HalfKeyChallenge
impl Display for HalfKeyChallenge
Source§impl From<HalfKey> for HalfKeyChallenge
impl From<HalfKey> for HalfKeyChallenge
Source§impl FromStr for HalfKeyChallenge
impl FromStr for HalfKeyChallenge
Source§impl Hash for HalfKeyChallenge
impl Hash for HalfKeyChallenge
Source§impl PartialEq for HalfKeyChallenge
impl PartialEq for HalfKeyChallenge
Source§impl Serialize for HalfKeyChallenge
impl Serialize for HalfKeyChallenge
Source§impl TryFrom<&[u8]> for HalfKeyChallenge
impl TryFrom<&[u8]> for HalfKeyChallenge
Source§impl TryFrom<HalfKeyChallenge> for CurvePoint
impl TryFrom<HalfKeyChallenge> for CurvePoint
impl Copy for HalfKeyChallenge
impl Eq for HalfKeyChallenge
impl StructuralPartialEq for HalfKeyChallenge
Auto Trait Implementations§
impl Freeze for HalfKeyChallenge
impl RefUnwindSafe for HalfKeyChallenge
impl Send for HalfKeyChallenge
impl Sync for HalfKeyChallenge
impl Unpin for HalfKeyChallenge
impl UnwindSafe for HalfKeyChallenge
Blanket Implementations§
§impl<T, U> AsByteSlice<T> for U
impl<T, U> AsByteSlice<T> for U
fn as_byte_slice(&self) -> &[u8] ⓘ
§impl<U> AsSliceOf for U
impl<U> AsSliceOf for U
fn as_slice_of<T>(&self) -> Result<&[T], Error>where
T: FromByteSlice,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> ToHex for Twhere
T: BytesRepresentable,
impl<T> ToHex for Twhere
T: BytesRepresentable,
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
)