signer

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context = api.Context

Context holds signing options and private key.

type DocumentSigner

type DocumentSigner struct {
	// contains filtered or unexported fields
}

DocumentSigner implements signing of JSONLD documents.

func New

func New(signatureSuites ...SignatureSuite) *DocumentSigner

New returns new instance of document verifier.

func (*DocumentSigner) Sign

func (signer *DocumentSigner) Sign(
	context *Context,
	jsonLdDoc []byte,
	opts ...processor.Opts,
) ([]byte, error)

Sign will sign JSON LD document.

type SignatureSuite

type SignatureSuite = api.SignerSuite

SignatureSuite encapsulates signature suite methods required for signing documents.

Jump to

Keyboard shortcuts

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