Module common

Module common 

Source

Structs§

MemberCommitmentKey
Commitment key to commit the set member
PublicKeyG2
Public key used to verify signatures
SecretKey
Secret key used by the signer to sign messages
SignatureG1
SignatureParams
Public parameters for creating and verifying BB signatures
SignatureParamsWithPairing
SignatureParams with pre-computation done for protocols to be more efficient

Functions§

base_n_digits
Representation of value in base-representation. Returns the base base digits in little-endian form
base_n_digits_for_u128
generate_secret_key_for_base
is_secret_key_valid_for_base
optimal_base
Optimal base as suggested by the CCS and CLS paper as log_2(range)/log_2(log_2(range)) where range = max - min A more optimal base can be calculated using numerical methods.
padded_base_n_digits_as_field_elements
Same as base_n_digits but pads representation with 0s to the end to make the output vector length as size