Struct cashweb::token::schemes::chain_commitment::ChainCommitmentScheme[][src]

pub struct ChainCommitmentScheme<S> { /* fields omitted */ }

Chain commitment scheme used in the keyserver protocol.

Implementations

impl<S> ChainCommitmentScheme<S>[src]

impl ChainCommitmentScheme<Client<HttpConnector<GaiResolver>, Body>>[src]

pub fn new(
    endpoint: String,
    username: String,
    password: String
) -> ChainCommitmentScheme<Client<HttpConnector<GaiResolver>, Body>>
[src]

Create a ChainCommitmentScheme from a BitcoinClient using a standard HTTP connector.

impl ChainCommitmentScheme<Client<HttpsConnector<HttpConnector<GaiResolver>>, Body>>[src]

pub fn new_tls(
    endpoint: String,
    username: String,
    password: String
) -> ChainCommitmentScheme<Client<HttpsConnector<HttpConnector<GaiResolver>>, Body>>
[src]

Create a ChainCommitmentScheme from a BitcoinClient using a standard HTTPS connector.

impl<S> ChainCommitmentScheme<S> where
    S: Service<Request<Body>, Response = Response<Body>> + Clone,
    <S as Service<Request<Body>>>::Error: Debug,
    <S as Service<Request<Body>>>::Error: Display,
    <S as Service<Request<Body>>>::Error: 'static,
    <S as Service<Request<Body>>>::Future: Send,
    <S as Service<Request<Body>>>::Future: 'static, 
[src]

pub async fn validate_token(
    &'_ self,
    pub_key_hash: &'_ [u8],
    address_metadata_hash: &'_ [u8],
    token: &'_ str
) -> Result<Vec<u8, Global>, ValidationError<<S as Service<Request<Body>>>::Error>>
[src]

Validate a token.

Trait Implementations

impl<S> Clone for ChainCommitmentScheme<S> where
    S: Clone
[src]

impl<S> Debug for ChainCommitmentScheme<S> where
    S: Debug
[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for ChainCommitmentScheme<S> where
    S: RefUnwindSafe
[src]

impl<S> Send for ChainCommitmentScheme<S> where
    S: Send
[src]

impl<S> Sync for ChainCommitmentScheme<S> where
    S: Sync
[src]

impl<S> Unpin for ChainCommitmentScheme<S> where
    S: Unpin
[src]

impl<S> UnwindSafe for ChainCommitmentScheme<S> where
    S: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,