fdc

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: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeRequest

func DecodeRequest(data []byte) (fdc2.IFdc2HubFdc2AttestationRequest, error)

DecodeRequest decodes bytes into an FDC2 attestation request.

func DecodeResponse

func DecodeResponse(data []byte) (fdc2.IFdc2HubFdc2ResponseHeader, error)

DecodeResponse decodes bytes into an FDC2 response header.

func EncodeRequest

EncodeRequest encodes an FDC2 attestation request to bytes.

func EncodeResponseHeader

func EncodeResponseHeader(header fdc2.IFdc2HubFdc2ResponseHeader) (hexutil.Bytes, error)

EncodeResponseHeader encodes an FDC2 response header to bytes.

func HashMessage

func HashMessage(
	req fdc2.IFdc2HubFdc2AttestationRequest,
	responseBody []byte,
	cosigners []common.Address,
	cosignersThreshold uint64,
	timestamp uint64,
) (common.Hash, common.Hash, hexutil.Bytes, hexutil.Bytes, error)

HashMessage creates a hash of the FDC message components.

Types

type ProveResponse

type ProveResponse struct {
	ResponseHeader         hexutil.Bytes
	RequestBody            hexutil.Bytes
	ResponseBody           hexutil.Bytes
	TEESignature           hexutil.Bytes
	CosignerSignatures     []hexutil.Bytes
	DataProviderSignatures hexutil.Bytes
}

ProveResponse represents the response structure for F_FDC2 PROVE opCommand.

Jump to

Keyboard shortcuts

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