uzi

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ContractFormat = contract.SigningMeans("uzi")

ContractFormat is the contract format type

View Source
const VerifiablePresentationType = contract.VPType("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(rawVerifiablePresentation []byte, _ *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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL