enclaverpc

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(enclaveRPCAddress string, enclaveRPCTimeout time.Duration, logger gethlog.Logger) common.Enclave

Types

type Client

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

Client implements enclave.Enclave and should be used by the host when communicating with the enclave via RPC.

func (*Client) Attestation

func (*Client) CreateBatch

func (c *Client) CreateBatch(ctx context.Context, skipIfEmpty bool) common.SystemError

func (*Client) CreateRollup

func (c *Client) CreateRollup(ctx context.Context, fromSeqNo uint64) (*common.ExtRollup, []*kzg4844.Blob, common.SystemError)

func (*Client) DebugTraceTransaction

func (c *Client) DebugTraceTransaction(ctx context.Context, hash gethcommon.Hash, config *tracers.TraceConfig) (json.RawMessage, common.SystemError)

func (*Client) EnclaveID added in v0.21.0

func (c *Client) EnclaveID(ctx context.Context) (common.EnclaveID, common.SystemError)

func (*Client) EnclavePublicConfig

func (c *Client) EnclavePublicConfig(ctx context.Context) (*common.EnclavePublicConfig, common.SystemError)

func (*Client) EncryptedRPC added in v1.0.0

func (c *Client) EncryptedRPC(ctx context.Context, encryptedReq common.EncryptedRequest) (*responses.EnclaveResponse, common.SystemError)

func (*Client) ExportCrossChainData added in v0.24.1

func (c *Client) ExportCrossChainData(ctx context.Context, from uint64, to uint64) (*common.ExtCrossChainBundle, common.SystemError)

func (*Client) GenerateSecret

func (*Client) GetBatch

func (*Client) GetBatchBySeqNo

func (c *Client) GetBatchBySeqNo(ctx context.Context, seqNo uint64) (*common.ExtBatch, common.SystemError)

func (*Client) GetCode

func (c *Client) GetCode(ctx context.Context, address gethcommon.Address, blockNrOrHash gethrpc.BlockNumberOrHash) ([]byte, common.SystemError)

func (*Client) GetRollupData added in v0.24.0

func (*Client) GetTotalContractCount

func (c *Client) GetTotalContractCount(ctx context.Context) (*big.Int, common.SystemError)

func (*Client) HealthCheck

func (c *Client) HealthCheck(ctx context.Context) (bool, common.SystemError)

func (*Client) InitEnclave

func (*Client) MakeActive added in v1.0.0

func (c *Client) MakeActive() common.SystemError

func (*Client) RPCEncryptionKey added in v1.0.0

func (c *Client) RPCEncryptionKey(ctx context.Context) ([]byte, common.SystemError)

func (*Client) Status

func (c *Client) Status(ctx context.Context) (common.Status, common.SystemError)

func (*Client) Stop

func (c *Client) Stop() common.SystemError

func (*Client) StopClient

func (c *Client) StopClient() common.SystemError

func (*Client) StreamL2Updates

func (c *Client) StreamL2Updates() (chan common.StreamL2UpdatesResponse, func())

func (*Client) SubmitBatch

func (c *Client) SubmitBatch(ctx context.Context, batch *common.ExtBatch) common.SystemError

func (*Client) SubmitL1Block

func (*Client) Subscribe

func (c *Client) Subscribe(ctx context.Context, id gethrpc.ID, encryptedParams common.EncryptedParamsLogSubscription) common.SystemError

func (*Client) Unsubscribe

func (c *Client) Unsubscribe(id gethrpc.ID) common.SystemError

Jump to

Keyboard shortcuts

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