Documentation
¶
Index ¶
- Constants
- func DefaultGenesisState() *crosschaintypes.GenesisState
- func GetCheckpointBridgeCall(bridgeCall *types.OutgoingBridgeCall, gravityIDStr string) ([]byte, error)
- func GetCheckpointConfirmBatch(txBatch *types.OutgoingTxBatch, gravityIDStr string) ([]byte, error)
- func GetCheckpointOracleSet(oracleSet *types.OracleSet, gravityIDStr string) ([]byte, error)
- func NewTronSignature(hash []byte, privateKey *ecdsa.PrivateKey) ([]byte, error)
- func TronAddressFromSignature(hash []byte, signature []byte) (string, error)
- func ValidateTronAddress(address string) error
- func ValidateTronSignature(hash []byte, signature []byte, ethAddress string) error
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 ¶
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 ValidateTronAddress ¶
ValidateTronAddress validates the ethereum address strings
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.