pub enum PrivateDocumentSender<'a> {
Anonymous,
DeniableMac {
identity_id: [u8; 32],
key_id: u32,
secret_key: &'a SecretKey,
},
Signature {
identity_id: [u8; 32],
key_id: u32,
signature: &'a [u8; 65],
},
}Expand description
How an entry tells its recipient who wrote it.
Variants§
Anonymous
Nobody: the recipient learns nothing of the writer.
DeniableMac
The sender’s identity and key, with a MAC under the static ECDH of that key and the recipient’s. The recipient learns who wrote the entry, but could have computed the MAC itself, so it cannot prove that to anyone. Anyone holding the recipient’s key can compute it as well, so a stolen recipient key forges entries from any sender.
Signature
The sender’s identity and a key id, with a signature anyone who reads the body can
check: an identity signer’s signature of private_document_signing_data for this
entry, or sign_private_document_signing_data’s. key_id names the signing key, or
another key of the sender identity when the application finds the signer with
OpenedPrivateDocumentEntry::recover_signer: DashPay names the sender’s encryption key
and signs with one of its signing keys.