pub struct CoordinatorPubKey {
pub pub_key: PublicKey,
}
Expand description
Represents a Coordinator’s public key for blind signature operations
Fields§
§pub_key: PublicKey
Implementations§
Source§impl CoordinatorPubKey
impl CoordinatorPubKey
Sourcepub fn from_hex_string(hex_key: &str) -> Result<Self, CoordPubKeyError>
pub fn from_hex_string(hex_key: &str) -> Result<Self, CoordPubKeyError>
Create a CoordinatorPubKey from a hex string
pub fn to_hex_string(&self) -> String
Sourcepub fn new_blind_tickets<R: RngCore + CryptoRng>(
&self,
rng: &mut R,
count: usize,
) -> Result<Vec<UnsignedTicket>, CoordPubKeyError>
pub fn new_blind_tickets<R: RngCore + CryptoRng>( &self, rng: &mut R, count: usize, ) -> Result<Vec<UnsignedTicket>, CoordPubKeyError>
Generate new blind tickets
Sourcepub fn finalize_tickets(
&self,
tickets: Vec<UnsignedTicket>,
blind_signatures: Vec<BlindedSignature>,
) -> Result<Vec<SignedTicket>, CoordPubKeyError>
pub fn finalize_tickets( &self, tickets: Vec<UnsignedTicket>, blind_signatures: Vec<BlindedSignature>, ) -> Result<Vec<SignedTicket>, CoordPubKeyError>
Finalize blind signatures into signed tickets
pub fn verify_signed_ticket( &self, signed_ticket: SignedTicket, options: &Options, ) -> Result<(), CoordPubKeyError>
Sourcepub fn verify_signed_tickets(
&self,
signed_tickets: Vec<SignedTicket>,
) -> Result<(), CoordPubKeyError>
pub fn verify_signed_tickets( &self, signed_tickets: Vec<SignedTicket>, ) -> Result<(), CoordPubKeyError>
Verify signed tickets
pub fn get_options(&self) -> Options
Auto Trait Implementations§
impl Freeze for CoordinatorPubKey
impl RefUnwindSafe for CoordinatorPubKey
impl Send for CoordinatorPubKey
impl Sync for CoordinatorPubKey
impl Unpin for CoordinatorPubKey
impl UnwindSafe for CoordinatorPubKey
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more