datacom

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 9 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 Endpoints added in v0.0.7

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

Endpoints contains implementations for the "datacom" RPC endpoints

func NewEndpoints added in v0.0.7

func NewEndpoints(db db.DB, pk *ecdsa.PrivateKey, st *sequencer.Tracker) *Endpoints

NewEndpoints returns Endpoints

func (*Endpoints) SignSequence added in v0.0.7

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

SignSequence generates the concatenation of hashes of the batch data 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

func (*Endpoints) SignSequenceBanana added in v0.0.8

func (d *Endpoints) SignSequenceBanana(signedSequence types.SignedSequenceBanana) (interface{}, rpc.Error)

SignSequenceBanana 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