gost256

package
v0.8.14 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrivKeyName = "tendermint/PrivKey256"
	PubKeyName  = "tendermint/PubKey256"

	ProvType = "256"
	KeyType  = gkeys.KeyType + " " + ProvType

	PubKeySize  = gkeys.PubKeySize256
	PrivKeySize = gkeys.PrivKeySize256
)

-------------------------------------

Variables

This section is empty.

Functions

This section is empty.

Types

type PrivKey

type PrivKey gkeys.PrivKey256

func GenPrivKey

func GenPrivKey() PrivKey

func GenPrivKeyWithInput

func GenPrivKeyWithInput(subject, password string) PrivKey

func (PrivKey) Bytes

func (privKey PrivKey) Bytes() []byte

func (PrivKey) Equals

func (privKey PrivKey) Equals(other crypto.PrivKey) bool

func (PrivKey) PubKey

func (privKey PrivKey) PubKey() crypto.PubKey

func (PrivKey) Sign

func (privKey PrivKey) Sign(msg []byte) ([]byte, error)

func (PrivKey) Type

func (privKey PrivKey) Type() string

type PubKey

type PubKey gkeys.PubKey256

func (PubKey) Address

func (pubKey PubKey) Address() crypto.Address

func (PubKey) Bytes

func (pubKey PubKey) Bytes() []byte

func (PubKey) Equals

func (pubKey PubKey) Equals(other crypto.PubKey) bool

func (PubKey) String

func (pubKey PubKey) String() string

func (PubKey) Type

func (pubKey PubKey) Type() string

func (PubKey) VerifySignature

func (pubKey PubKey) VerifySignature(msg []byte, sig []byte) bool

Jump to

Keyboard shortcuts

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