keeper

package
v1.4.0-dev3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey storetypes.StoreKey,

	dclauthKeeper types.DclauthKeeper,
) *Keeper

func (Keeper) AddApprovedCertificate

func (k Keeper) AddApprovedCertificate(ctx sdk.Context, approvedCertificate types.Certificate, schemaVersion uint32)

Add an approved certificate to the list of approved certificates for the subject/subjectKeyId map.

func (Keeper) AddApprovedCertificateBySubject

func (k Keeper) AddApprovedCertificateBySubject(ctx sdk.Context, subject string, subjectKeyID string)

Add ApprovedCertificates to a subject->subjectKeyId index.

func (Keeper) AddApprovedCertificateBySubjectKeyID added in v1.4.0

func (k Keeper) AddApprovedCertificateBySubjectKeyID(ctx sdk.Context, certificate types.Certificate)

Add an approved certificate to the list of approved certificates with the subjectKeyId map.

func (Keeper) AddApprovedCertificatesBySubjectKeyID added in v1.4.0

func (k Keeper) AddApprovedCertificatesBySubjectKeyID(ctx sdk.Context, approvedCertificate types.ApprovedCertificates)

Add an approved certificates list to approved certificates with the subjectKeyId map.

func (Keeper) AddApprovedRootCertificate

func (k Keeper) AddApprovedRootCertificate(ctx sdk.Context, certID types.CertificateIdentifier)

Add root certificate to the list.

func (Keeper) AddChildCertificate

func (k Keeper) AddChildCertificate(ctx sdk.Context, issuer string, authorityKeyID string, certID types.CertificateIdentifier)

Add a child certificate to the list of child certificate IDs for the issuer/authorityKeyId map.

func (Keeper) AddNocIcaCertificate added in v1.4.0

func (k Keeper) AddNocIcaCertificate(ctx sdk.Context, nocIcaCertificates types.Certificate)

AddNocIcaCertificates adds a NOC certificate to the list of NOC certificates for the VID map.

func (Keeper) AddNocRootCertificate added in v1.4.0

func (k Keeper) AddNocRootCertificate(ctx sdk.Context, nocCertificate types.Certificate)

Add a NOC root certificate to the list of NOC root certificates for the VID map.

func (Keeper) AddPkiRevocationDistributionPointBySubjectKeyID added in v1.2.0

func (k Keeper) AddPkiRevocationDistributionPointBySubjectKeyID(ctx sdk.Context, pkiRevocationDistributionPoint types.PkiRevocationDistributionPoint)

Add PkiRevocationDistributionPoint to a subjectKeyID->revocationPoint index.

func (Keeper) AddRevokedCertificates

func (k Keeper) AddRevokedCertificates(ctx sdk.Context, approvedCertificates types.ApprovedCertificates, schemaVersion uint32)

Add revoked certificates to the list of revoked certificates for the subject/subjectKeyId map.

func (Keeper) AddRevokedNocRootCertificates added in v1.4.0

func (k Keeper) AddRevokedNocRootCertificates(ctx sdk.Context, revokedNocRootCertificates types.RevokedNocRootCertificates)

AddRevokedNocRootCertificates adds revoked NOC certificates to the list of revoked NOC certificates for the subject/subjectKeyId map.

func (Keeper) AddRevokedRootCertificate

func (k Keeper) AddRevokedRootCertificate(ctx sdk.Context, certID types.CertificateIdentifier)

Add revoked root certificate to the list.

func (Keeper) CertificateApprovalsCount added in v0.8.0

func (k Keeper) CertificateApprovalsCount(ctx sdk.Context, authKeeper types.DclauthKeeper) int

func (Keeper) CertificateRejectApprovalsCount added in v0.11.0

func (k Keeper) CertificateRejectApprovalsCount(ctx sdk.Context, authKeeper types.DclauthKeeper) int

func (Keeper) EnsureVidMatches added in v1.4.0

func (k Keeper) EnsureVidMatches(ctx sdk.Context, owner string, signer string) error

func (Keeper) GetAllApprovedCertificates

func (k Keeper) GetAllApprovedCertificates(ctx sdk.Context) (list []types.ApprovedCertificates)

GetAllApprovedCertificates returns all approvedCertificates.

func (Keeper) GetAllApprovedCertificatesBySubject

func (k Keeper) GetAllApprovedCertificatesBySubject(ctx sdk.Context) (list []types.ApprovedCertificatesBySubject)

GetAllApprovedCertificatesBySubject returns all approvedCertificatesBySubject.

func (Keeper) GetAllApprovedCertificatesBySubjectKeyID added in v1.4.0

func (k Keeper) GetAllApprovedCertificatesBySubjectKeyID(ctx sdk.Context) (list []types.ApprovedCertificatesBySubjectKeyId)

GetAllApprovedCertificatesBySubjectKeyID returns all approvedCertificatesBySubjectKeyId.

func (Keeper) GetAllChildCertificates

func (k Keeper) GetAllChildCertificates(ctx sdk.Context) (list []types.ChildCertificates)

GetAllChildCertificates returns all childCertificates.

func (Keeper) GetAllNocIcaCertificates added in v1.4.0

func (k Keeper) GetAllNocIcaCertificates(ctx sdk.Context) (list []types.NocIcaCertificates)

GetAllNocIcaCertificates returns all NocIcaCertificates.

func (Keeper) GetAllNocRootCertificates added in v1.4.0

func (k Keeper) GetAllNocRootCertificates(ctx sdk.Context) (list []types.NocRootCertificates)

GetAllNocRootCertificates returns all nocRootCertificates.

func (Keeper) GetAllPkiRevocationDistributionPoint added in v1.2.0

func (k Keeper) GetAllPkiRevocationDistributionPoint(ctx sdk.Context) (list []types.PkiRevocationDistributionPoint)

GetAllPkiRevocationDistributionPoint returns all pKIRevocationDistributionPoint.

func (Keeper) GetAllPkiRevocationDistributionPointsByIssuerSubjectKeyID added in v1.2.0

func (k Keeper) GetAllPkiRevocationDistributionPointsByIssuerSubjectKeyID(ctx sdk.Context) (list []types.PkiRevocationDistributionPointsByIssuerSubjectKeyID)

GetAllPkiRevocationDistributionPointsByIssuerSubjectKeyID returns all pkiRevocationDistributionPointsByIssuerSubjectKeyID.

func (Keeper) GetAllProposedCertificate

func (k Keeper) GetAllProposedCertificate(ctx sdk.Context) (list []types.ProposedCertificate)

GetAllProposedCertificate returns all proposedCertificate.

func (Keeper) GetAllProposedCertificateRevocation

func (k Keeper) GetAllProposedCertificateRevocation(ctx sdk.Context) (list []types.ProposedCertificateRevocation)

GetAllProposedCertificateRevocation returns all proposedCertificateRevocation.

func (Keeper) GetAllRejectedCertificate added in v0.11.0

func (k Keeper) GetAllRejectedCertificate(ctx sdk.Context) (list []types.RejectedCertificate)

GetAllRejectedCertificate returns all rejectedCertificate.

func (Keeper) GetAllRevokedCertificates

func (k Keeper) GetAllRevokedCertificates(ctx sdk.Context) (list []types.RevokedCertificates)

GetAllRevokedCertificates returns all revokedCertificates.

func (Keeper) GetAllRevokedNocRootCertificates added in v1.4.0

func (k Keeper) GetAllRevokedNocRootCertificates(ctx sdk.Context) (list []types.RevokedNocRootCertificates)

GetAllRevokedNocRootCertificates returns all revokedNocRootCertificates.

func (Keeper) GetAllUniqueCertificate

func (k Keeper) GetAllUniqueCertificate(ctx sdk.Context) (list []types.UniqueCertificate)

GetAllUniqueCertificate returns all uniqueCertificate.

func (Keeper) GetApprovedCertificates

func (k Keeper) GetApprovedCertificates(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,
) (val types.ApprovedCertificates, found bool)

GetApprovedCertificates returns a approvedCertificates from its index.

func (Keeper) GetApprovedCertificatesBySubject

func (k Keeper) GetApprovedCertificatesBySubject(
	ctx sdk.Context,
	subject string,
) (val types.ApprovedCertificatesBySubject, found bool)

GetApprovedCertificatesBySubject returns a approvedCertificatesBySubject from its index.

func (Keeper) GetApprovedCertificatesBySubjectKeyID added in v1.4.0

func (k Keeper) GetApprovedCertificatesBySubjectKeyID(
	ctx sdk.Context,
	subjectKeyID string,

) (val types.ApprovedCertificatesBySubjectKeyId, found bool)

GetApprovedCertificatesBySubjectKeyID returns a approvedCertificatesBySubjectKeyId from its index.

func (Keeper) GetApprovedRootCertificates

func (k Keeper) GetApprovedRootCertificates(ctx sdk.Context) (val types.ApprovedRootCertificates, found bool)

GetApprovedRootCertificates returns approvedRootCertificates.

func (Keeper) GetChildCertificates

func (k Keeper) GetChildCertificates(
	ctx sdk.Context,
	issuer string,
	authorityKeyID string,
) (val types.ChildCertificates, found bool)

GetChildCertificates returns a childCertificates from its index.

func (Keeper) GetNocIcaCertificates added in v1.4.0

func (k Keeper) GetNocIcaCertificates(
	ctx sdk.Context,
	vid int32,

) (val types.NocIcaCertificates, found bool)

GetNocIcaCertificates returns a NocIcaCertificates from its index.

func (Keeper) GetNocRootCertificates added in v1.4.0

func (k Keeper) GetNocRootCertificates(
	ctx sdk.Context,
	vid int32,

) (val types.NocRootCertificates, found bool)

GetNocRootCertificates returns a nocRootCertificates from its index.

func (Keeper) GetPkiRevocationDistributionPoint added in v1.2.0

func (k Keeper) GetPkiRevocationDistributionPoint(
	ctx sdk.Context,
	vid int32,
	label string,
	issuerSubjectKeyID string,

) (val types.PkiRevocationDistributionPoint, found bool)

GetPkiRevocationDistributionPoint returns a pKIRevocationDistributionPoint from its index.

func (Keeper) GetPkiRevocationDistributionPointsByIssuerSubjectKeyID added in v1.2.0

func (k Keeper) GetPkiRevocationDistributionPointsByIssuerSubjectKeyID(
	ctx sdk.Context,
	issuerSubjectKeyID string,

) (val types.PkiRevocationDistributionPointsByIssuerSubjectKeyID, found bool)

GetPkiRevocationDistributionPointsByIssuerSubjectKeyID returns a pkiRevocationDistributionPointsByIssuerSubjectKeyID from its index.

func (Keeper) GetProposedCertificate

func (k Keeper) GetProposedCertificate(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,
) (val types.ProposedCertificate, found bool)

GetProposedCertificate returns a proposedCertificate from its index.

func (Keeper) GetProposedCertificateRevocation

func (k Keeper) GetProposedCertificateRevocation(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,
	serialNumber string,
) (val types.ProposedCertificateRevocation, found bool)

GetProposedCertificateRevocation returns a proposedCertificateRevocation from its index.

func (Keeper) GetRejectedCertificate added in v0.11.0

func (k Keeper) GetRejectedCertificate(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,
) (val types.RejectedCertificate, found bool)

GetRejectedCertificate returns a rejectedCertificate from its index.

func (Keeper) GetRevokedCertificates

func (k Keeper) GetRevokedCertificates(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,
) (val types.RevokedCertificates, found bool)

GetRevokedCertificates returns a revokedCertificates from its index.

func (Keeper) GetRevokedNocRootCertificates added in v1.4.0

func (k Keeper) GetRevokedNocRootCertificates(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,

) (val types.RevokedNocRootCertificates, found bool)

GetRevokedNocRootCertificates returns a revokedNocRootCertificates from its index.

func (Keeper) GetRevokedRootCertificates

func (k Keeper) GetRevokedRootCertificates(ctx sdk.Context) (val types.RevokedRootCertificates, found bool)

GetRevokedRootCertificates returns revokedRootCertificates.

func (Keeper) GetUniqueCertificate

func (k Keeper) GetUniqueCertificate(
	ctx sdk.Context,
	issuer string,
	serialNumber string,
) (val types.UniqueCertificate, found bool)

GetUniqueCertificate returns a uniqueCertificate from its index.

func (Keeper) IsApprovedCertificatePresent

func (k Keeper) IsApprovedCertificatePresent(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,
) bool

Check if the Approved Certificate record associated with a Subject/SubjectKeyID combination is present in the store.

func (Keeper) IsProposedCertificatePresent

func (k Keeper) IsProposedCertificatePresent(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,
) bool

Check if the Proposed Certificate record associated with a Subject/SubjectKeyID combination is present in the store.

func (Keeper) IsProposedCertificateRevocationPresent

func (k Keeper) IsProposedCertificateRevocationPresent(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,
	serialNumber string,
) bool

Check if the Proposed Certificate Revocation record associated with a Subject/SubjectKeyID combination is present in the store.

func (Keeper) IsUniqueCertificatePresent

func (k Keeper) IsUniqueCertificatePresent(
	ctx sdk.Context,
	issuer string,
	serialNumber string,
) bool

Check if the unique certificate key (Issuer/SerialNumber combination) is busy.

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) NocIcaCertificates added in v1.4.0

func (Keeper) NocIcaCertificatesAll added in v1.4.0

func (Keeper) NocRootCertificatesAll added in v1.4.0

func (Keeper) RejectedCertificateAll added in v0.11.0

func (Keeper) RemoveApprovedCertificateBySubject

func (k Keeper) RemoveApprovedCertificateBySubject(ctx sdk.Context, subject string, subjectKeyID string)

Remove revoked root certificate from the list.

func (Keeper) RemoveApprovedCertificates

func (k Keeper) RemoveApprovedCertificates(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,
)

RemoveApprovedCertificates removes a approvedCertificates from the store.

func (Keeper) RemoveApprovedCertificatesBySubject

func (k Keeper) RemoveApprovedCertificatesBySubject(
	ctx sdk.Context,
	subject string,
)

RemoveApprovedCertificatesBySubject removes a approvedCertificatesBySubject from the store.

func (Keeper) RemoveApprovedCertificatesBySubjectKeyID added in v1.4.0

func (k Keeper) RemoveApprovedCertificatesBySubjectKeyID(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,
)

RemoveApprovedCertificatesBySubjectKeyID removes a approvedCertificatesBySubjectKeyId from the store.

func (Keeper) RemoveApprovedCertificatesBySubjectKeyIDAndSerialNumber added in v1.4.0

func (k Keeper) RemoveApprovedCertificatesBySubjectKeyIDAndSerialNumber(ctx sdk.Context, subject, subjectKeyID, serialNumber string)

func (Keeper) RemoveApprovedRootCertificate

func (k Keeper) RemoveApprovedRootCertificate(ctx sdk.Context, certID types.CertificateIdentifier)

Remove root certificate from the list.

func (Keeper) RemoveApprovedRootCertificates

func (k Keeper) RemoveApprovedRootCertificates(ctx sdk.Context)

RemoveApprovedRootCertificates removes approvedRootCertificates from the store.

func (Keeper) RemoveChildCertificates

func (k Keeper) RemoveChildCertificates(
	ctx sdk.Context,
	issuer string,
	authorityKeyID string,
)

RemoveChildCertificates removes a childCertificates from the store.

func (Keeper) RemoveNocIcaCertificate added in v1.4.0

func (k Keeper) RemoveNocIcaCertificate(ctx sdk.Context, subject, subjectKeyID string, vid int32)

func (Keeper) RemoveNocIcaCertificateBySerialNumber added in v1.4.0

func (k Keeper) RemoveNocIcaCertificateBySerialNumber(ctx sdk.Context, vid int32, subject, subjectKeyID, serialNumber string)

func (Keeper) RemoveNocIcaCertificates added in v1.4.0

func (k Keeper) RemoveNocIcaCertificates(ctx sdk.Context, vid int32)

RemoveNocIcaCertificates removes a NocIcaCertificates from the store.

func (Keeper) RemoveNocRootCertificate added in v1.4.0

func (k Keeper) RemoveNocRootCertificate(ctx sdk.Context, vid int32, subject, subjectKeyID string)

func (Keeper) RemoveNocRootCertificateBySerialNumber added in v1.4.0

func (k Keeper) RemoveNocRootCertificateBySerialNumber(ctx sdk.Context, vid int32, subject, subjectKeyID, serialNumber string)

func (Keeper) RemoveNocRootCertificates added in v1.4.0

func (k Keeper) RemoveNocRootCertificates(
	ctx sdk.Context,
	vid int32,

)

RemoveNocRootCertificates removes a nocRootCertificates from the store.

func (Keeper) RemovePkiRevocationDistributionPoint added in v1.2.0

func (k Keeper) RemovePkiRevocationDistributionPoint(
	ctx sdk.Context,
	vid int32,
	label string,
	issuerSubjectKeyID string,

)

RemovePkiRevocationDistributionPoint removes a pKIRevocationDistributionPoint from the store.

func (Keeper) RemovePkiRevocationDistributionPointBySubjectKeyID added in v1.2.0

func (k Keeper) RemovePkiRevocationDistributionPointBySubjectKeyID(ctx sdk.Context, pkiRevocationDistributionPoint types.PkiRevocationDistributionPoint)

Remove PkiRevocationDistributionPoint from a subjectKeyID->revocationPoint index.

func (Keeper) RemovePkiRevocationDistributionPointsByIssuerSubjectKeyID added in v1.2.0

func (k Keeper) RemovePkiRevocationDistributionPointsByIssuerSubjectKeyID(
	ctx sdk.Context,
	issuerSubjectKeyID string,

)

RemovePkiRevocationDistributionPointsByIssuerSubjectKeyID removes a pkiRevocationDistributionPointsByIssuerSubjectKeyID from the store.

func (Keeper) RemoveProposedCertificate

func (k Keeper) RemoveProposedCertificate(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,
)

RemoveProposedCertificate removes a proposedCertificate from the store.

func (Keeper) RemoveProposedCertificateRevocation

func (k Keeper) RemoveProposedCertificateRevocation(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,
	serialNumber string,
)

RemoveProposedCertificateRevocation removes a proposedCertificateRevocation from the store.

func (Keeper) RemoveRejectedCertificate added in v0.11.0

func (k Keeper) RemoveRejectedCertificate(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,
)

RemoveRejectedCertificate removes a rejectedCertificate from the store.

func (Keeper) RemoveRevokedCertificates

func (k Keeper) RemoveRevokedCertificates(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,
)

RemoveRevokedCertificates removes a revokedCertificates from the store.

func (Keeper) RemoveRevokedNocRootCertificates added in v1.4.0

func (k Keeper) RemoveRevokedNocRootCertificates(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,

)

RemoveRevokedNocRootCertificates removes a revokedNocRootCertificates from the store.

func (Keeper) RemoveRevokedRootCertificate

func (k Keeper) RemoveRevokedRootCertificate(ctx sdk.Context, certID types.CertificateIdentifier)

Remove revoked root certificate from the list.

func (Keeper) RemoveRevokedRootCertificates

func (k Keeper) RemoveRevokedRootCertificates(ctx sdk.Context)

RemoveRevokedRootCertificates removes revokedRootCertificates from the store.

func (Keeper) RemoveUniqueCertificate

func (k Keeper) RemoveUniqueCertificate(
	ctx sdk.Context,
	issuer string,
	serialNumber string,
)

RemoveUniqueCertificate removes a uniqueCertificate from the store.

func (Keeper) SetApprovedCertificates

func (k Keeper) SetApprovedCertificates(ctx sdk.Context, approvedCertificates types.ApprovedCertificates)

SetApprovedCertificates set a specific approvedCertificates in the store from its index.

func (Keeper) SetApprovedCertificatesBySubject

func (k Keeper) SetApprovedCertificatesBySubject(ctx sdk.Context, approvedCertificatesBySubject types.ApprovedCertificatesBySubject)

SetApprovedCertificatesBySubject set a specific approvedCertificatesBySubject in the store from its index.

func (Keeper) SetApprovedCertificatesBySubjectKeyID added in v1.4.0

func (k Keeper) SetApprovedCertificatesBySubjectKeyID(ctx sdk.Context, approvedCertificatesBySubjectKeyID types.ApprovedCertificatesBySubjectKeyId)

SetApprovedCertificatesBySubjectKeyID set a specific approvedCertificatesBySubjectKeyId in the store from its index.

func (Keeper) SetApprovedRootCertificates

func (k Keeper) SetApprovedRootCertificates(ctx sdk.Context, approvedRootCertificates types.ApprovedRootCertificates)

SetApprovedRootCertificates set approvedRootCertificates in the store.

func (Keeper) SetChildCertificates

func (k Keeper) SetChildCertificates(ctx sdk.Context, childCertificates types.ChildCertificates)

SetChildCertificates set a specific childCertificates in the store from its index.

func (Keeper) SetNocIcaCertificates added in v1.4.0

func (k Keeper) SetNocIcaCertificates(ctx sdk.Context, nocIcaCertificates types.NocIcaCertificates)

SetNocIcaCertificates set a specific NocIcaCertificates in the store from its index.

func (Keeper) SetNocRootCertificates added in v1.4.0

func (k Keeper) SetNocRootCertificates(ctx sdk.Context, nocRootCertificates types.NocRootCertificates)

SetNocRootCertificates set a specific nocRootCertificates in the store from its index.

func (Keeper) SetPkiRevocationDistributionPoint added in v1.2.0

func (k Keeper) SetPkiRevocationDistributionPoint(ctx sdk.Context, pKIRevocationDistributionPoint types.PkiRevocationDistributionPoint)

SetPkiRevocationDistributionPoint set a specific pKIRevocationDistributionPoint in the store from its index.

func (Keeper) SetPkiRevocationDistributionPointsByIssuerSubjectKeyID added in v1.2.0

func (k Keeper) SetPkiRevocationDistributionPointsByIssuerSubjectKeyID(ctx sdk.Context, pkiRevocationDistributionPointsByIssuerSubjectKeyID types.PkiRevocationDistributionPointsByIssuerSubjectKeyID)

SetPkiRevocationDistributionPointsByIssuerSubjectKeyID set a specific pkiRevocationDistributionPointsByIssuerSubjectKeyID in the store from its index.

func (Keeper) SetProposedCertificate

func (k Keeper) SetProposedCertificate(ctx sdk.Context, proposedCertificate types.ProposedCertificate)

SetProposedCertificate set a specific proposedCertificate in the store from its index.

func (Keeper) SetProposedCertificateRevocation

func (k Keeper) SetProposedCertificateRevocation(ctx sdk.Context, proposedCertificateRevocation types.ProposedCertificateRevocation)

SetProposedCertificateRevocation set a specific proposedCertificateRevocation in the store from its index.

func (Keeper) SetRejectedCertificate added in v0.11.0

func (k Keeper) SetRejectedCertificate(ctx sdk.Context, rejectedCertificate types.RejectedCertificate)

SetRejectedCertificate set a specific rejectedCertificate in the store from its index.

func (Keeper) SetRevokedCertificates

func (k Keeper) SetRevokedCertificates(ctx sdk.Context, revokedCertificates types.RevokedCertificates)

SetRevokedCertificates set a specific revokedCertificates in the store from its index.

func (Keeper) SetRevokedNocRootCertificates added in v1.4.0

func (k Keeper) SetRevokedNocRootCertificates(ctx sdk.Context, revokedNocRootCertificates types.RevokedNocRootCertificates)

SetRevokedNocRootCertificates set a specific revokedNocRootCertificates in the store from its index.

func (Keeper) SetRevokedRootCertificates

func (k Keeper) SetRevokedRootCertificates(ctx sdk.Context, revokedRootCertificates types.RevokedRootCertificates)

SetRevokedRootCertificates set revokedRootCertificates in the store.

func (Keeper) SetUniqueCertificate

func (k Keeper) SetUniqueCertificate(ctx sdk.Context, uniqueCertificate types.UniqueCertificate)

SetUniqueCertificate set a specific uniqueCertificate in the store from its index.

func (Keeper) UpdatePkiRevocationDistributionPointBySubjectKeyID added in v1.2.0

func (k Keeper) UpdatePkiRevocationDistributionPointBySubjectKeyID(ctx sdk.Context, pkiRevocationDistributionPoint types.PkiRevocationDistributionPoint)

Update PkiRevocationDistributionPoint in a subjectKeyID->revocationPoint index.

type Migrator added in v1.4.0

type Migrator struct {
	// contains filtered or unexported fields
}

Migrator is a struct for handling in-place store migrations.

func NewMigrator added in v1.4.0

func NewMigrator(keeper Keeper) Migrator

NewMigrator returns a new Migrator.

func (Migrator) Migrate1to2 added in v1.4.0

func (m Migrator) Migrate1to2(_ sdk.Context) error

Migrate1to2 migrates from version 1 to 2.

func (Migrator) Migrate2to3 added in v1.4.0

func (m Migrator) Migrate2to3(ctx sdk.Context) error

Migrate2to3 migrates from version 2 to 3.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL