{"schema_version":4,"algorithm":"Ed25519","current_key":{"key_id":"current","public_key_pem":"-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAz5+MzvF50PQ7G8zcLCDN2RbNCaFawyAXv9mGX88W3k8=\n-----END PUBLIC KEY-----\n","public_key_raw_hex":"cf9f8ccef179d0f43b1bccdc2c20cdd916cd09a15ac32017bfd9865fcf16de4f","fingerprint":{"sha256_hex":"866c6f8c1ad2a998af215b10624121203592d0343bdeb501a9e5e1da04cd3c48","sha256_base64":"hmxvjBrSqZivIVsQYkEhIDWS0DQ73rUBqeXh2gTNPEg=","sha256_colon":"86:6C:6F:8C:1A:D2:A9:98:AF:21:5B:10:62:41:21:20:35:92:D0:34:3B:DE:B5:01:A9:E5:E1:DA:04:CD:3C:48"},"signing_format":{"seal_mode":"merkle-blake3-64k-v1","version":1,"description":"Ed25519 over raw bytes: 32-byte root_hash || 8-byte little-endian double timestamp_utc (seconds).","message_length_bytes":40,"legacy":false,"status":"active (for manifests with seal_mode = \"merkle-blake3-64k-v1\")"},"signing_formats":[{"seal_mode":"merkle-blake3-64k-v1","version":1,"description":"Ed25519 over raw bytes: 32-byte root_hash || 8-byte little-endian double timestamp_utc (seconds).","message_length_bytes":40,"legacy":false,"status":"active (for manifests with seal_mode = \"merkle-blake3-64k-v1\")"},{"seal_mode":"merkle-blake3-64k-v2","version":2,"description":"Ed25519 over the SHA3-512 (FIPS 202) digest of the canonical UTF-8 bytes of the manifest with the signature field removed. The canonical bytes are produced by recursively sorting every JSON object's keys lexicographically by Unicode code point, emitting JSON with no whitespace between tokens, and forbidding JSON floats and NaN/Infinity. Non-integer numeric values (timestamp_utc, entropy) MUST be carried as fixed-precision strings.","message_length_bytes":64,"hash_algorithm":"SHA3-512","spec_url":"https://github.com/OrygnsCode/BitSeal/blob/main/spec/v2-manifest.md","legacy":false,"status":"active (default for all new seals as of 2026-05-29; see spec/v2-manifest.md)"}]},"historical_keys":[{"key_id":"pre-kms-2026-04-19","public_key_pem":"-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAY5D+SixjiaESGxScO2LXhSIjIBdURaEwyHujBLjfWIc=\n-----END PUBLIC KEY-----\n","effective_from":"2026-04-19","effective_until":"2026-05-29","note":"Original BITSEAL_PRIVATE_KEY env-var key. Retired to historical when KMS-backed signing went live.","fingerprint":{"sha256_hex":"18405a9b9a5a6195e5e7a432b920bb24c0bc00041d9d25eb0a240b32be0ec7c8","sha256_base64":"GEBam5paYZXl56QyuSC7JMC8AAQdnSXrCiQLMr4Ox8g=","sha256_colon":"18:40:5A:9B:9A:5A:61:95:E5:E7:A4:32:B9:20:BB:24:C0:BC:00:04:1D:9D:25:EB:0A:24:0B:32:BE:0E:C7:C8"}}],"manifest_spec":{"id":"merkle-blake3-64k-v1","description":"BitSeal Merkle manifest v1: whole-file BLAKE3 plus a BLAKE3 Merkle tree of fixed-size chunks. The web API and the BitSeal-SDK both produce this format, so a web seal and a CLI seal of the same bytes yield the same root_hash.","chunk_size_bytes":65536,"leaf_hash":{"algorithm":"BLAKE3","output_bytes":32,"encoding":"lowercase-hex","input":"Raw chunk bytes, split into CHUNK_SIZE windows from file offset 0. The final chunk may be short; it is hashed as-is (no padding)."},"internal_node":{"algorithm":"BLAKE3","output_bytes":32,"encoding":"lowercase-hex","input":"Raw 32-byte concatenation of the two child node hashes (left || right). No domain separator, no length prefix.","odd_layer_rule":"If a layer has an odd number of nodes, the last node is duplicated (paired with itself) before hashing up."},"root":"Last surviving node after repeatedly pairing. For a single-leaf tree, the root equals that leaf. Published as manifest.root_hash.","manifest_fields_for_verification":["seal_mode (must equal \"merkle-blake3-64k-v1\")","chunk_size_bytes (must equal 65536)","root_hash (lowercase hex, 64 chars)","merkle_tree (array of leaf hashes, lowercase hex, 64 chars each; length == ceil(size_bytes / chunk_size_bytes))","size_bytes"]},"manifest_specs":[{"id":"merkle-blake3-64k-v1","description":"BitSeal Merkle manifest v1: whole-file BLAKE3 plus a BLAKE3 Merkle tree of fixed-size chunks. The web API and the BitSeal-SDK both produce this format, so a web seal and a CLI seal of the same bytes yield the same root_hash.","chunk_size_bytes":65536,"leaf_hash":{"algorithm":"BLAKE3","output_bytes":32,"encoding":"lowercase-hex","input":"Raw chunk bytes, split into CHUNK_SIZE windows from file offset 0. The final chunk may be short; it is hashed as-is (no padding)."},"internal_node":{"algorithm":"BLAKE3","output_bytes":32,"encoding":"lowercase-hex","input":"Raw 32-byte concatenation of the two child node hashes (left || right). No domain separator, no length prefix.","odd_layer_rule":"If a layer has an odd number of nodes, the last node is duplicated (paired with itself) before hashing up."},"root":"Last surviving node after repeatedly pairing. For a single-leaf tree, the root equals that leaf. Published as manifest.root_hash.","manifest_fields_for_verification":["seal_mode (must equal \"merkle-blake3-64k-v1\")","chunk_size_bytes (must equal 65536)","root_hash (lowercase hex, 64 chars)","merkle_tree (array of leaf hashes, lowercase hex, 64 chars each; length == ceil(size_bytes / chunk_size_bytes))","size_bytes"]},{"id":"merkle-blake3-64k-v2","description":"BitSeal Merkle manifest v2: identical Merkle construction to v1, but the Ed25519 signature covers the SHA3-512 digest of the canonical manifest bytes. Closes audit findings H2, M4, L4. Field rename: machine_fingerprint -> client_tag. Numeric fields (timestamp_utc, entropy) are carried as fixed-precision strings to make JSON canonicalization deterministic across languages.","chunk_size_bytes":65536,"leaf_hash":{"algorithm":"BLAKE3","output_bytes":32,"encoding":"lowercase-hex","input":"Raw chunk bytes, split into CHUNK_SIZE windows from file offset 0. The final chunk may be short; it is hashed as-is (no padding)."},"internal_node":{"algorithm":"BLAKE3","output_bytes":32,"encoding":"lowercase-hex","input":"Raw 32-byte concatenation of the two child node hashes (left || right). No domain separator, no length prefix.","odd_layer_rule":"If a layer has an odd number of nodes, the last node is duplicated (paired with itself) before hashing up."},"root":"Last surviving node after repeatedly pairing. For a single-leaf tree, the root equals that leaf. Published as manifest.root_hash.","canonicalization":{"json_key_sort":"lexicographic by Unicode code point, recursive on every nested object","whitespace_between_tokens":"none","numeric_policy":"no JSON floats in canonical form; non-integer numeric values carried as fixed-precision strings","removed_fields":["signature"],"string_encoding":"UTF-8","float_rejection":"NaN and Infinity rejected (allow_nan=false in Python json.dumps; default in JSON.stringify)"},"signature_construction":{"digest_algorithm":"SHA3-512","digest_output_bytes":64,"sign":"Ed25519 over the 64-byte digest","unknown_field_policy":"Verifiers MUST reject manifests that contain unknown fields. The canonicalization rule \"every field is included\" means unknown fields would silently become signed material; rejection avoids that."},"spec_url":"https://github.com/OrygnsCode/BitSeal/blob/main/spec/v2-manifest.md","test_vectors_url":"https://github.com/OrygnsCode/BitSeal/blob/main/spec/v2-test-vectors.json","manifest_fields_for_verification":["seal_mode (must equal \"merkle-blake3-64k-v2\")","chunk_size_bytes (must equal 65536)","root_hash (lowercase hex, 64 chars)","merkle_tree (array of leaf hashes, lowercase hex, 64 chars each)","size_bytes","timestamp_utc (string, fixed 6-decimal precision)","entropy (string, fixed 4-decimal precision)","client_tag (string, optional)"]}],"manifest_spec_url":"https://github.com/OrygnsCode/BitSeal/blob/main/spec/v2-manifest.md","policy_urls":{"ceremony":"https://bitseal.orygn.tech/legal/key-ceremony","rotation":"https://bitseal.orygn.tech/legal/rotation-policy","architecture":"https://bitseal.orygn.tech/docs/architecture"},"notes":["The web API signs seals with the current_key. CLI seals signed by the BitSeal-SDK on a local machine use a separate per-machine key and are not verifiable against this public key, but their Merkle tree follows the same manifest_spec.","Verify a seal by reading manifest.seal_mode and dispatching: for \"merkle-blake3-64k-v1\" reconstruct the 40-byte message (32-byte root_hash || little-endian IEEE 754 double timestamp_utc) and run an Ed25519 verify against current_key.public_key_pem. For \"merkle-blake3-64k-v2\" canonicalize the manifest per the canonicalization rules in manifest_specs[seal_mode=v2], take SHA3-512 of the canonical bytes, then Ed25519 verify against the same public key. If verify fails, try each historical_keys entry.","Independently verify file integrity by re-chunking the source bytes into 65536-byte windows, BLAKE3-hashing each chunk to reproduce merkle_tree, then folding up with the odd-layer-duplicate rule to reproduce root_hash. The Merkle algorithm is identical between v1 and v2.","The fingerprint is SHA-256 over the DER-encoded SubjectPublicKeyInfo. Reproduce with: openssl pkey -pubin -pubout -outform der | openssl dgst -sha256.","A self-attestation signature over the ceremony document is available at /api/legal/ceremony-attestation. As of schema_version 2 of that endpoint the canonical_text binds to a content_sha256 over a stable fact-sheet (see canonical_content in that response). Verify the content_sha256 line by SHA-256'ing the canonical_content bytes the endpoint returns."],"authority":"Orygn LLC","service_url":"https://bitseal.orygn.tech/"}