@osyra/ome/verify
Pre-release — offline verification only: Offline verification from an authorized source checkout is usable. The memory/network RPC surface and any
api.osyra.aiexamples below describe protocol/interface shape only. The public Edge bridge, package publication, and release acceptance are still pending; do not treat this page as proof that customer network read/write is available.
Import: import { … } from "@osyra/ome/verify";
Re-exports
Symbols re-exported from another entry point. Follow the link for the full definition.
| Symbol | Defined in |
| --- | --- |
| JmtProof | JmtProof |
| OmeError | OmeError |
| OmeInvalidSignatureError | OmeInvalidSignatureError |
| OmeMalformedCborError | OmeMalformedCborError |
| OmeNotImplementedError | OmeNotImplementedError |
| OmeUnsupportedRuntimeError | OmeUnsupportedRuntimeError |
| OmeVerifyError | OmeVerifyError |
| OmeWireFormatError | OmeWireFormatError |
| verifyBundleManifest | verifyBundleManifest |
| verifyEd25519 | verifyEd25519 |
| verifyOeraser | verifyOeraser |
| verifyProof | verifyProof |
| verifyReceipt | verifyReceipt |
| verifyWitness | verifyWitness |
Interfaces
AttestedClaimFields
interface AttestedClaimFieldsProperties
| Name | Type | Description |
| --- | --- | --- |
| contentHash | Uint8Array | The signature-attested content hash (SHA-256; 32 bytes). |
| embeddingHash? | Uint8Array<ArrayBufferLike> | The signature-attested embedding hash (SHA-256; 32 bytes), present only when the claim carries a NON-ZERO embedding digest. The proto always encodes an eh field; a 32-byte zero digest means "no embedding" and is reported as undefined here (a chat-message claim has no embedding). |
Functions
extractAttestedClaimFields
extractAttestedClaimFields(encodedCbor: Uint8Array): AttestedClaimFields| Parameter | Type | Description |
| --- | --- | --- |
| encodedCbor | Uint8Array | |
verifyBundleZip
verifyBundleZip(_zipBytes: Uint8Array, _trustAnchors: Uint8Array<ArrayBufferLike>[]): Promise<boolean>Verify a full .ome ZIP bundle (§6.5 path) — NOT IMPLEMENTED.
The §6.5 ZIP path (open the archive, parse the manifest + claims + the JMT
tree, re-derive the root, locate + COSE-verify the bundler signature, and
cross-check every claim's detached signature) is deferred. The COSE_Sign1
manifest-signature leg is verifiable today via verifyBundleManifest
given the already-extracted preimage + COSE bytes; the full archive walk
(and the JMT root re-derivation it depends on, which needs the 16-ary proof
model — see verifyProof) is not yet wired.
Throws: OmeNotImplementedError always.
| Parameter | Type | Description |
| --- | --- | --- |
| _zipBytes | Uint8Array | The raw .ome ZIP archive bytes. |
| _trustAnchors | Uint8Array<ArrayBufferLike>[] | The relying party's trusted Ed25519 public keys. |