Function hdk::ed25519::sign_raw

source ·
pub fn sign_raw<K>(key: K, data: Vec<u8>) -> ExternResult<Signature>where
    K: Into<AgentPubKey>,
Expand description

Sign some data using the private key for the passed public key.

Assuming the private key for the provided pubkey exists in lair this will work. If we don’t have the private key for the public key then we can’t sign anything!

See sign