regutils

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateTeeAttestationRequest

func ValidateTeeAttestationRequest(attReq []byte, expectedTeeID common.Address) ([32]byte, error)

ValidateTeeAttestationRequest decodes the attestation payload and verifies it matches the expected TEE identity, returning the embedded challenge when successful.

Types

type Processor

type Processor struct {
	node.InformerAndSigner
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(infoAndSig node.InformerAndSigner, pStorage *policy.Storage) Processor

NewProcessor returns a registration utility processor bound to the provided node informerAndSigner and policy storage.

func (*Processor) TEEAttestation

func (p *Processor) TEEAttestation(
	_ context.Context,
	submissionTag types.SubmissionTag,
	dataFixed *instruction.DataFixed,
	_ []hexutil.Bytes,
	_ []common.Address,
	_ *cpolicy.SigningPolicy,
) ([]byte, []byte, error)

TEEAttestation handles the registration attestation instruction, producing a TEE info response when the threshold is reached and acknowledging other submission stages.

Jump to

Keyboard shortcuts

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