signature

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: AGPL-3.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Combiner

type Combiner struct{}

Combiner creates a simple implementation for joining and splitting signatures on a level above the cryptographic implementation. It simply concatenates signatures together with their length information and uses this information to split the concatenated bytes into its signature parts again.

func NewCombiner

func NewCombiner() *Combiner

NewCombiner creates a new combiner to join and split signatures.

func (*Combiner) Join

func (c *Combiner) Join(sigs ...crypto.Signature) ([]byte, error)

Join will concatenate the provided signatures into a common byte slice, with added length information. It will never fail.

func (*Combiner) Split

func (c *Combiner) Split(combined []byte) ([]crypto.Signature, error)

Split will split the given byte slice into its signature parts, using the embedded length information. If any length is invalid, it will fail.

Jump to

Keyboard shortcuts

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