signer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 6 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	SignatureType string     // required
	Creator       string     // required
	Signer        signer     // required
	Created       *time.Time // optional
	Domain        string     // optional
	Nonce         []byte     // optional
}

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() *DocumentSigner

New returns new instance of document verifier

func (*DocumentSigner) Sign

func (signer *DocumentSigner) Sign(context *Context, jsonLdDoc []byte) ([]byte, error)

Sign will sign JSON LD document

Jump to

Keyboard shortcuts

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