Module dock_runtime::offchain_signatures
source · Expand description
Module to store offchain signature keys and parameters for different signature schemes.
Currently, can be either BBS, BBS+, Pointcheval-Sanders or BBDT16.
For BBS, BBS+ and Pointcheval-Sanders, the public key is in group G2 but for BBDT16, it’s
in group G1 and used to verify the proof of validity of MAC (and related proofs) but not the MAC itself.
Modules
- The module that hosts all the FRAME types needed to add this pallet to a runtime.
Structs
- Signature parameters for the BBDT16 signature scheme.
- Public key for the BBDT16 signature scheme.
- Signature parameters for the BBS signature scheme.
- Signature parameters for the BBS+ signature scheme.
- Public key for the BBS+ signature scheme.
- Public key for the BBS signature scheme.
- Can be used to configure the genesis state of this pallet.
- Signature parameters for the PS signature scheme.
- Public key for the PS signature scheme.
- The pallet implementing the on-chain logic.
- DID owner of the signature parameters.
Enums
- Contains one variant per dispatchable that can be called by an extrinsic.
- Custom dispatch errors of this pallet.
- The event emitted by this pallet.
- Public key for different signature schemes. Currently, can be either
BBS,BBS+,Pointcheval-SandersorBBDT16. - Signature parameters. Currently can be either
BBS,BBS+orPointcheval-Sanders.
Traits
- The module’s configuration trait.
Type Definitions
- ModuleDeprecatedType alias to
Pallet, to be used byconstruct_runtime. - On adding new params, corresponding counter is increased by 1 but the counters don’t decrease on removal.
- Identifier of the participant used in the threshold issuance.
- Public keys are stored as key value (did, counter) -> public key
- Signature parameters are stored as key value (did, counter) -> signature parameters