Versions in this module Expand all Collapse all v1 v1.3.1 Feb 6, 2021 v1.3.0 Jan 15, 2021 Changes in this version + const MaxTimestamp + func HandleCertifierUpdateProposal(ctx sdk.Context, k Keeper, p types.CertifierUpdateProposal) error + func NewQuerier(keeper Keeper) sdk.Querier + func RandomDelegator(r *rand.Rand, k Keeper, ctx sdk.Context) (sdk.AccAddress, bool) + func RandomValidator(r *rand.Rand, k Keeper, ctx sdk.Context) (staking.Validator, bool) + type Keeper struct + func NewKeeper(cdc *codec.Codec, storeKey sdk.StoreKey, slashingKeeper types.SlashingKeeper, ...) Keeper + func (k Keeper) CertifyPlatform(ctx sdk.Context, certifier sdk.AccAddress, validator crypto.PubKey, ...) error + func (k Keeper) CertifyValidator(ctx sdk.Context, validator crypto.PubKey, certifier sdk.AccAddress) error + func (k Keeper) DecertifyValidator(ctx sdk.Context, valPubKey crypto.PubKey, decertifier sdk.AccAddress) error + func (k Keeper) DeleteCertificate(ctx sdk.Context, certificate types.Certificate) error + func (k Keeper) GetAllCertificates(ctx sdk.Context) (certificates []types.Certificate) + func (k Keeper) GetAllCertifiers(ctx sdk.Context) types.Certifiers + func (k Keeper) GetAllLibraries(ctx sdk.Context) (libraries types.Libraries) + func (k Keeper) GetAllLibraryAddresses(ctx sdk.Context) (libraryAddresses []sdk.AccAddress) + func (k Keeper) GetAllPlatforms(ctx sdk.Context) (platforms []types.Platform) + func (k Keeper) GetAllValidatorPubkeys(ctx sdk.Context) (validatorAddresses []string) + func (k Keeper) GetAllValidators(ctx sdk.Context) (validators types.Validators) + func (k Keeper) GetCertificateByID(ctx sdk.Context, id types.CertificateID) (types.Certificate, error) + func (k Keeper) GetCertificateType(ctx sdk.Context, id types.CertificateID) (types.CertificateType, error) + func (k Keeper) GetCertificatesByCertifier(ctx sdk.Context, certifier sdk.AccAddress) []types.Certificate + func (k Keeper) GetCertificatesByContent(ctx sdk.Context, requestContent types.RequestContent) []types.Certificate + func (k Keeper) GetCertificatesByTypeAndContent(ctx sdk.Context, certType types.CertificateType, ...) []types.Certificate + func (k Keeper) GetCertificatesFiltered(ctx sdk.Context, params types.QueryCertificatesParams) (uint64, []types.Certificate, error) + func (k Keeper) GetCertifiedIdentities(ctx sdk.Context) []sdk.AccAddress + func (k Keeper) GetCertifier(ctx sdk.Context, certifierAddress sdk.AccAddress) (types.Certifier, error) + func (k Keeper) GetCertifierByAlias(ctx sdk.Context, alias string) (types.Certifier, error) + func (k Keeper) GetNewCertificateID(ctx sdk.Context, certType types.CertificateType, ...) (types.CertificateID, error) + func (k Keeper) GetPlatform(ctx sdk.Context, validator crypto.PubKey) (string, bool) + func (k Keeper) GetValidator(ctx sdk.Context, validator crypto.PubKey) ([]byte, bool) + func (k Keeper) GetValidatorCertifier(ctx sdk.Context, validator crypto.PubKey) (sdk.AccAddress, error) + func (k Keeper) HasCertificateByID(ctx sdk.Context, id types.CertificateID) bool + func (k Keeper) HasCertifierAlias(ctx sdk.Context, alias string) bool + func (k Keeper) InvalidateLibrary(ctx sdk.Context, library sdk.AccAddress, invalidator sdk.AccAddress) error + func (k Keeper) IsCertified(ctx sdk.Context, requestContentType string, content string, certType string) bool + func (k Keeper) IsCertifier(ctx sdk.Context, address sdk.AccAddress) bool + func (k Keeper) IsContentCertified(ctx sdk.Context, requestContent string) bool + func (k Keeper) IsLibrary(ctx sdk.Context, library sdk.AccAddress) bool + func (k Keeper) IsValidatorCertified(ctx sdk.Context, validator crypto.PubKey) bool + func (k Keeper) IssueCertificate(ctx sdk.Context, c types.Certificate) (types.CertificateID, error) + func (k Keeper) IterateAllCertificate(ctx sdk.Context, callback func(certificate types.Certificate) (stop bool)) + func (k Keeper) IterateAllCertifiers(ctx sdk.Context, callback func(certifier types.Certifier) (stop bool)) + func (k Keeper) IterateAllLibraries(ctx sdk.Context, callback func(library types.Library) (stop bool)) + func (k Keeper) IterateAllValidators(ctx sdk.Context, callback func(validator types.Validator) (stop bool)) + func (k Keeper) IterateCertificatesByContent(ctx sdk.Context, certType types.CertificateType, content types.RequestContent, ...) + func (k Keeper) IterateCertificatesByType(ctx sdk.Context, certType types.CertificateType, ...) + func (k Keeper) PublishLibrary(ctx sdk.Context, library sdk.AccAddress, publisher sdk.AccAddress) error + func (k Keeper) RevokeCertificate(ctx sdk.Context, certificate types.Certificate, revoker sdk.AccAddress) error + func (k Keeper) SetCertificate(ctx sdk.Context, certificate types.Certificate) + func (k Keeper) SetCertifier(ctx sdk.Context, certifier types.Certifier) + func (k Keeper) SetLibrary(ctx sdk.Context, library sdk.AccAddress, publisher sdk.AccAddress) + func (k Keeper) SetValidator(ctx sdk.Context, validator crypto.PubKey, certifier sdk.AccAddress) + type QueryResCertificate struct + CertificateContent []types.KVPair + CertificateID string + CertificateType string + Certifier string + Description string + RequestContent QueryResRequestContent + TxHash string + func NewQueryResCertificate(certificateID string, certificateType string, ...) QueryResCertificate + type QueryResCertificates struct + Certificates []QueryResCertificate + Total uint64 + type QueryResRequestContent struct + RequestContent string + RequestContentType types.RequestContentType + RequestContentTypeName string + func NewQueryResRequestContent(requestContentType types.RequestContentType, requestContentTypeName string, ...) QueryResRequestContent Other modules containing this package github.com/certikfoundation/shentu/v2