Trait holochain_keystore::AgentPubKeyExt[][src]

pub trait AgentPubKeyExt {
    fn new_from_pure_entropy(
        keystore: &KeystoreSender
    ) -> KeystoreApiFuture<AgentPubKey>
    where
        Self: Sized
;
fn sign<S>(
        &self,
        keystore: &KeystoreSender,
        data: S
    ) -> KeystoreApiFuture<Signature>
    where
        S: Serialize + Debug
;
fn sign_raw(
        &self,
        keystore: &KeystoreSender,
        data: &[u8]
    ) -> KeystoreApiFuture<Signature>;
fn verify_signature<D>(
        &self,
        signature: &Signature,
        data: D
    ) -> KeystoreApiFuture<bool>
    where
        D: TryInto<SerializedBytes, Error = SerializedBytesError>
;
fn verify_signature_raw(
        &self,
        signature: &Signature,
        data: &[u8]
    ) -> KeystoreApiFuture<bool>; }
Expand description

Extend holo_hash::AgentPubKey with additional signature functionality from Keystore.

Required methods

create a new agent keypair in given keystore, returning the AgentPubKey

sign some arbitrary data

sign some arbitrary raw bytes

verify a signature for given data with this agent public_key is valid

verify a signature for given raw bytes with this agent public_key is valid

Implementations on Foreign Types

Implementors