package
6.0.0-beta.10+incompatible
Repository: https://github.com/nuts-foundation/nuts-node.git
Documentation: pkg.go.dev
# Functions
NewMockSessionPointer creates a new mock instance.
NewMockSigner creates a new mock instance.
NewMockSigningSessionResult creates a new mock instance.
ParseContractString parses a raw string, finds the contract from the store and extracts the params Note: It does not verify the params.
# Constants
deprecated, can be removed after irma signature test data has been updated to v3 templates.
AmsterdamTimeZone contains the timezone of the Cannabis capital of Europe.
Invalid is used to indicate a contract was invalid on the time of testing.
LegalEntityAttr contains the key of the legal-entity attribute.
LegalEntityCityAttr contains the key of the legal-entity city attribute.
Valid is used to indicate a contract was valid on the time of testing.
ValidFromAttr contains the key of the valid-from attribute.
ValidToAttr contains the key of the valid-to attribute.
# Variables
ErrInvalidContractText is used when contract texts cannot be parsed or contain invalid values.
ErrInvalidPeriod is returned when the given period is invalid.
NowFunc is used to store a function that returns the current time.
StandardContractTemplates contains a the official contract templates as specified in the Nuts specification EN:PractitionerLogin:v1 Template todo: remove v1 template after renewing (irma) test data.
StandardSignerAttributes defines the standard list of attributes used for a contract.
# Structs
Contract contains the contract template, the raw contract text and the extracted params.
MockSessionPointer is a mock of SessionPointer interface.
MockSessionPointerMockRecorder is the mock recorder for MockSessionPointer.
MockSigner is a mock of Signer interface.
MockSignerMockRecorder is the mock recorder for MockSigner.
MockSigningSessionResult is a mock of SigningSessionResult interface.
MockSigningSessionResultMockRecorder is the mock recorder for MockSigningSessionResult.
Template stores al properties of a contract template which can result in a signed contract.
# Interfaces
SessionPointer contains session information for the means how to sign the payload.
Signer is responsible for signing contract signing requests.
SigningSessionResult holds information in the current status of the SigningSession.
VPVerificationResult describes the result of a contract validation it abstracts the name of the disclosed attributes from the means.
VPVerifier defines the interface needed to verify a VerifiablePresentation.
# Type aliases
Language of the contract in all caps.
State contains the result of the verification.
TemplateStore contains a list of Contract templates sorted by language, type and version.
Type contains type of the contract to sign.
VerifierType is the type for a specific verifier.
Version of the contract.