crypto

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sha3

func Sha3(b []byte) []byte

Sha3 - hash specified byte array

func Sha3String

func Sha3String(b []byte) string

Sha3String - hash specified byte array to string

func Sha3d

func Sha3d(b []byte) []byte

Sha3d - hash specified byte array using sha3d algorithm

func Sha3dString

func Sha3dString(b []byte) string

Sha3dString - hash specified byte array to string using sha3d algorithm

func Sha3n

func Sha3n(b []byte, n uint) []byte

Sha3n - hash specified byte array n times

func Sha3nString

func Sha3nString(b []byte, n uint) string

Sha3nString - hash specified byte array n times to string

Types

type Signature

type Signature struct {
	PublicKey *ecdsa.PublicKey `json:"pubKey"` // Public key

	Time time.Time `json:"time"` // Signature time

	V []byte   `json:"V"` // Hash signature value
	R *big.Int `json:"R"` // Signature R
	S *big.Int `json:"s"` // Signature S
}

Signature - struct containing signature values

func (*Signature) Bytes

func (signature *Signature) Bytes() []byte

Bytes - convert given signature to byte array

func (*Signature) String

func (signature *Signature) String() string

String - convert given signature to string

Jump to

Keyboard shortcuts

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