signer

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: Unlicense Imports: 4 Imported by: 0

Documentation

Overview

Package signer is an implementation of an efficient method for generating new private keys for putting a unique ECDH cipher half on every single message segment and eliminating correlations in the ciphertexts of the messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeySet

type KeySet struct {
	sync.Mutex
	Base, Increment *prv.Key
}

func New

func New() (first *prv.Key, ks *KeySet, e error)

New creates a new KeySet which enables (relatively) fast generation of new private keys by using scalar addition.

func (*KeySet) Next

func (ks *KeySet) Next() (n *prv.Key)

Next adds Increment to Base, assigns the new value to the Base and returns the new value.

Jump to

Keyboard shortcuts

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