| Internet-Draft | Energy Attestation Tokens | October 2026 |
| Chursin | Expires 3 May 2027 | [Page] |
This document specifies an attestation token format and verification protocol for hardware-rooted measurements of electricity generation. The protocol enables a tamper-evident chain of custody from the secure element at a metering device to a publicly verifiable settlement layer, using ECDSA P-256 signatures generated inside a certified secure element and carried in a COSE_Sign1 structure. It defines: (a) the CBOR-encoded attestation token, aligned with the Entity Attestation Token format of RFC 9711 and the Remote ATtestation procedureS (RATS) architecture of RFC 9334; (b) a Merkle-aggregation and on-chain commitment scheme for scalable verification; and (c) a registry mechanism for endorsing device public keys, which may be expressed using Concise Reference Integrity Manifests (CoRIM). Verifier output is expressed as EAT Attestation Results (EAR), and the measurement intervals implied by consecutive tokens support time-granular, including hourly, accounting. The token is intended for use by relying parties, such as energy producers, consumers, regulators, and standards bodies, that require cryptographic provenance for clean-energy claims.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 3 May 2027.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
Clean-energy claims today rest on accounting infrastructure: Renewable Energy Certificates (RECs) in the United States, Guarantees of Origin (GoOs) in the European Union, and International RECs (I-RECs) elsewhere. These instruments are issued annually, traded through brokered email confirmations, and reconciled against grid-level dispatch records that the issuance system does not cryptographically verify. Published analyses of certificate markets have reported material discrepancies between dispatched generation and registered certificate issuance.¶
Two regulatory and industrial trends, both effective in 2026, make this verification gap acute:¶
This document specifies an open standard intended to close that gap. The protocol places a hardware secure element adjacent to a kilowatt-hour meter; the secure element signs the tuple (energy delta, timestamp, device identifier) with a private key that is generated on-chip and is designed to be non-extractable; the resulting attestation tokens are aggregated into Merkle trees and committed to a public settlement layer; any relying party holding the device's endorsed public key can independently verify any single attestation.¶
The protocol is deliberately narrow in scope. It defines verification, not trading. It does not specify payment rails, market-clearing mechanisms, or currency-like token economics. The unit of accounting in the protocol (NOET) represents one verified kilowatt-hour and is a verifiable attestation unit used internally by the protocol. It is not a payment instrument, a currency, or a store-of-value asset, and this document specifies no transfer, pricing, or settlement-of-value semantics for it.¶
Where possible, this document reuses the conceptual messages and encodings of the RATS Working Group rather than defining its own: Evidence is carried in COSE as for EAT [RFC9711], Verifier output is expressed as EAT Attestation Results [I-D.ietf-rats-ear] (Section 8), and device-key endorsements and reference values can be conveyed as CoRIM [I-D.ietf-rats-corim] (Section 7.2).¶
This document is intended for review by the Remote ATtestation procedureS (RATS) Working Group and other interested IETF participants. Comments are welcome on the RATS mailing list (rats@ietf.org) or at the address given in the Author's Address section.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
This document follows the role decomposition of the RATS architecture [RFC9334]. Each role has a specific scope of responsibility and security boundary.¶
The Attester is composed of two physical components: a kilowatt-hour meter (the measurer) and a secure element (the signer). The Attester:¶
The Verifier is software, executed by any interested party, that:¶
The Relying Party consumes attestations and acts on them. A Relying Party:¶
An Endorser issues an endorsement binding a device public key to identity metadata such as manufacturer, model, and certification batch. Endorsers:¶
Endorsements and Reference Values MAY be conveyed using CoRIM as described in Section 7.2, or through the registry options of Section 7.1.¶
This document does not mandate a single Endorser hierarchy. A federation of Endorsers is expected to emerge in practice; relying parties choose which Endorsers to trust.¶
The Validator is an on-chain role responsible for confirming Merkle root submissions before they are finalized for claim. Validators extend the RATS architecture; they exist because the on-chain commitment layer requires a defined set of accountable parties whose signed actions are the basis of finalization. A Validator:¶
Validator accountability is enforced through two mechanisms whose details appear in Section 10.4:¶
The Validator role is distinct from the Attester (the on-device measurer and signer) and from the Verifier (the relying-party-side software). The Attester proves a measurement was taken on certified hardware; the Validator proves a quorum of independent parties agree the measurement appeared in a legitimate batch; the Verifier checks both layers when consuming an attestation.¶
An attestation token is a CBOR [RFC8949] object consisting of a claims map (the evidence payload, Section 4.1) enveloped in a COSE_Sign1 structure [RFC9052] (Section 5.1). Both the claims map and the COSE_Sign1 structure MUST be serialized using the deterministic encoding requirements of [RFC8949], Section 4.2.1, so that signature inputs and leaf hashes are unambiguous.¶
Throughout this document, "attestation token" refers to the complete tagged COSE_Sign1 structure, and "evidence payload" refers to the claims map that it carries.¶
The evidence payload is a CBOR map using the integer labels listed in Table 1. These labels are local to this profile and are scoped to the payload map only; they are independent of the COSE header labels used in the enveloping structure (Section 4.2).¶
| Label | Claim | Type | Required | Description |
|---|---|---|---|---|
| 1 | iss | bstr | MUST | Device identifier: the 9-byte serial number of the secure element. |
| 2 | iat | uint | MUST | Issued-at timestamp, in seconds since the UNIX epoch, UTC. |
| 3 | wh | uint | MUST | Energy delta in watt-hours since the previous attestation from the same device. |
| 4 | seq | uint | MUST | Per-device monotonic sequence number, starting at 1 and incremented by one for each emitted attestation. The pair ("iss", "seq") identifies a measurement (Section 9.5). |
| 5 | prev | bstr / null | MUST | SHA-256 digest (32 bytes) of the evidence payload of the previous attestation token from the same device, computed as specified below the table. It is CBOR null for the first attestation, that is when seq equals 1. |
| 6 | fwv | tstr | SHOULD | Firmware version string. |
| 7 | mdl | tstr | SHOULD | Device model identifier. |
| 8 | cfg | bstr | MAY | SHA-256 digest (32 bytes) of the device configuration relevant to measurement integrity. |
The "prev" value of token n is the SHA-256 digest of the deterministically encoded evidence payload of token n-1, that is, of the content of the "payload" byte string of its COSE_Sign1 structure (Section 5.1). Hashing the payload rather than the complete token makes the hash chain independent of the signature value and of the unprotected header. The "cfg" value is a SHA-256 digest over a deployment-defined serialization of the configuration it covers; that serialization is identified through the Reference Values against which "cfg" is compared (Section 7.2). Both "fwv" and "cfg" are reported by the host and are subject to the limitation described in Section 10.1.¶
The evidence payload carries no signature claim and no algorithm claim. The signature, the signature algorithm, and the key identifier are carried by the enveloping COSE_Sign1 structure as described in Section 4.2 and Section 5.1.¶
Algorithm agility in this protocol is provided exclusively by the COSE protected header of the enveloping COSE_Sign1 structure. Specifically:¶
An implementation MUST NOT convey the signature algorithm as a claim inside the evidence payload. A Verifier that encounters an algorithm indication inside the evidence payload MUST reject the token, because such an indication would create a second and possibly disagreeing source of truth for algorithm selection.¶
The unprotected header of an attestation token MUST be an empty map. Attesters and aggregators MUST NOT add unprotected header parameters, and a Verifier MUST NOT use the content of the unprotected header when identifying a measurement (Section 9.5). Implementations MAY include the "typ" header parameter [RFC9596] in the protected header; a value for it is left for a future revision.¶
The following CDDL [RFC8610] defines the attestation token. It is normative for the structures it covers.¶
; A Noethrion attestation token is a tagged COSE_Sign1 structure.
Noethrion-Attestation = #6.18(Noethrion-Sign1)
Noethrion-Sign1 = [
protected : bstr .cbor Noethrion-Protected-Header,
unprotected : Noethrion-Unprotected-Header,
payload : bstr .cbor Noethrion-Claims,
signature : bstr
]
Noethrion-Protected-Header = {
1 => -9, ; alg: ESP256 (see Section 5 for -7)
? 4 => bstr, ; kid; endorsed device key identifier
* cose-label => any
}
Noethrion-Unprotected-Header = {} ; MUST be empty
Noethrion-Claims = {
1 => bstr .size 9, ; iss: secure element serial number
2 => uint, ; iat: issued-at, UTC seconds
3 => uint, ; wh: energy delta, watt-hours
4 => uint .ge 1, ; seq: per-device monotonic counter
5 => sha256-digest / null,
; prev: SHA-256 of previous payload;
; null if and only if seq == 1
? 6 => tstr, ; fwv: firmware version (host-reported)
? 7 => tstr, ; mdl: device model identifier
? 8 => sha256-digest, ; cfg: config digest (host-reported)
}
sha256-digest = bstr .size 32
cose-label = int / tstr
¶
The Merkle aggregation layer of Section 6 and the claim-record encoding of Section 6.3.1 are not yet expressed in CDDL. [TBD: full CDDL covering the batch, inclusion-proof, and claim-record structures in a future revision]¶
The claim set above is intentionally compatible with the Entity Attestation Token (EAT) format defined in [RFC9711]. EAT is itself carried in COSE, so the envelope chosen in Section 5.1 is the same one an EAT profile would use. The claim labels of Table 1 are, however, local to this profile, and the payload is not itself an EAT claims set.¶
Table 2 lists, for information, the EAT or CWT [RFC8392] claims that correspond most closely to each claim of this profile. It corrects the statement in -00 that "iss", "iat", and "seq" can be mapped directly to CWT-registered claims: only "iat" has a direct equivalent. The table does not change the wire format defined in this document; a formal EAT profile for energy attestation, including a profile identifier for the "eat_profile" claim (key 265), is left for a future revision.¶
| This profile | EAT / CWT claim | Notes |
|---|---|---|
| iss (1) | ueid (256), conditionally | The CWT "iss" claim (key 1) is a text issuer name and is not equivalent. A secure element serial number can be carried in "ueid" only if encoded as one of the UEID types of [RFC9711], Section 4.2.1; otherwise a profile-specific claim is needed. |
| iat (2) | iat (6) | Direct equivalent; integer seconds, as required by [RFC9711]. |
| wh (3) | none | Profile-specific. |
| seq (4) | none | Profile-specific. Not equivalent to "bootcount" (267), which counts boots, not tokens. |
| prev (5) | none | Profile-specific. |
| fwv (6) | swversion (271) | Requires conversion to the "swversion" structure. |
| mdl (7) | hwmodel (259) | "hwmodel" is a byte string of 1 to 32 bytes; requires conversion from text. |
| cfg (8) | none | Profile-specific; may alternatively be conveyed as a "measurements" (273) entry. |
This document specifies a single signature algorithm for this version of the protocol: ECDSA over the NIST P-256 curve (secp256r1) with SHA-256, identified by the fully-specified COSE algorithm ESP256, value -9, defined in [RFC9864], Section 2.1. Attesters MUST use the value -9.¶
Revision -00 of this document specified the polymorphic identifier ES256 (-7) [RFC9053], which [RFC9864] deprecates in favour of ESP256. With a P-256 key, ES256 and ESP256 produce signatures of identical form; only the identifier differs. For compatibility with tokens produced under -00, a Verifier MAY accept the value -7 when the endorsed device key is a P-256 key and the token is contained in a batch committed before a deployment-defined cutoff. Such tokens are otherwise processed as specified in this document. A future revision is expected to remove this allowance.¶
Attestation tokens MUST be signed as a COSE_Sign1 structure as defined in [RFC9052], Section 4.2, tagged with CBOR tag 18. COSE_Sign1 is chosen over a bare signature field for three reasons:¶
The signature is computed over the Sig_structure defined in [RFC9052], Section 4.4, with:¶
Implementations MUST NOT emit an attestation token as a bare claims map with an adjacent signature field. Pre-standard implementations of this protocol, including the genesis deployment of the reference implementation, used such a bare encoding. That encoding is historical, is not conformant with this document, and MUST NOT be used for new deployments. Verifiers MAY retain support for it solely in order to re-verify pre-standard historical records, and then only for records already contained in batches finalized before a fixed, deployment-defined cutoff. Because the secure element signs whatever digest the host presents, a bare record that is not so committed provides no assurance that it was produced before the cutoff.¶
P-256 is selected because:¶
It is acknowledged that P-256 is not post-quantum secure. A migration path to a post-quantum signature scheme, anticipated to be ML-DSA as standardized in [FIPS204], is part of the protocol's long-term plan. No new format machinery is required for that migration: the "alg" and "kid" parameters of the COSE protected header (Section 4.2) are the algorithm and key rotation mechanism, and a future revision need only permit an additional "alg" value and specify the transition policy. Historical attestations remain verifiable because each token names, under integrity protection, the algorithm with which it was signed.¶
A future revision of this document SHALL specify the migration procedure, including dual-signing transitions and the policy under which historical P-256 attestations remain verifiable.¶
Attestation tokens are aggregated off-chain into Merkle trees. Each tree contains up to 2^16 (65,536) leaves, where each leaf is the SHA-256 hash of the complete deterministically encoded, tagged COSE_Sign1 attestation token of Section 4.¶
Interior nodes are computed with a commutative sorted-pair construction:¶
parent = keccak256(min(a, b) || max(a, b))¶
where a and b are the two 32-byte child hashes, min and max denote lexicographic byte-wise ordering, and keccak256 is the original Keccak-256 function [KECCAK] with its original padding, which is not the SHA3-256 function standardized in FIPS 202. Sorting each pair before hashing makes the construction order-independent: an inclusion proof carries only the sibling hashes, with no left/right position flags. This is the construction implemented by the widely used Merkle proof library employed by the on-chain reference contract and by the reference off-chain Verifier tooling. Off-chain builders MUST use this pair hash for any tree whose root is committed on-chain.¶
Note on leaf domain separation: this construction deliberately omits the per-level domain-separation prefixes (0x00 for leaves, 0x01 for interior nodes) defined by [RFC9162]. The second-preimage class those prefixes guard against, namely reinterpreting an interior node as a leaf or vice versa, is structurally closed here by preimage length: an interior-node preimage is exactly 64 bytes (two concatenated 32-byte hashes), whereas leaf preimages are never 64 bytes. The on-chain claim-record leaf (Section 6.3.1) hashes a 160-byte encoded payload, and the attestation-evidence leaf hashes a tagged COSE_Sign1 token, which is substantially longer than 64 bytes for any token carrying the required claims of Section 4.1 together with a 64-byte ECDSA P-256 signature. The attestation-evidence leaf additionally uses a different hash function, SHA-256, from the keccak256 node hash. [RFC9162] informed the design of this layer and is listed as an informative reference.¶
A batch is identified by a monotonically increasing epoch number. The aggregator MAY be operated by the device owner, by a service provider, or by the reference implementation; the choice does not affect verifiability.¶
For each batch, the Merkle root is committed to a public EVM-compatible Layer 2 settlement network through a reference smart contract. Note that the reference contract is named "Attester" for historical reasons unrelated to the RATS Attester role of Section 3.1; the two are distinct. The on-chain commitment record SHALL include, at minimum:¶
The two snapshot fields close the symmetric retroactive-shift class of administrative abuses.¶
A challenge window, configurable and defaulting to one hour, follows submission. In the current reference contract the fraud-proof path during this window is off-chain: any party MAY report evidence of a fraudulent batch to the contract operators and validators, who can respond through the on-chain pause mechanism, blocking finalization, and administratively triggered slashing (Section 10.4). A dedicated on-chain challenge entry point, allowing any party to publish a fraud proof directly on-chain, is deferred to a future protocol extension, together with fraud-proof-verified slashing. After the challenge window expires without the batch being rejected, the batch is finalized; finalization is irreversible.¶
The block timestamp recorded at submission is the Anchor Time of every token in the batch. It is set by the settlement layer and not by the Attester or its host, and it is the reference time for the revocation and timestamp-plausibility checks of Section 7.3, Section 7.4, and Section 9.5. A Verifier that appraises a token not yet contained in a committed batch MUST use its own time of receipt of the token in place of the Anchor Time.¶
A Verifier resolves a single attestation as follows:¶
All eight steps MUST succeed for the attestation to be accepted.¶
The Merkle tree described in Section 6.1, whose leaves are SHA-256 hashes of deterministically encoded, tagged COSE_Sign1 attestation tokens, is the attestation-evidence layer. It proves that a particular signed measurement was included in a committed batch.¶
The on-chain claim function in the reference contract enforces a separate claim-record layer: each on-chain leaf is the keccak256 hash of the encoded tuple (chain identifier, contract address, beneficiary, amount, epoch), identifying a specific redemption, that is, which address receives how many NOET against which epoch, bound to a specific contract instance on a specific chain. The first two fields act as a domain separator, so that a Merkle tree built for one contract instance cannot be replayed against a fork or a sibling deployment. The two layers are related but not identical: each claim record aggregates one or more attestation tokens whose summed energy underwrites the redemption amount.¶
A future revision will document the aggregation function from attestation tokens to claim records explicitly. For this version, off-chain builders MUST produce claim-record trees whose leaves match the contract's encoding exactly, including the chain-identifier and contract-address domain separator. The attestation-evidence tree is verified separately by the off-chain Verifier path above and is not yet referenced on-chain.¶
The commitment layer of this section registers batches of signed statements in a verifiable data structure and lets a Verifier check inclusion. This is the function standardized by the Supply Chain Integrity, Transparency, and Trust (SCITT) architecture [RFC9943], with inclusion proofs conveyed as COSE Receipts [RFC9942]. A SCITT Transparency Service is a possible IETF-aligned transport and transparency layer for attestation tokens, either alongside or instead of the settlement layer described here. This version does not specify such use; a future revision is expected to evaluate it. The token format of Section 4 does not depend on the commitment layer.¶
Endorsed device public keys are recorded in a registry. The registry MAY be:¶
The choice is operational and does not affect the verification semantics: a Verifier MUST be able to obtain a device's endorsed public key, traceable to an Endorser whose own key is verifiable. The content of a registry entry MAY be a CoRIM as described in Section 7.2; in the hybrid case, an on-chain anchor MAY record the digest of a signed CoRIM distributed off-chain.¶
To allow general-purpose RATS Verifiers to consume them, Endorsers SHOULD be able to express device-key endorsements and Reference Values as a signed Concise Reference Integrity Manifest (CoRIM) [I-D.ietf-rats-corim]. The registry forms of Section 7.1 remain permitted; this section describes how their content maps onto CoRIM, and does not introduce new information. Terminology for Endorsements follows [I-D.ietf-rats-endorsements].¶
A CoRIM is signed by the Endorser. The requirement of Section 3.4 that the Endorser's own key be verifiable applies to the CoRIM signing key. The revocation semantics of Section 7.3 and Section 7.4 apply regardless of the encoding used for the endorsement; this document does not depend on any CoRIM-specific revocation mechanism.¶
An Endorser MAY revoke an endorsement, for example on discovery of a compromised provisioning batch. Revocations SHALL be timestamped with an effective time, which MAY be earlier than the time of issuance when the Endorser knows when a compromise began. A Verifier MUST evaluate revocation against the Anchor Time of the batch containing the attestation (Section 6.2), and not against the attestation's "iat", because "iat" is set by the Attester's host and can be back-dated by an adversary that controls the host or holds an extracted key. An attestation whose Anchor Time is at or after the effective time of a revocation of its Endorser MUST be rejected.¶
A device's endorsement MAY be revoked individually, for example on suspicion of physical tampering reported through the protocol's challenge mechanism, or on detection of equivocation (Section 9.5). Attestations from a revoked device whose Anchor Time (Section 6.2) is at or after the effective time of the revocation MUST be rejected, whatever their "iat" value.¶
A Verifier that conveys the result of its appraisal to a Relying Party SHOULD encode it as an EAT Attestation Result (EAR) [I-D.ietf-rats-ear], protected as specified there. A Verifier used as a library within the Relying Party MAY use a local representation, but that representation SHOULD carry the same information as the EAR described in this section. This section defines how the outcome of the verification path of Section 6.3 is expressed in EAR; it does not change that verification path.¶
The EAR contains one EAR-appraisal entry in its "submods" claim for each appraised attestation token, because the "ear_attester_claims" of an EAR-appraisal carry the claims of a single appraisal [I-D.ietf-rats-ear]. The label of that entry SHOULD be the lowercase hexadecimal encoding of the token's "iss" claim, followed by a hyphen and the decimal value of its "seq" claim, so that results for the same measurement (Section 9.5) are labelled consistently across Verifiers. As required by [I-D.ietf-rats-ear], the top-level "ear_status" of an EAR reporting on several tokens is no higher than the worst "ear_status" among its entries.¶
The "ear_status" of an appraisal entry is a trustworthiness tier of [I-D.ietf-rats-ar4si]. As required by [I-D.ietf-rats-ear], it MUST NOT be a tier of higher trust than the tier of the worst claim in the trustworthiness vector of that entry. Within that limit, it is assigned as follows:¶
The Verifier SHOULD include the trustworthiness vector of [I-D.ietf-rats-ar4si], populated as follows. Values are those defined in that document. Claims not listed are left unasserted; a value of 0 (no assertion) is equivalent to an unasserted claim.¶
The value 99 (cryptographic validation of the Evidence has failed) applies to any claim affected by a failed signature or inclusion-proof check.¶
An EAR describes an appraisal; it does not by itself convey the quantity of energy appraised. To let a Relying Party act on the result without re-parsing the token, the Verifier SHOULD include in "ear_attester_claims" the "iss", "iat", "seq", and "wh" claims of the appraised token, and in "ear_verifier_claims" the epoch, the Anchor Time, the leaf hash of the token, and the Measurement Interval derived as described in Section 9. The Verifier MAY include the complete Attestation Token in "ear_raw_evidence", wrapped as a Conceptual Message Wrapper [RFC9999]; the privacy considerations of Section 11 apply to that choice.¶
An "affirming" result states that the checks of this document succeeded. It does not extend the assurance of the protocol beyond the limits described in Section 10.2; a Relying Party SHOULD consult the "sourced-data" claim before relying on a result for regulatory or financial settlement.¶
Some uses of attested generation compare generation with consumption over short time intervals, typically one hour, rather than over a year. This section describes how the tokens defined in this document support such comparisons. It introduces no new claims.¶
Each token reports in "wh" the energy measured since the previous token from the same device. For a token with "seq" equal to n greater than 1, the Measurement Interval is the half-open interval from the "iat" of token n-1, exclusive, to the "iat" of token n, inclusive. A Verifier MUST derive a Measurement Interval only from a verified contiguous pair: token n-1 has passed the verification path of Section 6.3, the "prev" claim of token n matches the hash of the evidence payload of token n-1 (Section 4.1), and the "iat" of token n is strictly greater than the "iat" of token n-1. Attesters MUST emit strictly increasing "iat" values. A pair that satisfies the "prev" check but not the "iat" check is non-conformant: the Verifier MUST NOT derive an interval from it and MUST appraise token n as contraindicated. The "wh" of the first token ("seq" equal to 1) has no defined interval and MUST NOT be attributed to any interval.¶
A gap in the sequence, or a "prev" value that does not match, means that the energy for the affected period is not attested. In line with the fail-closed rule of Section 10.2, a Verifier or Relying Party MUST NOT fill such a gap by interpolation or by an unattested reading.¶
An Attester intended for hourly accounting SHOULD emit a token at each hour boundary in UTC, in addition to any finer reporting cadence, so that no Measurement Interval spans a boundary. For this purpose, hour h is the half-open interval from h*3600 seconds, exclusive, to (h+1)*3600 seconds, inclusive, in the time scale of the "iat" claim, matching the orientation of Measurement Intervals; a token emitted exactly at a boundary closes the hour that ends there. A Measurement Interval from t1, exclusive, to t2, inclusive, lies within hour h if h*3600 is less than or equal to t1 and t2 is less than or equal to (h+1)*3600. The hourly total of attested generation for a device is then the sum of "wh" over the tokens whose Measurement Interval lies within that hour.¶
When a Measurement Interval spans one or more hour boundaries, this document does not define how its energy is apportioned among the hours. A Relying Party that apportions such an interval does so under its own policy and SHOULD record the method used; a Verifier MUST NOT apportion silently.¶
Hourly matching compares, for each hour, attested generation with consumption attributed to a consumer. This document specifies only the generation side. The source of consumption data, the rules that decide which generation may be matched to which consumption (for example by grid region), and the allocation of a device's generation among several consumers are matters for the Relying Party or for the applicable certificate scheme, and are out of scope.¶
The same attested generation MUST NOT be counted toward more than one claim. Preventing such reuse is the responsibility of the claim layer (Section 6.3.1) and of any external scheme that consumes attestations; such systems MUST detect reuse using the measurement identifier of Section 9.5, and MUST NOT use the leaf hash for that purpose.¶
Attribution of energy to an hour depends on the "iat" claim and therefore on the integrity of the Attester's time source (Section 12). Deployments that need freshness bounds independent of the Attester's clock MAY use Epoch Markers [I-D.ietf-rats-epoch-markers]; such use is not specified in this version and would require an Evidence claim carrying the epoch identifier.¶
Timestamp rounding for privacy (Section 11.2) interacts with hourly accounting: a rounding granularity coarser than one hour prevents hourly attribution. Where rounding is applied to tokens used for hourly accounting, the granularity SHOULD divide one hour evenly, so that rounded boundary tokens remain on the hour boundary. Rounding MUST preserve strictly increasing "iat" values: an Attester that rounds "iat" emits at most one token per rounding bucket, merging the energy of the bucket into that token.¶
A measurement is identified by the pair ("iss", "seq") of the token that reports it. The leaf hash of Section 6.1 is not a stable identifier for this purpose: ECDSA signatures are randomized and malleable, so the same evidence payload can appear in several valid tokens with different leaf hashes, and the unprotected header is not covered by the signature. Accordingly:¶
Equivocation can be detected only by a party that observes both tokens. Detection is therefore strongest at the commitment layer, where all batches are visible, and a Relying Party that relies on a single Verifier depends on that Verifier's view.¶
The following adversaries are explicitly considered.¶
The host microcontroller adjacent to the secure element may be compromised. Because the signing key is generated on-chip and never leaves the secure element, a compromised host can lie about what to sign but cannot forge signatures under the device's public key.¶
The "fwv" and "cfg" claims do not mitigate this threat. They are written by the same host that is assumed to be compromised, and the secure element signs whatever digest it receives without measuring the host: it is not a root of trust for measurement. A compromised host can therefore report the expected firmware version and configuration digest. Unless those values are measured by the secure element or by another root of trust, comparing them with Reference Values detects misconfiguration of an honest host, not a tampered one (see also Section 8.2). Deployments SHOULD use host secure boot. Layered attestation of the host, in which each boot stage is measured before it runs, is left for a future revision.¶
The Attester is composed of a measurer and a signer (Section 3.1). Every cryptographic guarantee in this document applies to the signer: a valid attestation proves that a particular secure element signed a particular set of numbers. It does not, on its own, prove that those numbers came from the meter the Endorser expects, nor that they correspond to physical energy flow. The measurer-to-signer interface is consequently the weakest link in the chain of custody, and it is where the adversaries below operate.¶
Meter substitution. An adversary with physical access may replace the meter, or interpose on the measurer-to-signer interface, and present fabricated readings to the secure element. The secure element signs them faithfully and verification succeeds at every later stage: the signature is valid, the endorsement chain is intact, the hash chain is continuous, and the on-chain commitment is well formed. Where the measurer-to-signer interface is unauthenticated, as it is on a bare pulse output or an unauthenticated serial connection, no mechanism defined in this document detects this attack.¶
Substitution after verification. A measurer that is verified only once, at commissioning or at Attester power-on, provides no continuing guarantee: an adversary may satisfy the check with a genuine meter and substitute afterwards. Implementations MUST NOT treat a commissioning-time verification of the measurer as evidence about readings produced later.¶
Physical tampering of a genuine meter. The meter or its sealing may be tampered with in order to distort readings at the point of measurement. This protocol does not detect such tampering; the existing physical-seal and audit regime of revenue-grade metering, which predates this protocol, remains necessary. That regime is complementary to the mitigations below, not a substitute for them, because a seal constrains the meter itself and says nothing about what reaches the signer.¶
Secure-element substitution. This case is detected, because the device serial number changes and the new public key has no endorsement chain.¶
The following mitigations apply to the measurer-to-signer interface.¶
Residual risk. Deployments whose measurer-to-signer interface is unauthenticated retain the full meter-substitution risk described above. For those deployments the assurance offered by this protocol degrades from "this quantity of energy was generated" to "this secure element reported this quantity", and the binding to physical generation rests entirely on out-of-band procedures. Deployments supporting regulatory or financial settlement SHOULD use an authenticated measurement interface for this reason. So that a Relying Party can apply policy to the class of measurer-to-signer protection rather than assuming it, that class is asserted by the Endorser (Section 7.2) and is reflected in the "sourced-data" claim of the Attestation Result (Section 8.2), which is affirming only when the measurer has itself been appraised. A claim by which the Attester itself reports that class is left for a future revision.¶
Extraction of the signing key from a Common Criteria EAL5+ secure element is currently considered infeasible against the design assumptions of state-of-the-art parts. If such an extraction becomes feasible, the affected device family's endorsements SHALL be revoked. Back-dating with an extracted key is limited because revocation and "iat" plausibility are evaluated against the Anchor Time of the batch, which the key holder does not control (Section 7.4, Section 9.5), and because historical attestations are already anchored on-chain.¶
A validator could withhold attestations or propose a batch with a Merkle root that does not correspond to the claimed leaves. Three mechanisms address this in combination:¶
A coalition of threshold-many validators colluding within the challenge window can still finalize a fraudulent batch. This is the residual risk; it shrinks but does not disappear with the threshold mechanism. Production deployments SHOULD treat the challenge-window fraud-proof path as load-bearing.¶
Replay of an old attestation as a new one gains an adversary nothing, because a measurement is identified by ("iss", "seq") and is counted at most once (Section 9.5). A token that reuses an existing ("iss", "seq") with a different payload is equivocation and is handled as specified in Section 9.5; the "prev" hash chain links each token to its predecessor (Section 9.1). A Verifier MUST NOT reject a token solely because its "seq" is lower than a value it has observed before, since historical and out-of-order verification of single tokens is a supported use.¶
Side-channel attacks against the secure element, including power analysis, electromagnetic analysis, and fault injection, are mitigated by the Common Criteria certification regime governing the part. Operators SHOULD follow vendor guidance on physical deployment in order to reduce exposure.¶
The protocol produces a public, durable record of per-device energy generation. This has direct privacy implications, particularly for small-scale producers such as residential rooftop solar installations.¶
A continuous record of per-device generation timestamps can be correlated with consumption patterns in order to infer the occupancy and behavior of a household. Aggregation and timestamp rounding mitigate but do not eliminate this risk.¶
Participation in the protocol is, by design, voluntary. Operators are not required to publish attestations; the protocol's value derives from voluntary adoption by parties that wish to be cryptographically credible.¶
In addition to the threat model in Section 10, implementers are advised of the following.¶
This document requests that IANA register the following media type in the "Media Types" registry.¶
Future revisions of this document may request additional CBOR tag allocations and CoAP profile registrations.¶
A reference implementation of the Attester (firmware) and of the Verifier (settlement contract plus off-chain library) is available from the project repository identified on the author's organization web site. The reference implementation is provided for interoperability testing and is not normative; where it differs from this document, this document prevails.¶
This section is to be removed before publishing as an RFC.¶
Following review before submission:¶
The author thanks the participants of the RATS and COSE working groups whose published work this specification builds upon.¶