worker

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewWorkerServer)

Functions

This section is empty.

Types

type Chain

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

func NewChain

func NewChain(
	ctx context.Context,
	bootstrap *conf.Bootstrap,
	logger *log.Helper,
) (*Chain, error)

func (*Chain) SendAttestationTrx

func (c *Chain) SendAttestationTrx(ctx context.Context, attestationIds [][32]byte, results []bool) (string, error)

func (*Chain) Start

func (c *Chain) Start(ctx context.Context) error

func (*Chain) Stop

func (c *Chain) Stop(ctx context.Context) error

type ECDSAQuoteV3AuthData

type ECDSAQuoteV3AuthData struct {
	ECDSA256BitSignature [64]byte `json:"ecdsa256BitSignature"`
	ECDSAAttestationKey  [64]byte `json:"ecdsaAttestationKey"`
	QEReport             QEReport `json:"QEReport"`
	QEReportSignature    [64]byte `json:"qeReportSignature"`
	QEAuthData           []byte   `json:"qeAuthData"`
	QECert               QECert   `json:"qeCert"`
}

type LogInfo

type LogInfo struct {
	BlockNumber        uint64
	ContractAddress    common.Address
	TxHash             common.Hash
	TxIndex            uint
	TeeAddress         common.Address
	CampaignId         string
	AttestationIdBytes [32]byte
	AttestationIdStr   string
	Attestation        string
}

type QECert

type QECert struct {
	CertType uint16 `json:"certType"`
	Data     []byte `json:"Data"`
}

type QEReport

type QEReport struct {
	CPUSVN     [16]byte `json:"cpusvn"`
	MiscSelect uint32   `json:"miscSelect"`
	Reserved1  uint8    `json:"reserved1"`
	ISVProdID  uint16   `json:"isvProdID"`
	Attributes [16]byte `json:"attributes"`
	MREnclave  [32]byte `json:"mrEnclave"`
	Reserved2  [32]byte `json:"reserved2"`
	MRSigner   [32]byte `json:"mrSigner"`
	Reserved3  [96]byte `json:"reserved3"`
	ISVSVN     uint16   `json:"isvSVN"`
	Reserved4  [60]byte `json:"reserved4"`
	ReportData [64]byte `json:"reportData"`
}

type Server

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

func NewWorkerServer

func NewWorkerServer(bootstrap *conf.Bootstrap, logger *log.Helper) *Server

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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