Versions in this module Expand all Collapse all v0 v0.0.2 Jun 13, 2023 Changes in this version + const ApplicationStatusCodeBeforeChallenge + const ApplicationStatusCodeChallenge + const ApplicationStatusCodeFailure + const ApplicationStatusCodePending + const ApplicationStatusCodeSuccess + const ChallengeStatusCodeInvalidEmail + const ChallengeStatusCodeNeedCode + const ChallengeStatusCodeSuccess + const ChallengeStatusWrongCode + const ErrorCodeBadInterestFormat + const ErrorCodeBadParameter + const ErrorCodeBadSignature + const ErrorCodeBadValidityPeriod + const ErrorCodeInvalidParameters + const ErrorCodeNameNotAllowed + const ErrorCodeRunOutOfTime + const ErrorCodeRunOutOfTries + const ErrorReasonBadInterestFormat + const ErrorReasonBadParameterFormat + const ErrorReasonBadSignature + const ErrorReasonBadValidityPeriod + const ErrorReasonInvalidParameters + const ErrorReasonNameNotAllowed + const ErrorReasonRunOutOfTime + const ErrorReasonRunOutOfTries + const ParameterKeyCode + const ParameterKeyEmail + const PrefixChallenge + const PrefixInfo + const PrefixNew + const RequestIdLength + const SchemaJson + const SecretCodeLength + const SelectedChallengeEmail + var AvailableChallenges = []string + var ErrorCodeMapping = map[ErrorCode]string + type ApplicationStatusCode uint64 + type CaConfig struct + Ca struct{ ... } + type CaState struct + CaCertBytes []byte + CaCertName string + CaInfo string + CaPrefix string + ChallengeRequestStateMapping map[RequestId]*ChallengeRequestState + IdentityKey *ecdsa.PrivateKey + MaxValidityPeriod time.Duration + NotAfter time.Time + NotBefore time.Time + Signer ndn.Signer + SmtpModule *email.SmtpModule + func NewCaState(caCertName string, caCertBytes []byte, caInfo string, caPrefix string, ...) (*CaState, error) + func (caState *CaState) OnChallenge(interest ndn.Interest, rawInterest enc.Wire, sigCovered enc.Wire, ...) + func (caState *CaState) OnNew(interest ndn.Interest, _ enc.Wire, sigCovered enc.Wire, reply ndn.ReplyFunc, ...) + func (caState *CaState) Serve(ndnEngine ndn.Engine) error + type ChallengeRequestState struct + type ChallengeState struct + Expiry time.Time + RemainingAttempts uint64 + func NewChallengeState() *ChallengeState + type ChallengeStatus uint64 + const ChallengeStatusChallengeIssued + const ChallengeStatusNewInterestReceived + type ChallengeType uint64 + const EmailChallengeType + const TbdChallengeType + type EmailChallengeState struct + Email string + SecretCode string + func NewEmailChallenge(smtpModule *email.SmtpModule, emailAddress string) (*EmailChallengeState, email.Status) + type ErrorCode uint64 + type ErrorReason []byte + type RequestId [RequestIdLength]byte