crypto

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: GPL-3.0 Imports: 0 Imported by: 1

README

Crypto

About crypto algorithm and libraries.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Algorithm

type Algorithm uint8
const (
	ALG_UNKNOWN   Algorithm = 0
	ALG_SECP256K1 Algorithm = 1
	ALG_QTESLA    Algorithm = 128
)

func (Algorithm) AddressInferrable

func (a Algorithm) AddressInferrable() bool

type Signature

type Signature struct {
	Algorithm Algorithm
	Signature []byte
}

func (Signature) String

func (s Signature) String() string

type Signer

type Signer interface {
	Algorithm() Algorithm

	InitSigner(privateKey []byte) error

	Sign(data []byte) (signature *Signature, err error)

	RecoverPublicKey(data []byte, signature *Signature) (publicKey []byte, err error)

	Verify(publicKey []byte, data []byte, signature *Signature) bool
}

Directories

Path Synopsis
pqc
Package secp256k1 wraps the bitcoin secp256k1 C library.
Package secp256k1 wraps the bitcoin secp256k1 C library.

Jump to

Keyboard shortcuts

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