package
0.16.0
Repository: https://github.com/nuts-foundation/nuts-auth.git
Documentation: pkg.go.dev

# Functions

ParseContractString parses a raw string, finds the contract from the store and extracts the params Note: It does not verify the params.

# Constants

deprecated.
No description provided by the author
Invalid is used to indicate a contract was invalid on the time of testing.
No description provided by the author
Valid is used to indicate a contract was valid on the time of testing.
No description provided by the author
No description provided by the author
VerifiableCredentialContext is the v1 base context for VPs todo: move or use lib.
VerifiablePresentationType is used as one of the types for a VerifiablePresentation todo move.

# Variables

ErrContractNotFound is used when a certain combination of type, language and version cannot resolve to a contract.
ErrInvalidContractFormat indicates tha a contract format is unknown.
ErrInvalidContractText is used when contract texts cannot be parsed or contain invalid values.
No description provided by the author
ErrUnknownContractFormat is returned when the contract format is unknown.
ErrUnknownSessionID is returned when the session id is not known.
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.
StandardSignerAttributes defines the standard list of attributes used for a contract.

# Structs

BaseVerifiablePresentation represents a W3C Verifiable Presentation with only its Type attribute.
Contract contains the contract template, the raw contract text and the extracted params.
Proof represents the Proof part of a Verifiable Presentation specific verifiers may extend upon this Proof.
Template stores al properties of a contract template which can result in a signed contract.
VerifiablePresentationBase holds the basic fields for a VerifiableCredential todo: move or use lib.
VPVerificationResult contains the result of a contract validation.

# 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.
VerifiablePresentation represents a W3C Verifiable Presentation.
VPVerifier defines the interface needed to verify a VerifiablePresentation.

# Type aliases

Language of the contract in all caps.
SigningMeans holds the unique nuts name of the singing means.
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.
VPType holds the type of the Verifiable Presentation.