[][src]Module pixel_sig::keys

Structs

InMemorySigKeyDb

An in-memory database for storing signing keys. Uses hashmap. Should only be used for testing.

Keypair

Keypair consisting of a master secret, the corresponding verkey and the proof of possession Type GPrime denotes group for public key and type G denotes group for proof of possession.

MasterSecret

MasterSecret will be cleared on drop as FieldElement is cleared on drop

ProofOfPossession

Proof of Possession of signing key. It is a signature on the verification key and can be group in G1 or G2. But it is in different group than Verkey. If Verkey is in G2 then proof of possession is in G1 and vice versa.

Sigkey

Secret key sk can be seen as (sk', sk'') where sk'' is itself a vector with initial (and max) length l+1 Sigkey will be cleared on drop as both G1 and G2 elements are cleared on drop

SigkeyManager

T denotes the maximum time period supported and t denotes the current time period. #[derive(Clone, Debug, Serialize, Deserialize)]

Verkey

Traits

SigKeyDb

Key-value database interface that needs to be implemented for storing signing keys. Signing key are db values whereas db keys are the time period for which the signing key needs to be used.