[][src]Trait tink_testing_server::proto::signature_server::Signature

pub trait Signature: Send + Sync + 'static {
#[must_use]    fn sign<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SignatureSignRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<SignatureSignResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn verify<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SignatureVerifyRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<SignatureVerifyResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Generated trait containing gRPC methods that should be implemented for use with SignatureServer.

Required methods

#[must_use]fn sign<'life0, 'async_trait>(
    &'life0 self,
    request: Request<SignatureSignRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<SignatureSignResponse>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Computes the signature for data

#[must_use]fn verify<'life0, 'async_trait>(
    &'life0 self,
    request: Request<SignatureVerifyRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<SignatureVerifyResponse>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Verifies that signature is a digital signature for data

Loading content...

Implementors

impl Signature for SignatureServerImpl[src]

Loading content...