Trait AttestationQueue

Source
pub trait AttestationQueue<T> {
    // Required methods
    fn confirm_attestation(account_id: &T);
    fn push_pending_attestation(
        signer: T,
        tss_account: T,
        x25519_public_key: X25519PublicKey,
        endpoint: Vec<u8>,
        provisioning_certification_key: EncodedVerifyingKey,
    );
    fn pending_attestations() -> Vec<T>;
}
Expand description

A trait used to describe a queue of attestations.

Required Methods§

Source

fn confirm_attestation(account_id: &T)

Indicate that a given attestation is ready to be moved from a pending state to a confirmed state.

Source

fn push_pending_attestation( signer: T, tss_account: T, x25519_public_key: X25519PublicKey, endpoint: Vec<u8>, provisioning_certification_key: EncodedVerifyingKey, )

Request that an attestation get added to the queue for later processing.

Source

fn pending_attestations() -> Vec<T>

The list of pending (not processed) attestations.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§