pub trait KeystoreExt {
    // Required method
    fn get_keystore(&self) -> &DKGKeystore;

    // Provided methods
    fn get_authority_public_key(&self) -> Public { ... }
    fn get_sr25519_public_key(&self) -> Public { ... }
}
Expand description

Extension trait for any type that contains a keystore

Required Methods§

Provided Methods§

source

fn get_authority_public_key(&self) -> Public

source

fn get_sr25519_public_key(&self) -> Public

Implementations on Foreign Types§

source§

impl<T: KeystoreExt + ?Sized> KeystoreExt for Arc<T>

source§

impl<'a, T: 'a + KeystoreExt + ?Sized> KeystoreExt for &'a mut T

source§

impl<'a, T: 'a + KeystoreExt + ?Sized> KeystoreExt for &'a T

Implementors§

source§

impl KeystoreExt for DKGKeystore

source§

impl<B, BE, C, GE> KeystoreExt for DKGWorker<B, BE, C, GE>where B: Block, BE: Backend<B>, GE: GossipEngineIface, C: Client<B, BE>, MaxProposalLength: Get<u32>, MaxAuthorities: Get<u32>,

source§

impl<B: Block, BE, C, GE, MaxProposalLength: Get<u32> + Clone + Send + Sync + Debug + 'static, BatchId: Clone + Send + Sync + Debug + 'static + Unpin, MaxProposalsInBatch: Get<u32> + Clone + Send + Sync + Debug + 'static + Unpin, MaxSignatureLength: Get<u32> + Clone + Send + Sync + Debug + 'static + Unpin> KeystoreExt for DKGProtocolEngine<B, BE, C, GE, MaxProposalLength, MaxAuthorities, BatchId, MaxProposalsInBatch, MaxSignatureLength>

source§

impl<BI: BlockchainInterface, MaxAuthorities: Get<u32> + Clone + Send + Sync + Debug + 'static> KeystoreExt for AsyncProtocolParameters<BI, MaxAuthorities>