messages

package
v0.0.1-alpha-10 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: Apache-2.0 Imports: 17 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(
	ethSigner service.Signer,
	contractsService service.Contracts,
	transferRepository repository.Transfer,
	messageRepository repository.Message,
	hederaClient client.HederaNode,
	mirrorClient client.MirrorNode,
	ethClient client.Ethereum,
	topicID string,
) *Service

func (*Service) ProcessSignature

func (ss *Service) ProcessSignature(tsm message.Message) error

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

func (*Service) SanityCheckSignature

func (ss *Service) SanityCheckSignature(topicMessage message.Message) (bool, error)

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

Jump to

Keyboard shortcuts

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