pub struct Service { /* private fields */ }Expand description
Creates a service-like to wrap an implementation of the Signatory
This implements the actor model, ensuring the Signatory and their private key is moved from the main thread to their own tokio task, and communicates with the main program by passing messages, an extra layer of security to move the keys to another layer.
Implementations§
Trait Implementations§
Source§impl Signatory for Service
impl Signatory for Service
Source§fn name(&self) -> String
fn name(&self) -> String
The Signatory implementation name. This may be exposed, so being as discrete as possible is
advised.
Source§fn blind_sign<'life0, 'async_trait>(
&'life0 self,
blinded_messages: Vec<BlindedMessage>,
) -> Pin<Box<dyn Future<Output = Result<Vec<BlindSignature>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn blind_sign<'life0, 'async_trait>(
&'life0 self,
blinded_messages: Vec<BlindedMessage>,
) -> Pin<Box<dyn Future<Output = Result<Vec<BlindSignature>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Blind sign a message. Read more
Source§fn verify_proofs<'life0, 'async_trait>(
&'life0 self,
proofs: Vec<Proof>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn verify_proofs<'life0, 'async_trait>(
&'life0 self,
proofs: Vec<Proof>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Verify
Proof meets conditions and is signed by the mint (ignores P2PK/HTLC signatures“Source§fn keysets<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<SignatoryKeysets, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn keysets<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<SignatoryKeysets, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieve the list of all mint keysets
Source§fn subscribe_keysets<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Receiver<SignatoryKeysets>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn subscribe_keysets<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Receiver<SignatoryKeysets>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Subscribe to keyset updates. Read more
Source§fn rotate_keyset<'life0, 'async_trait>(
&'life0 self,
args: RotateKeyArguments,
) -> Pin<Box<dyn Future<Output = Result<SignatoryKeySet, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn rotate_keyset<'life0, 'async_trait>(
&'life0 self,
args: RotateKeyArguments,
) -> Pin<Box<dyn Future<Output = Result<SignatoryKeySet, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Add current keyset to inactive keysets
Generate new keyset
Auto Trait Implementations§
impl Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnsafeUnpin for Service
impl UnwindSafe for Service
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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