Examples
Canonical evidence examples generated by arxi-contract.
Download: examples/envelope.json (1.1 KB) Download: examples/segment.json (219 B) Download: examples/bundle.json (2.4 KB)
envelope.json
{
"actor_id": "agent:contract",
"attachment_refs": [
{
"content_type": "application/octet-stream",
"hash": [
96,
42,
94,
105,
195,
2,
27,
219,
211,
210,
81,
86,
160,
45,
44,
187,
70,
118,
5,
184,
32,
50,
72,
238,
166,
175,
63,
180,
33,
104,
214,
99
],
"size": 10
}
],
"chain_hash": [
203,
92,
82,
129,
82,
71,
120,
241,
153,
208,
128,
41,
149,
247,
155,
230,
104,
76,
185,
183,
9,
217,
228,
94,
55,
227,
106,
207,
240,
99,
157,
0
],
"claimed_time": [
1970,
1,
0,
0,
0,
0,
0,
0,
0
],
"content_hash": [
133,
213,
7,
5,
73,
177,
57,
249,
114,
207,
5,
123,
28,
24,
159,
174,
199,
196,
72,
198,
110,
164,
207,
190,
131,
20,
232,
240,
62,
179,
83,
69
],
"environment_id": "env:generator",
"event_type": "system.contract_generated",
"id": "018f7de8-2d50-7d6a-8e2a-84c31f2f1001",
"parent_id": null,
"payload": {
"kind": "contract_example",
"version": 1
},
"schema_version": 1,
"segment_id": "018f7de8-2d50-7d6a-8e2a-84c31f2f2001",
"sequence": 0,
"session_id": null,
"signature": {
"algorithm": "ed25519",
"bytes": [
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7
],
"key_id": "1111111111111111111111111111111111111111111111111111111111111111"
},
"trace_id": "trace-contract-0001"
}
segment.json
{
"created_at": [
1970,
1,
0,
0,
0,
0,
0,
0,
0
],
"hash_algorithm_id": "sha256",
"predecessor_chain_head": null,
"predecessor_id": null,
"recorder_id": "arxi-contract",
"schema_version": 1,
"segment_id": "018f7de8-2d50-7d6a-8e2a-84c31f2f2001"
}
bundle.json
{
"attachments": [
[
[
96,
42,
94,
105,
195,
2,
27,
219,
211,
210,
81,
86,
160,
45,
44,
187,
70,
118,
5,
184,
32,
50,
72,
238,
166,
175,
63,
180,
33,
104,
214,
99
],
[
97,
116,
116,
97,
99,
104,
109,
101,
110,
116
]
]
],
"created_at": [
1970,
1,
0,
0,
0,
0,
0,
0,
0
],
"format_version": 1,
"id": "018f7de8-2d50-7d6a-8e2a-84c31f2f3001",
"manifest": {
"attachment_hashes": [
[
96,
42,
94,
105,
195,
2,
27,
219,
211,
210,
81,
86,
160,
45,
44,
187,
70,
118,
5,
184,
32,
50,
72,
238,
166,
175,
63,
180,
33,
104,
214,
99
]
],
"format_version": 1,
"hash_algorithm_id": "sha256",
"omitted_parents": [],
"segments": [
{
"chain_head": [
203,
92,
82,
129,
82,
71,
120,
241,
153,
208,
128,
41,
149,
247,
155,
230,
104,
76,
185,
183,
9,
217,
228,
94,
55,
227,
106,
207,
240,
99,
157,
0
],
"envelope_count": 1,
"first_envelope_id": "018f7de8-2d50-7d6a-8e2a-84c31f2f1001",
"genesis_hash": [
214,
21,
33,
99,
93,
104,
138,
202,
162,
152,
99,
231,
184,
129,
103,
52,
140,
145,
95,
83,
167,
254,
70,
45,
146,
219,
142,
49,
156,
62,
65,
112
],
"is_partial": false,
"last_envelope_id": "018f7de8-2d50-7d6a-8e2a-84c31f2f1001",
"segment_id": "018f7de8-2d50-7d6a-8e2a-84c31f2f2001"
}
]
},
"segments": [
{
"envelopes": [
{
"actor_id": "agent:contract",
"attachment_refs": [
{
"content_type": "application/octet-stream",
"hash": [
96,
42,
94,
105,
195,
2,
27,
219,
211,
210,
81,
86,
160,
45,
44,
187,
70,
118,
5,
184,
32,
50,
72,
238,
166,
175,
63,
180,
33,
104,
214,
99
],
"size": 10
}
],
"chain_hash": [
203,
92,
82,
129,
82,
71,
120,
241,
153,
208,
128,
41,
149,
247,
155,
230,
104,
76,
185,
183,
9,
217,
228,
94,
55,
227,
106,
207,
240,
99,
157,
0
],
"claimed_time": [
1970,
1,
0,
0,
0,
0,
0,
0,
0
],
"content_hash": [
133,
213,
7,
5,
73,
177,
57,
249,
114,
207,
5,
123,
28,
24,
159,
174,
199,
196,
72,
198,
110,
164,
207,
190,
131,
20,
232,
240,
62,
179,
83,
69
],
"environment_id": "env:generator",
"event_type": "system.contract_generated",
"id": "018f7de8-2d50-7d6a-8e2a-84c31f2f1001",
"parent_id": null,
"payload": {
"kind": "contract_example",
"version": 1
},
"schema_version": 1,
"segment_id": "018f7de8-2d50-7d6a-8e2a-84c31f2f2001",
"sequence": 0,
"session_id": null,
"signature": {
"algorithm": "ed25519",
"bytes": [
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7
],
"key_id": "1111111111111111111111111111111111111111111111111111111111111111"
},
"trace_id": "trace-contract-0001"
}
],
"genesis": {
"created_at": [
1970,
1,
0,
0,
0,
0,
0,
0,
0
],
"hash_algorithm_id": "sha256",
"predecessor_chain_head": null,
"predecessor_id": null,
"recorder_id": "arxi-contract",
"schema_version": 1,
"segment_id": "018f7de8-2d50-7d6a-8e2a-84c31f2f2001"
},
"proof_anchor": null,
"seal": null
}
],
"selector": {
"BySegment": "018f7de8-2d50-7d6a-8e2a-84c31f2f2001"
}
}