messages

package
v1.5.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(
	ethSigners map[uint64]service.Signer,
	contractServices map[uint64]service.Contracts,
	transferRepository repository.Transfer,
	messageRepository repository.Message,
	mirrorClient client.MirrorNode,
	ethClients map[uint64]client.EVM,
	topicID string,
	assetsService service.Assets,
) *Service

func (*Service) ProcessSignature

func (ss *Service) ProcessSignature(transferID, signature string, targetChainId uint64, timestamp int64, authMsg []byte) error

ProcessSignature processes the signature message, verifying and updating all necessary fields in the DB

func (*Service) SanityCheckFungibleSignature added in v1.4.0

func (ss *Service) SanityCheckFungibleSignature(topicMessage *proto_models.TopicEthSignatureMessage) (bool, error)

SanityCheckFungibleSignature performs validation on the topic message metadata. Validates it against the Transaction Record metadata from DB

func (*Service) SanityCheckNftSignature added in v1.4.0

func (ss *Service) SanityCheckNftSignature(topicMessage *proto_models.TopicEthNftSignatureMessage) (bool, error)

SanityCheckNftSignature performs validation on the topic message metadata. Validates it against the Transaction Record metadata from DB

func (Service) SignFungibleMessage added in v1.4.0

func (ss Service) SignFungibleMessage(tm payload.Transfer) ([]byte, error)

func (Service) SignNftMessage added in v1.4.0

func (ss Service) SignNftMessage(tm payload.Transfer) ([]byte, error)

Jump to

Keyboard shortcuts

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