sign

package
v0.0.0-...-4502c18 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sign

func Sign(object interfaces.Byter, pair *types.KeyPair, generator *types.Hash,
	signature *types.Hash, dataOffset int)

Sign creates a signature for any element that Byteble implements. Requires that you also specify generator and signature, where the public key of the signer and his signature will be placed. dataOffset will also help you delete the last n bytes of the byte array.

func Verify

func Verify(object interfaces.Byter, generator types.Hash,
	signature types.Hash, dataOffset int) bool

Verify verifies the validity of the generator signature by Byter object. Unlike Sign does not require pointers. For the validity of events, do not forget to specify the same dataOffset when signing and verifying.

Types

This section is empty.

Jump to

Keyboard shortcuts

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