Skip to content

Commit 54d55e7

Browse files
committed
Updates README
1 parent 1839c06 commit 54d55e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ This repository contains a sample [measurements.json](./measurements.json) file
102102
Attestation verification requires the expected measurements which you pass through the `--{client, server}-measurements` flag.
103103
The measurements are expected to be a JSON map, and multiple valid measurements can be provided. The verifier will attempt to verify with each of the provided measurements, and if any succeeds, the attestation is assumed valid.
104104

105-
The (single) validated measurement is forwarded (returned in the case of client) as "X-Flashbots-Cert-Extensions-<validator extension OID>".
106-
To only validate and forward the measurement, simply provide an empty expected measurements object.
105+
The (single) validated measurement is json-marshalled and forwarded (returned in the case of client) as "X-Flashbots-Measurement" header, and the type of attestation (validator OID) as "X-Flashbots-Ext-OID" header. For mapping OIDs to issuers, see [internal/attestation/variant/variant.go](./internal/attestation/variant/variant.go).
106+
To only validate and forward the measurement (as opposed to also authorizing the measurement against an expected one), simply provide an empty expected measurements object.
107107

108108
---
109109

proxy/proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type Proxy struct {
2323

2424
const (
2525
AttestationTypeHeader string = "X-Flashbots-Ext-OID"
26-
MeasurementHeader string = "X-Flashbots-Measurements"
26+
MeasurementHeader string = "X-Flashbots-Measurement"
2727
)
2828

2929
func NewProxy(targetURL string, validators []atls.Validator) *Proxy {

0 commit comments

Comments
 (0)