gost512

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/PrivKey512"
	PubKeyName  = "tendermint/PubKey512"

	PubKeySize     = gkeys.PubKeySize512
	PrivateKeySize = gkeys.PrivKeySize512

	SignatureSize = gkeys.SignatureSize512

	ProvType = "512"
	KeyType  = gkeys.KeyType + " " + ProvType
)

Variables

This section is empty.

Functions

func NewBatchVerifier

func NewBatchVerifier() crypto.BatchVerifier

Types

type BatchVerifier

type BatchVerifier gkeys.BatchVerifierX

func (*BatchVerifier) Add

func (b *BatchVerifier) Add(key crypto.PubKey, msg, signature []byte) error

func (*BatchVerifier) Verify

func (b *BatchVerifier) Verify() (bool, []bool)

type PrivKey

type PrivKey gkeys.PrivKey512

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.PubKey512

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