Documentation
¶
Index ¶
- Constants
- func FromAttestationReportMsg(msg *generated.AttestationReportMsg) *common.AttestationReport
- func FromBatchHeaderMsg(header *generated.BatchHeaderMsg) *common.BatchHeader
- func FromBlockSubmissionResponseMsg(msg *generated.BlockSubmissionResponseMsg) (*common.BlockSubmissionResponse, error)
- func FromCrossChainMsgs(messages []*generated.CrossChainMsg) []MessageBus.StructsCrossChainMessage
- func FromExtBatchMsg(msg *generated.ExtBatchMsg) *common.ExtBatch
- func FromExtRollupMsg(msg *generated.ExtRollupMsg) *common.ExtRollup
- func FromRollupDataMsg(msg *generated.PublicRollupDataMsg) (*common.PublicRollupMetadata, error)
- func FromRollupHeaderMsg(header *generated.RollupHeaderMsg) *common.RollupHeader
- func FromSecretRespMsg(secretResponses []*generated.SecretResponseMsg) []*common.ProducedSecretResponse
- func IsEncryptedMethod(method string) bool
- func ToAttestationReportMsg(report *common.AttestationReport) generated.AttestationReportMsg
- func ToBatchHeaderMsg(header *common.BatchHeader) *generated.BatchHeaderMsg
- func ToBlobMsgs(blobs []*kzg4844.Blob) []*generated.BlobMsg
- func ToBlockSubmissionResponseMsg(response *common.BlockSubmissionResponse) (*generated.BlockSubmissionResponseMsg, error)
- func ToExtBatchMsg(batch *common.ExtBatch) generated.ExtBatchMsg
- func ToExtRollupMsg(rollup *common.ExtRollup) generated.ExtRollupMsg
- func ToRollupDataMsg(rollupData *common.PublicRollupMetadata) generated.PublicRollupDataMsg
- func ToRollupHeaderMsg(header *common.RollupHeader) *generated.RollupHeaderMsg
- func ToSecretRespMsg(responses []*common.ProducedSecretResponse) []*generated.SecretResponseMsg
- type RequestWithVk
Constants ¶
View Source
const ( ERPCCall = "ten_call" ERPCGetBalance = "ten_getBalance" ERPCGetTransactionByHash = "ten_getTransactionByHash" ERPCGetRawTransactionByHash = "ten_getRawTransactionByHash" ERPCGetTransactionCount = "ten_getTransactionCount" ERPCGetTransactionReceipt = "ten_getTransactionReceipt" ERPCSendRawTransaction = "ten_sendRawTransaction" ERPCResend = "ten_resend" ERPCEstimateGas = "ten_estimateGas" ERPCGetLogs = "ten_getLogs" ERPCGetStorageAt = "ten_getStorageAt" ERPCDebugLogs = "debug_eventLogRelevancy" ERPCGetPersonalTransactions = "scan_getPersonalTransactions" )
encryptedMethods for which the RPC requests and responses should be encrypted these are names of virtual RPC methods exposed by a TEN node they all get routed through "ten_encryptedRPC"
View Source
const EncRPC = "ten_encryptedRPC"
EncRPC - the RPC method through which all encypted calls get routed
Variables ¶
This section is empty.
Functions ¶
func FromAttestationReportMsg ¶
func FromAttestationReportMsg(msg *generated.AttestationReportMsg) *common.AttestationReport
func FromBatchHeaderMsg ¶
func FromBatchHeaderMsg(header *generated.BatchHeaderMsg) *common.BatchHeader
func FromBlockSubmissionResponseMsg ¶
func FromBlockSubmissionResponseMsg(msg *generated.BlockSubmissionResponseMsg) (*common.BlockSubmissionResponse, error)
func FromCrossChainMsgs ¶
func FromCrossChainMsgs(messages []*generated.CrossChainMsg) []MessageBus.StructsCrossChainMessage
func FromExtBatchMsg ¶
func FromExtBatchMsg(msg *generated.ExtBatchMsg) *common.ExtBatch
func FromExtRollupMsg ¶
func FromExtRollupMsg(msg *generated.ExtRollupMsg) *common.ExtRollup
func FromRollupDataMsg ¶ added in v0.24.0
func FromRollupDataMsg(msg *generated.PublicRollupDataMsg) (*common.PublicRollupMetadata, error)
func FromRollupHeaderMsg ¶
func FromRollupHeaderMsg(header *generated.RollupHeaderMsg) *common.RollupHeader
func FromSecretRespMsg ¶
func FromSecretRespMsg(secretResponses []*generated.SecretResponseMsg) []*common.ProducedSecretResponse
func IsEncryptedMethod ¶ added in v1.0.0
IsEncryptedMethod indicates whether the RPC method's requests and responses should be encrypted.
func ToAttestationReportMsg ¶
func ToAttestationReportMsg(report *common.AttestationReport) generated.AttestationReportMsg
func ToBatchHeaderMsg ¶
func ToBatchHeaderMsg(header *common.BatchHeader) *generated.BatchHeaderMsg
func ToBlockSubmissionResponseMsg ¶
func ToBlockSubmissionResponseMsg(response *common.BlockSubmissionResponse) (*generated.BlockSubmissionResponseMsg, error)
func ToExtBatchMsg ¶
func ToExtBatchMsg(batch *common.ExtBatch) generated.ExtBatchMsg
func ToExtRollupMsg ¶
func ToExtRollupMsg(rollup *common.ExtRollup) generated.ExtRollupMsg
func ToRollupDataMsg ¶ added in v0.24.0
func ToRollupDataMsg(rollupData *common.PublicRollupMetadata) generated.PublicRollupDataMsg
func ToRollupHeaderMsg ¶
func ToRollupHeaderMsg(header *common.RollupHeader) *generated.RollupHeaderMsg
func ToSecretRespMsg ¶
func ToSecretRespMsg(responses []*common.ProducedSecretResponse) []*generated.SecretResponseMsg
Types ¶
type RequestWithVk ¶ added in v0.22.0
type RequestWithVk struct { VK *viewingkey.RPCSignedViewingKey Method string // can be only one of the encrypted methods above Params []any }
RequestWithVk - wraps the eth parameters with a viewing key
Click to show internal directories.
Click to hide internal directories.