profilestesting

package
v5.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 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

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

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

func (a ChainLinkAccount) PubKey() cryptotypes.PubKey

func (ChainLinkAccount) PubKeyAny

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

func (ChainLinkAccount) Sign

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