Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Serializer

type Serializer interface {
	Serialize() ([]byte, error)
}

Serializer is an interface which wraps the Serialize function.

Serialize converts an identity to bytes. It returns an error on failure.

type Signer

type Signer interface {
	Sign(message []byte) ([]byte, error)
}

Signer is an interface which wraps the Sign method.

Sign signs message bytes and returns the signature or an error on failure.

type SignerSerializer

type SignerSerializer interface {
	Signer
	Serializer
}

SignerSerializer groups the Sign and Serialize methods.

Source Files