crypto

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CryptoIdentity

type CryptoIdentity struct {
	// contains filtered or unexported fields
}

CryptoIdentity is a test helper for generating keys and addresses of various interfaces and types used by the SDK and Tendermint from a single 'root' seed.

func GenMultipleCryptoIds added in v1.2.0

func GenMultipleCryptoIds(num int, fromIntSeed int) []*CryptoIdentity

GenMultipleCryptoIds generates and returns multiple CryptoIdentities from a starting int seed.

func NewCryptoIdentityFromBytesSeed

func NewCryptoIdentityFromBytesSeed(seed []byte) *CryptoIdentity

func NewCryptoIdentityFromIntSeed

func NewCryptoIdentityFromIntSeed(i int) *CryptoIdentity

func (*CryptoIdentity) ConsensusSDKPubKey

func (v *CryptoIdentity) ConsensusSDKPubKey() sdkcryptotypes.PubKey

func (*CryptoIdentity) ConsumerConsAddress added in v1.1.1

func (v *CryptoIdentity) ConsumerConsAddress() providertypes.ConsumerConsAddress

Returns the cons address of the crypto identity as a ConsumerConsAddress. In most cases, one crypto identity should NOT be casted to both a ProviderConsAddress and ConsumerConsAddress. However, test intention is left to the caller.

func (*CryptoIdentity) OperatorSDKPubKey

func (v *CryptoIdentity) OperatorSDKPubKey() sdkcryptotypes.PubKey

func (*CryptoIdentity) ProviderConsAddress added in v1.1.1

func (v *CryptoIdentity) ProviderConsAddress() providertypes.ProviderConsAddress

Returns the cons address of the crypto identity as a ProviderConsAddress. In most cases, one crypto identity should NOT be casted to both a ProviderConsAddress and ConsumerConsAddress. However, test intention is left to the caller.

func (*CryptoIdentity) SDKStakingValidator

func (v *CryptoIdentity) SDKStakingValidator() sdkstakingtypes.Validator

func (*CryptoIdentity) SDKValConsAddress

func (v *CryptoIdentity) SDKValConsAddress() sdktypes.ConsAddress

func (*CryptoIdentity) SDKValOpAddress

func (v *CryptoIdentity) SDKValOpAddress() sdktypes.ValAddress

func (*CryptoIdentity) TMCryptoPubKey

func (v *CryptoIdentity) TMCryptoPubKey() tmcrypto.PubKey

func (*CryptoIdentity) TMProtoCryptoPublicKey

func (v *CryptoIdentity) TMProtoCryptoPublicKey() tmprotocrypto.PublicKey

func (*CryptoIdentity) TMValidator

func (v *CryptoIdentity) TMValidator(power int64) *tmtypes.Validator

Jump to

Keyboard shortcuts

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