Module crypto

Source
Expand description

Affidavit crypto and payload types for offchain operations used for validation, affidavit declaration, and author election

Utilizes

  • [AppCrypto],
  • [SignedPayload], and
  • [SigningTypes]

Re-exports§

pub use ed25519::AffidavitCryptoEd25519;
pub use sr25519::AffidavitCryptoSr25519;

Modules§

ed25519
ed25519-based affidavit cryptography implementation.
sr25519
sr25519-based affidavit cryptography implementation.

Structs§

AffidavitPayload
Unsigned payload for crate::Pallet::declare extrinsic.
ElectionPayload
Unsigned payload for crate::Pallet::elect extrinsic.
ValidatePayload
Unsigned payload for crate::Pallet::validate extrinsic.

Constants§

AFDT_KEY_TYPE
Unique application key type identifier for affidavit-related cryptography (crate::Config::AffidavitCrypto).