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
Click to show internal directories.
Click to hide internal directories.