contract

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingOrganizationKey = errors.New("missing organization private key")

ErrMissingOrganizationKey is used to indicate that this node has no private key of the indicated organization. This usually means that the organization is not managed by this node.

View Source
var ErrUnknownSigningMeans = errors.New("unknown signing means")

ErrUnknownSigningMeans is used when the node does not now how to handle the indicated signing means todo move

Functions

func NewNotary

func NewNotary(config Config, vcr vcr.VCR, keyResolver types.KeyResolver, keyStore crypto.KeyStore) services.ContractNotary

NewNotary accepts the registry and crypto Nuts engines and returns a ContractNotary

Types

type Config

type Config struct {
	AutoUpdateIrmaSchemas bool
	StrictMode            bool
	PublicURL             string
	IrmaConfigPath        string
	IrmaSchemeManager     string
	ContractValidators    []string
	ContractValidity      time.Duration
}

Config holds all the configuration params todo this doubles the pkg/Config?

Jump to

Keyboard shortcuts

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