You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dateKeys-dart/testdata/fixtures/format2_time_only.json

131 lines
3.2 KiB

{
"description": "format 2 time_only capsule, padding code 2 (reforzado): L = 78000, P = 79872, two STREAM chunks",
Specification 0.15: the release object, a release in hand and step 9.c specVersion is 0.15 and testdata is synced with datekeys-go at 3c3e737 (branch v0.15): every file changes its spec field, mutations.json gains the field source and four cases, and vectors/release.json and releases/ are new (142 files). release.dart, as provider of Go at 2eeca40, with its texts: encodeRelease and decodeRelease of the release object (spec v0.15, 47.1) with the CBOR profile of the library, its size first, then its type and version, then its schema; parseRelease, which also reads drand's JSON with the rules of encoding/json of Go for its three fields; verifyRelease checks the chain hash a release names, ERR_PROFILE_MISMATCH, before its round and its signature; ReleaseSupplier, EncodedRelease and supplyRelease, a release in the caller's hand; and ReleaseArchive, the lookup of a local release archive (50), whose failures are ERR_RELEASE_UNAVAILABLE at step 9. open: OpenOptions.release takes a release in hand, exclusive with source. It is not compared with the clock (step 9.c); Opened.clockBehind reports a clock behind it, and the step 9 detail is Go's. Step 10 starts with the layers of the object. A network source keeps its behaviour. Opened.release carries the chain hash of the pinned profile. Vectors: mutation_texts.json is regenerated with tool/mutation_go_texts.go, which now replays each case with its source as testkit does: 149 cases change only the detail of step 9 ("release supplied by the caller"), the case "round not reached yet" now opens, and the four new cases are added. release_vectors.json, the open vectors, and the formats, locator, security and seal vectors come out the same at 3c3e737 but for their spec field. tool/release_archive_go_texts.go writes the texts of provider.Archive on edited archives; tool/release_copy.dart copies release.json, releases/ and those texts to release.g.dart for the tests compiled to JavaScript. errors_spec_test reads the spec at the commit of testdata/SOURCE.json rather than at its tag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 days ago
"spec": "0.15",
"format": 2,
"file": "format2_time_only.dkc",
"sha256": "f5a40ac6b8a08a0c12db6114c2bca23522d6a77b512b509a217fb15f367813c4",
"release": {
"round": 1000,
"signature": "b44679b9a59af2ec876b1a6b1ad52ea9b1615fc3982b19576350f93447cb1125e342b73a8dd2bacbe47e4b6b63ed5e39"
},
"prelude": "444b43310200000000000079000001ca",
"public_header": "a5006a646174656b657963617001010250c8cfc53d45c879da916edddf71f3bddd037853646b315f65794a325a584a7a61573975496a6f784c434a755a58523362334a72496a6f695a4746305a57746c65584d3663585670593274755a585136646a45694c434a79623356755a4349364d5441774d48300400",
"datekey": "dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6MTAwMH0",
"capsule_id": "c8cfc53d45c879da916edddf71f3bddd",
"access_policy": "time_only",
"structure": "time_only",
"unlock_at": "2023-08-23T15:59:24Z",
"header_binding": "f916dc2cadb85b0426cc7caafdd01ebab7b27911ba1b4ed13fa48e74cdd452a1",
"outer_stanzas": [
{
"type": "tlock",
"args": [
"1000",
"52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971"
]
}
],
"payload_stanzas": [
{
"type": "X25519",
"args": [
"Sk/EUvzR0FX1g4rLX4zLC00L9S9eCdz8nZ2IaHEaOWE"
]
}
],
"control_cbor": "a60070646174656b6579732d636f6e74726f6c0102025820f916dc2cadb85b0426cc7caafdd01ebab7b27911ba1b4ed13fa48e74cdd452a103582069dab305617ad46e0f518af78153efddeaf61bc59336f209068c8e692119b94d064800000000000130b00702",
"payload_identity": "69dab305617ad46e0f518af78153efddeaf61bc59336f209068c8e692119b94d",
"payload_length": 78000,
"padding": 2,
"padded_length": 79872,
"plaintext_file": "format2_time_only.plaintext",
"plaintext_sha256": "53b8ee821fb7b678e89d4f93da1812339f6cc1ab83aac6ed1432db99df784be5",
"stages": [
{
"step": 1,
"name": "parse DKC1",
"ok": true
},
{
"step": 2,
"name": "prelude",
"ok": true
},
{
"step": 3,
"name": "public header",
"ok": true
},
{
"step": 4,
"name": "header validation",
"ok": true
},
{
"step": 5,
"name": "sealed control structure",
"ok": true
},
{
"step": 6,
"name": "payload structure",
"ok": true
},
{
"step": 7,
"name": "condition",
"ok": true
},
{
"step": 8,
"name": "tlock stanza",
"ok": true
},
{
"step": 9,
"name": "release",
"ok": true
},
{
"step": 10,
"name": "release verification",
"ok": true
},
{
"step": 11,
"name": "open sealed control",
"ok": true
},
{
"step": 12,
"name": "policy structure",
"ok": true
},
{
"step": 14,
"name": "control",
"ok": true
},
{
"step": 15,
"name": "header binding",
"ok": true
},
{
"step": 16,
"name": "payload identity",
"ok": true
},
{
"step": 17,
"name": "open payload",
"ok": true
},
{
"step": 18,
"name": "commit",
"ok": true
}
]
}

Powered by TurnKey Linux.