testutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DocumentLoader

func DocumentLoader(t *testing.T, extraContexts ...ldcontext.Document) *ld.DocumentLoader

DocumentLoader returns a document loader with preloaded test contexts.

func SignedVC

SignedVC returns signed VC represented by vcBytes.

func SignedVP

func SignedVP(
	t *testing.T,
	vpBytes []byte,
	kt kmskeytypes.KeyType,
	sr verifiable.SignatureRepresentation,
	sf vcs.Format,
	loader ld.DocumentLoader,
	proofPurpose string,
) (*verifiable.Presentation, vdrapi.Registry)

SignedVP returns signed Presentation represented by vpBytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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