Versions in this module Expand all Collapse all v6 v6.2.13 Sep 22, 2026 v6.2.12 Sep 21, 2026 Changes in this version + const ActingPartyAttr + const AmsterdamTimeZone + const LegalEntityAttr + const LegalEntityCityAttr + const ValidFromAttr + const ValidToAttr + var ErrInvalidContractText = errors.New("invalid contract text") + var ErrInvalidPeriod = fmt.Errorf("%w: invalid period", ErrInvalidContractText) + var NowFunc = time.Now + var StandardContractTemplates = TemplateStore + var StandardSignerAttributes = []string + type Contract struct + Params map[string]string + RawContractText string + Template *Template + func ParseContractString(rawContractText string, contractTemplates TemplateStore) (*Contract, error) + func (sc Contract) Verify() error + func (sc Contract) VerifyForGivenTime(checkTime time.Time) error + type Language string + type MockSessionPointer struct + func NewMockSessionPointer(ctrl *gomock.Controller) *MockSessionPointer + func (m *MockSessionPointer) EXPECT() *MockSessionPointerMockRecorder + func (m *MockSessionPointer) MarshalJSON() ([]byte, error) + func (m *MockSessionPointer) Payload() []byte + func (m *MockSessionPointer) SessionID() string + type MockSessionPointerMockRecorder struct + func (mr *MockSessionPointerMockRecorder) MarshalJSON() *gomock.Call + func (mr *MockSessionPointerMockRecorder) Payload() *gomock.Call + func (mr *MockSessionPointerMockRecorder) SessionID() *gomock.Call + type MockSigner struct + func NewMockSigner(ctrl *gomock.Controller) *MockSigner + func (m *MockSigner) EXPECT() *MockSignerMockRecorder + func (m *MockSigner) SigningSessionStatus(ctx context.Context, sessionID string) (SigningSessionResult, error) + func (m *MockSigner) Start(ctx context.Context) + func (m *MockSigner) StartSigningSession(contract Contract, params map[string]any) (SessionPointer, error) + type MockSignerMockRecorder struct + func (mr *MockSignerMockRecorder) SigningSessionStatus(ctx, sessionID any) *gomock.Call + func (mr *MockSignerMockRecorder) Start(ctx any) *gomock.Call + func (mr *MockSignerMockRecorder) StartSigningSession(contract, params any) *gomock.Call + type MockSigningSessionResult struct + func NewMockSigningSessionResult(ctrl *gomock.Controller) *MockSigningSessionResult + func (m *MockSigningSessionResult) EXPECT() *MockSigningSessionResultMockRecorder + func (m *MockSigningSessionResult) Status() string + func (m *MockSigningSessionResult) VerifiablePresentation() (*vc.VerifiablePresentation, error) + type MockSigningSessionResultMockRecorder struct + func (mr *MockSigningSessionResultMockRecorder) Status() *gomock.Call + func (mr *MockSigningSessionResultMockRecorder) VerifiablePresentation() *gomock.Call + type SessionPointer interface + MarshalJSON func() ([]byte, error) + Payload func() []byte + SessionID func() string + type Signer interface + SigningSessionStatus func(ctx context.Context, sessionID string) (SigningSessionResult, error) + Start func(ctx context.Context) + StartSigningSession func(contract Contract, params map[string]interface{}) (SessionPointer, error) + type SigningSessionResult interface + Status func() string + VerifiablePresentation func() (*vc.VerifiablePresentation, error) + type State string + const Invalid + const Valid + type Template struct + Language Language + Locale string + Regexp string + SignerAttributes []string + SignerDemoAttributes []string + Template string + TemplateAttributes []string + Type Type + Version Version + func (c Template) Render(vars map[string]string, validFrom time.Time, validDuration time.Duration) (*Contract, error) + type TemplateStore map[Language]map[Type]map[Version]*Template + func (m TemplateStore) FindFromRawContractText(rawContractText string) (*Template, error) + func (m TemplateStore) Get(cType Type, language Language, version Version) *Template + type Type string + type VPVerificationResult interface + ContractAttribute func(key string) string + ContractAttributes func() map[string]string + DisclosedAttribute func(key string) string + DisclosedAttributes func() map[string]string + Reason func() string + VPType func() string + Validity func() State + type VPVerifier interface + VerifyVP func(vp vc.VerifiablePresentation, checkTime *time.Time) (VPVerificationResult, error) + type VerifierType string + type Version string Other modules containing this package github.com/nuts-foundation/nuts-node github.com/nuts-foundation/nuts-node/v5