types

package
v0.2.19 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const RootCodespace = "uptick"

RootCodespace is the codespace for all errors defined in this package

Variables

View Source
var (
	ErrKeyTypeNotSupported = sdkerrors.Register(RootCodespace, codeKeyTypeNotSupported, "key type 'secp256k1' not supported")
)

errors

Functions

func ConvertAddressCosmos2Evm added in v0.2.16

func ConvertAddressCosmos2Evm(cosmosAddress string) (string, error)

func ConvertAddressEvm2Cosmos added in v0.2.16

func ConvertAddressEvm2Cosmos(evmAddress string) (string, error)

func GetUptickAddressFromBech32

func GetUptickAddressFromBech32(address string) (sdk.AccAddress, error)

GetUptickAddressFromBech32 returns the sdk.Account address of given address, while also changing bech32 human readable prefix (HRP) to the value set on the global sdk.Config (eg: `uptick`). The function fails if the provided bech32 address is invalid.

func IsSupportedKey

func IsSupportedKey(pubkey cryptotypes.PubKey) bool

IsSupportedKey returns true if the pubkey type is supported by the chain (i.e eth_secp256k1, amino multisig, ed25519). NOTE: Nested multisigs are not supported.

Types

This section is empty.

Jump to

Keyboard shortcuts

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