[][src]Trait interledger::btp::BtpOpenSignupStore

pub trait BtpOpenSignupStore {
    type Account: BtpAccount;
    fn create_btp_account(
        &self,
        account: BtpOpenSignupAccount<'a>
    ) -> Box<dyn Future<Error = (), Item = Self::Account> + 'static + Send>; }

The interface for Store implementatoins that allow open BTP signups. Every incoming WebSocket connection will automatically have a BtpOpenSignupAccount created and added to the store.

WARNING: Users and store implementors should be careful when implementing this trait because malicious users can use open signups to create very large numbers of accounts and crash the process or fill up the database.

Associated Types

Loading content...

Required methods

fn create_btp_account(
    &self,
    account: BtpOpenSignupAccount<'a>
) -> Box<dyn Future<Error = (), Item = Self::Account> + 'static + Send>

Loading content...

Implementors

impl BtpOpenSignupStore for InMemoryStore[src]

type Account = Account

Loading content...