profilestesting

package
v4.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountFromAddr

func AccountFromAddr(addr string) authtypes.AccountI

func AssertNoProfileError

func AssertNoProfileError(profile *types.Profile, err error) *types.Profile

func MultiCosmosSignatureFromHex added in v4.2.0

func MultiCosmosSignatureFromHex(unpacker codectypes.AnyUnpacker, hexEncodedSignatureData string) types.Signature

MultiCosmosSignatureFromHex convert the hex-encoded string of the MultiSignature Any value to CosmosSignatureData

func NewAny

func NewAny(value proto.Message) *codectypes.Any

func ProfileFromAddr

func ProfileFromAddr(address string) *types.Profile

func PubKeyFromBech32

func PubKeyFromBech32(pubKey string) cryptotypes.PubKey

func PubKeyFromJSON

func PubKeyFromJSON(cdc codec.Codec, pubKey string) cryptotypes.PubKey

func SingleSignatureFromHex added in v4.2.0

func SingleSignatureFromHex(hexEncodedSignature string) types.Signature

SingleSignatureFromHex convert the hex-encoded string of the single signature to CosmosSignatureData

Types

type ChainLinkAccount

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

func GetChainLinkAccount

func GetChainLinkAccount(chainName string, bech32Prefix string) ChainLinkAccount

func (ChainLinkAccount) Bech32Address

func (a ChainLinkAccount) Bech32Address() *types.Bech32Address

func (ChainLinkAccount) Bech32Proof

func (a ChainLinkAccount) Bech32Proof(user string) types.Proof

func (ChainLinkAccount) Bech32SignatureData

func (a ChainLinkAccount) Bech32SignatureData(signedValue string) types.Signature

func (ChainLinkAccount) ChainName

func (a ChainLinkAccount) ChainName() string
func (a ChainLinkAccount) GetBech32ChainLink(user string, date time.Time) types.ChainLink

func (ChainLinkAccount) PubKey added in v4.2.0

func (a ChainLinkAccount) PubKey() cryptotypes.PubKey

func (ChainLinkAccount) PubKeyAny

func (a ChainLinkAccount) PubKeyAny() *codectypes.Any

func (ChainLinkAccount) Sign added in v4.2.0

func (a ChainLinkAccount) Sign(value string) []byte

Jump to

Keyboard shortcuts

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