1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//! Typed external anchors — `acdp-common.schema.json` (RFC-ACDP-0016, 0.5.0).
//!
//! An anchor is a producer-signed, content-addressed reference from an
//! ACDP body to a non-ACDP external artifact (a commitment record, a
//! sealed decision, anything identified by its own digest). It is part
//! of ProducerContent (RFC-ACDP-0001 §5.7) — included in the
//! `content_hash` preimage exactly like any other producer-controlled
//! field, with no special-casing in the hash pipeline.
//!
//! Anchors are opaque to core verification (RFC-ACDP-0016 §6): a
//! verifier that does not recognize an anchor's `scheme` MUST ignore it
//! for resolution purposes while still treating it as signed content.
//! `uri` is an advisory locator hint only — it MUST NOT be dereferenced
//! by any ACDP-level verification code path; the binding is
//! `content_hash`, never `uri`.
use ContentHash;
use ;
/// One entry in `Body::anchors` / `PublishRequest::anchors`.
///
/// `additionalProperties: true` per RFC-ACDP-0016 §4: a future
/// anchor-scheme-specific field is automatically signed under the
/// RFC-ACDP-0001 §5.7 unknown-field rule without a schema update, so
/// unknown keys are preserved in [`Self::extensions`] rather than
/// rejected.