types

package
v7.2.0-rc2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModuleName is the name of the module
	ModuleName = "tron"

	// StoreKey to be used when creating the KVStore
	StoreKey = ModuleName
)

Variables

This section is empty.

Functions

func DefaultGenesisState

func DefaultGenesisState() *crosschaintypes.GenesisState

func GetCheckpointBridgeCall

func GetCheckpointBridgeCall(bridgeCall *types.OutgoingBridgeCall, gravityIDStr string) ([]byte, error)

func GetCheckpointConfirmBatch

func GetCheckpointConfirmBatch(txBatch *types.OutgoingTxBatch, gravityIDStr string) ([]byte, error)

func GetCheckpointOracleSet

func GetCheckpointOracleSet(oracleSet *types.OracleSet, gravityIDStr string) ([]byte, error)

GetCheckpointOracleSet returns the checkpoint

func NewTronSignature

func NewTronSignature(hash []byte, privateKey *ecdsa.PrivateKey) ([]byte, error)

NewTronSignature creates a new signuature over a given byte array

func TronAddressFromSignature

func TronAddressFromSignature(hash []byte, signature []byte) (string, error)

func ValidateTronAddress

func ValidateTronAddress(address string) error

ValidateTronAddress validates the ethereum address strings

func ValidateTronSignature

func ValidateTronSignature(hash []byte, signature []byte, ethAddress string) error

ValidateTronSignature takes a message, an associated signature and public key and returns an error if the signature isn't valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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