datacom

package
v0.0.3-hotfix1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const APIDATACOM = "datacom"

APIDATACOM is the namespace of the datacom service

Variables

This section is empty.

Functions

This section is empty.

Types

type DBInterface

type DBInterface interface {
	BeginStateTransaction(ctx context.Context) (pgx.Tx, error)
	StoreOffChainData(ctx context.Context, od []types.OffChainData, dbTx pgx.Tx) error
}

DBInterface is the interface needed by the datacom service

type DataComEndpoints

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

DataComEndpoints contains implementations for the "datacom" RPC endpoints

func NewDataComEndpoints

func NewDataComEndpoints(
	db DBInterface, privateKey *ecdsa.PrivateKey, sequencerTracker *sequencer.SequencerTracker,
) *DataComEndpoints

NewDataComEndpoints returns DataComEndpoints

func (*DataComEndpoints) SignSequence

func (d *DataComEndpoints) SignSequence(signedSequence types.SignedSequence) (interface{}, rpc.Error)

SignSequence generates the accumulated input hash aka accInputHash of the sequence and sign it. After storing the data that will be sent hashed to the contract, it returns the signature. This endpoint is only accessible to the sequencer

Jump to

Keyboard shortcuts

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