Crate nucypher_core

Source
Expand description

A collection of objects defining the protocol for NyCypher nodes (Ursulas).

Re-exports§

pub use umbral_pre;
pub use ferveo;

Structs§

AccessControlPolicy
Access control policy data for encrypted data.
Address
Represents an Ethereum address (20 bytes).
AuthenticatedData
Authenticated data for encrypted data.
Conditions
Access control conditions.
Context
Context for reencryption conditions.
EncryptedKeyFrag
Encrypted and signed key frag.
EncryptedThresholdDecryptionRequest
An encrypted request for an Ursula to derive a decryption share.
EncryptedThresholdDecryptionResponse
An encrypted response from Ursula with a derived decryption share.
EncryptedTreasureMap
A treasure map encrypted for Bob.
FleetStateChecksum
An identifier of the fleet state.
HRAC
“hashed resource access code”.
MessageKit
Encrypted message prepared for re-encryption.
MetadataRequest
A request for metadata exchange.
MetadataResponse
A response returned by an Ursula containing known node metadata.
MetadataResponsePayload
Payload of the metadata response.
NodeMetadata
Signed node metadata.
NodeMetadataPayload
Node metadata.
ReencryptionRequest
A request for an Ursula to reencrypt for several capsules.
ReencryptionResponse
A response from Ursula with reencrypted capsule frags.
RetrievalKit
An object encapsulating the information necessary for retrieval of cfrags from Ursulas. Contains the capsule and the checksum addresses of Ursulas from which the requester already received cfrags.
RevocationOrder
Represents a string used by characters to perform a revocation on a specific Ursula.
SessionSecretFactory
This class handles keyring material for session keys, by allowing deterministic derivation of SessionStaticSecret objects based on labels.
SessionSharedSecret
A Diffie-Hellman shared secret
SessionStaticKey
A session public key.
SessionStaticSecret
A session secret key.
ThresholdDecryptionRequest
A request for an Ursula to derive a decryption share.
ThresholdDecryptionResponse
A response from Ursula with a derived decryption share.
ThresholdMessageKit
Access control metadata for encrypted data.
TreasureMap
A structure containing KeyFrag objects encrypted for Ursulas chosen for this policy.
VerificationError
Error returned by various verify() methods in the crate.

Enums§

DecryptionError
Errors during decryption.
EncryptionError
Errors during encryption.

Traits§

ProtocolObject
This is a versioned protocol object.

Functions§

encrypt_for_dkg
Encrypt data based on conditions and dkg public key.