signing

package
v1.4.13 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: GPL-3.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBitmapMismatch = errors.New("multi signer reported a mismatch in used bitmap")

ErrBitmapMismatch is raised when an invalid bitmap is passed to the multisigner

View Source
var ErrEmptyPubKeyString = errors.New("public key string is empty")

ErrEmptyPubKeyString is raised when an empty public key string is used

View Source
var ErrIndexNotSelected = errors.New("index is not selected")

ErrIndexNotSelected is raised when a not selected index is used for multi-signing

View Source
var ErrIndexOutOfBounds = errors.New("index is out of bounds")

ErrIndexOutOfBounds is raised when an out of bound index is used

View Source
var ErrInvalidSignature = errors.New("invalid signature was provided")

ErrInvalidSignature is raised for an invalid signature

View Source
var ErrNilBitmap = errors.New("bitmap is nil")

ErrNilBitmap is raised when a nil bitmap is used

View Source
var ErrNilElement = errors.New("element is nil")

ErrNilElement is raised when searching for a specific element but found nil

View Source
var ErrNilKeyGenerator = errors.New("key generator is nil")

ErrNilKeyGenerator is raised when a valid key generator is expected but nil used

View Source
var ErrNilMessage = errors.New("message to be signed or to be verified is nil")

ErrNilMessage is raised when trying to verify a nil signed message or trying to sign a nil message

View Source
var ErrNilMultiSignerContainer = errors.New("multi signer container is nil")

ErrNilMultiSignerContainer is raised when a nil multi signer container has been provided

View Source
var ErrNilPublicKeys = errors.New("public keys are nil")

ErrNilPublicKeys is raised when public keys are expected but received nil

View Source
var ErrNoPrivateKeySet = errors.New("no private key was set")

ErrNoPrivateKeySet is raised when no private key was set

View Source
var ErrNoPublicKeySet = errors.New("no public key was set")

ErrNoPublicKeySet is raised when no public key was set for a multisignature

Functions

func NewSignatureHolder

func NewSignatureHolder(args ArgsSignatureHolder) (*signatureHolder, error)

NewSignatureHolder will create a new signature holder component

Types

type ArgsSignatureHolder

type ArgsSignatureHolder struct {
	PubKeys              []string
	PrivKeyBytes         []byte
	MultiSignerContainer cryptoCommon.MultiSignerContainer
	KeyGenerator         crypto.KeyGenerator
}

ArgsSignatureHolder defines the arguments needed to create a new signature holder component

Jump to

Keyboard shortcuts

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