Documentation ¶
Index ¶
Constants ¶
View Source
const ContractFormat = "uzi"
ContractFormat is the contract format type
View Source
const VerifiablePresentationType = "NutsUziPresentation"
VerifiablePresentationType contains the string used in the VerifiablePresentation type array to indicate the Uzi means
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Verifier ¶
type Verifier struct {
UziValidator services.VPProofValueParser
}
Verifier implements the Verifier interface and verifies the VerifiablePresentations of the NutsUziPresentation type.
func (Verifier) VerifyVP ¶
func (u Verifier) VerifyVP(vp vc.VerifiablePresentation, _ *time.Time) (contract.VPVerificationResult, error)
VerifyVP implements the verifiablePresentation Verifier interface. It can verify an Uzi VP. It checks the signature, the attributes and the contract. Returns the contract.VPVerificationResult or an error if something went wrong.
Click to show internal directories.
Click to hide internal directories.