signature

package
v0.15.3-patch.4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: AGPL-3.0 Imports: 3 Imported by: 3 modules, 4 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

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