Verify an OCMF record in your browser
Paste a signed OCMF meter value and the meter's key: emob's verifier runs as WebAssembly in your browser. Nothing is uploaded.
Paste one signed value — the line that starts with OCMF| — and the public
key of the meter that signed it. The check runs on this device: the page
loads one WebAssembly module, the same one every emob receipt runs, and sends
nothing anywhere afterwards. It works with the network unplugged.
Ein signierter Messwert und der Schlüssel des Zählers: das Urteil rechnet dieser Browser aus, nichts wird hochgeladen.
What it checks, and what it does not
It answers one question — did this key sign these bytes? — with ECDSA over the record exactly as written, on the curve the record names. Changing a single digit of the reading makes it fail; try the tampered example. It decodes the readings the device checked, so what you see under the verdict was read from the signed bytes, not from any server.
Three answers are not “verified”:
- does not verify — the signature does not match these bytes under this key: the record was changed, or the key is another meter’s;
- cannot be checked here — a curve this build does not implement; the S.A.F.E. Transparenzsoftware can;
- unreadable — the record or the key is not in a form the module reads.
A verified signature is necessary for billing and not sufficient: whether a value may be billed also depends on the meter’s status flags and on the session’s records being complete — that is what emob checks before a session bills. See Eichrecht, verified end to end.
The module
emob_verify.wasm is built reproducibly from
crates/emob-verify
(just wasm), and is held to the S.A.F.E. reference corpus — every record
with OpenSSL’s verdict — in CI. The SHA-256 above is computed in your browser
from the bytes it loaded; compare it with the one in the release notes.
The worked example is test_ocmf_ebee_01 from that corpus (Apache-2.0).