iqa-org 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- iqa_org-0.1.0/CHANGELOG.md +54 -0
- iqa_org-0.1.0/LICENSE +201 -0
- iqa_org-0.1.0/MANIFEST.in +4 -0
- iqa_org-0.1.0/PKG-INFO +218 -0
- iqa_org-0.1.0/README.md +187 -0
- iqa_org-0.1.0/pyproject.toml +51 -0
- iqa_org-0.1.0/setup.cfg +4 -0
- iqa_org-0.1.0/src/iqa/__init__.py +62 -0
- iqa_org-0.1.0/src/iqa/attest.py +351 -0
- iqa_org-0.1.0/src/iqa/iqa_uri.py +170 -0
- iqa_org-0.1.0/src/iqa/selftest.py +324 -0
- iqa_org-0.1.0/src/iqa/vectors/iqa-conformance-v1.2.6.json +260 -0
- iqa_org-0.1.0/src/iqa_org.egg-info/PKG-INFO +218 -0
- iqa_org-0.1.0/src/iqa_org.egg-info/SOURCES.txt +15 -0
- iqa_org-0.1.0/src/iqa_org.egg-info/dependency_links.txt +1 -0
- iqa_org-0.1.0/src/iqa_org.egg-info/requires.txt +8 -0
- iqa_org-0.1.0/src/iqa_org.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Changelog — iqa (Python)
|
|
2
|
+
|
|
3
|
+
All notable changes to this package are documented here.
|
|
4
|
+
Format: Keep a Changelog; versioning: SemVer.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## [0.1.0] — 2026-09-18
|
|
9
|
+
|
|
10
|
+
Initial public release.
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
* **`iqa://` URI codec** (RFC-009 §10.2/§10.3): validate, canonicalise and
|
|
15
|
+
classify — subject hash forms (8/32/64 lowercase hex) and name forms,
|
|
16
|
+
**closed-set** enforcement for `organ` (`forge`/`tss`/`gateway`) and
|
|
17
|
+
`action` (`verify`/`audit`/`attest`/`revoke`), fail-closed rejection of
|
|
18
|
+
uppercase, userinfo, port, query, fragment, foreign schemes and every
|
|
19
|
+
structural violation. Field names are snake_case so this output and the
|
|
20
|
+
JavaScript package's output compare directly against the vectors.
|
|
21
|
+
* **`IQA_ROUTE` derivation** (SPEC/IQA-URI-ATTEST-v1.2.6 §3, decision D1):
|
|
22
|
+
`SHA-256(ASCII(authority))[0:4]` — pure computation, DNS-free, mirroring the
|
|
23
|
+
RTTP `ROUTE_SHARD` rule.
|
|
24
|
+
* **Action safety classes** (RFC-009 §11.3) exposed as `action_safe` —
|
|
25
|
+
omitted/verify SAFE, audit/attest/revoke NOT SAFE.
|
|
26
|
+
* **Sovereign attestation envelope** (`iqa.attest`, optional `[ed25519]`
|
|
27
|
+
extra): Ed25519, self-certifying `AID = SHA-256(public key)`, domain prefix
|
|
28
|
+
`iqa-attest-v1`, `ts`/`nonce` inside the signature, 120-second freshness
|
|
29
|
+
window, claim validation against both closed sets, and a fail-closed
|
|
30
|
+
verification order — a check that cannot be performed is a failure, never a
|
|
31
|
+
pass.
|
|
32
|
+
* **59-check self-test** (`python -m iqa.selftest`): 31 conformance + 2
|
|
33
|
+
RFC 8032 + 22 envelope + 4 zero-dependency; replays the shipped vectors
|
|
34
|
+
offline.
|
|
35
|
+
* **Conformance vectors** — 32 published checks in four groups (8 positive /
|
|
36
|
+
18 negative / 5 safety / 1 deterministic envelope), generated by
|
|
37
|
+
`SPEC/tools/iqa_conformance.py`, shipped inside the wheel, and mirrored
|
|
38
|
+
byte-identically in the npm package `iqa`.
|
|
39
|
+
|
|
40
|
+
### Distribution status at this release
|
|
41
|
+
|
|
42
|
+
| Registry | Name | State |
|
|
43
|
+
|:---|:---|:---|
|
|
44
|
+
| PyPI | **`iqa-org`** | this package — `pip install iqa-org`, `import iqa`. The bare `iqa` is unregistered but blocked by PyPI's typosquatting protection (upload rejected 400, "too similar to an existing project") |
|
|
45
|
+
| npm | **`@aicent/iqa`** | the JavaScript independent implementation — bare name blocked by npm's typosquatting protection, published under the project organization |
|
|
46
|
+
| crates.io | `iqa-org` | held by this project |
|
|
47
|
+
|
|
48
|
+
### Specification status
|
|
49
|
+
|
|
50
|
+
The `iqa` URI scheme is submitted to IANA under RFC 7595 (ticket **#1459963**,
|
|
51
|
+
Provisional) and is **under review — not yet registered**. Every artifact in
|
|
52
|
+
this package describes it that way.
|
|
53
|
+
|
|
54
|
+
[0.1.0]: https://pypi.org/project/iqa/
|
iqa_org-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2013-2019 Nikolay Kim and Andrew Svetlov
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
iqa_org-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: iqa-org
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: IQA: iqa:// subject-attestation addressing (RFC-009 §10/§11), IQA_ROUTE derivation, and the published conformance vectors that prove an implementation is right
|
|
5
|
+
Author: IQA.ORG Organization
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://iqa.org/
|
|
8
|
+
Project-URL: Specification, https://iqa.org/RFC-009/
|
|
9
|
+
Keywords: iqa,attestation,identity,uri,conformance,ed25519,aicent
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Topic :: Security :: Cryptography
|
|
20
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
21
|
+
Requires-Python: >=3.9
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
Provides-Extra: ed25519
|
|
25
|
+
Requires-Dist: cryptography>=42; extra == "ed25519"
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Requires-Dist: cryptography>=42; extra == "dev"
|
|
28
|
+
Requires-Dist: build; extra == "dev"
|
|
29
|
+
Requires-Dist: twine; extra == "dev"
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
|
|
32
|
+
# iqa-org
|
|
33
|
+
|
|
34
|
+
**Reference implementation of the IQA attestation layer: the `iqa://`
|
|
35
|
+
subject-attestation URI (RFC-009 §10), action safety classes (§11), and the
|
|
36
|
+
self-certifying Ed25519 attestation envelope.**
|
|
37
|
+
|
|
38
|
+
[RFC-009 §10](https://iqa.org/RFC-009/) · §11 · v1.2.6
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Verify it in one command — no trust required
|
|
43
|
+
|
|
44
|
+
```console
|
|
45
|
+
$ pip install iqa-org
|
|
46
|
+
$ python -m iqa.selftest
|
|
47
|
+
...
|
|
48
|
+
[PASS] all 59 checks passed
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
That is the point of this package. A specification is worth exactly what an
|
|
52
|
+
independent implementation can reproduce from it — so instead of asking you to
|
|
53
|
+
believe a table of numbers, this ships the vectors and replays them locally:
|
|
54
|
+
|
|
55
|
+
* **31 conformance checks** — `iqa://` parsing, the two **closed sets**
|
|
56
|
+
(`organ` / `action` — the deliberate difference from `rttp`, whose verb set
|
|
57
|
+
is open), fail-closed rejections, §11.3 action safety classes, and the
|
|
58
|
+
`IQA_ROUTE` derivation.
|
|
59
|
+
* **2 RFC 8032 checks** — the Ed25519 backend is shown to be *standard*
|
|
60
|
+
Ed25519, not a lookalike, so a failure tells you which half broke.
|
|
61
|
+
* **22 envelope checks** — deterministic-vector reproduction, round-trip,
|
|
62
|
+
self-certification, freshness, claim validation, and a 14-case tamper matrix
|
|
63
|
+
where every alteration must be rejected.
|
|
64
|
+
* **4 zero-dependency checks** — a static scan proving the core imports
|
|
65
|
+
nothing outside the standard library.
|
|
66
|
+
|
|
67
|
+
Offline. No account. No network. `[PASS]` or it is not.
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Install
|
|
72
|
+
|
|
73
|
+
```console
|
|
74
|
+
pip install iqa-org # core: zero dependencies, standard library only
|
|
75
|
+
pip install iqa-org[ed25519] # + sovereign attestation envelopes (Ed25519)
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Python 3.9+. No compiled extensions in the core.
|
|
79
|
+
|
|
80
|
+
The core deliberately has **no dependencies**. A protocol reference that cannot
|
|
81
|
+
be read without resolving a dependency tree is not much of a reference — and an
|
|
82
|
+
air-gapped reviewer should be able to check the claims.
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## What is in the box
|
|
87
|
+
|
|
88
|
+
| Module | What it does | Authority |
|
|
89
|
+
|:---|:---|:---|
|
|
90
|
+
| `iqa.iqa_uri` | `iqa://` codec — validate, canonicalise, classify (8/32/64 hex or name subject), enforce the `organ` and `action` **closed sets**, report `action_safe` | RFC-009 §10.1/§10.2/§10.3 |
|
|
91
|
+
| `iqa.iqa_uri.derive_route` | `IQA_ROUTE = SHA-256(ASCII(authority))[0:4]` — pure computation, DNS-free | `SPEC/IQA-URI-ATTEST-v1.2.6.md` §3 |
|
|
92
|
+
| `iqa.attest` | **Sovereign attestation envelope** — Ed25519, self-certifying (`AID = SHA-256(pub)`), domain prefix `iqa-attest-v1`, `ts`/`nonce` inside the signature | `SPEC/IQA-URI-ATTEST-v1.2.6.md` §5 (draft) |
|
|
93
|
+
|
|
94
|
+
Plus `iqa.vectors` — the published conformance vectors, shipped inside the
|
|
95
|
+
wheel so the self-test works from an installed package with no repository
|
|
96
|
+
checkout.
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Quickstart
|
|
101
|
+
|
|
102
|
+
### Address a standing claim
|
|
103
|
+
|
|
104
|
+
```python
|
|
105
|
+
from iqa import iqa_uri
|
|
106
|
+
|
|
107
|
+
parsed = iqa_uri.parse("iqa://3f9a1b2c.gateway.iqa")
|
|
108
|
+
parsed["subject"] # '3f9a1b2c' (8-hex routing short form)
|
|
109
|
+
parsed["organ"] # 'gateway' (closed set: forge | tss | gateway)
|
|
110
|
+
parsed["action"] # None (omitted = standing read, §11.1)
|
|
111
|
+
parsed["action_safe"] # True (§11.3)
|
|
112
|
+
parsed["route_hex"] # '5c378581' <- pure computation, vector-pinned
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Addressing is **DNS-free** (RFC-009 §12 #9): the route fingerprint is derived
|
|
116
|
+
from the authority by SHA-256, so no registry, resolver or network is involved.
|
|
117
|
+
Malformed input is rejected rather than normalised — a case variant is not a
|
|
118
|
+
spelling difference, it is a different string.
|
|
119
|
+
|
|
120
|
+
### The closed sets — the deliberate difference from `rttp`
|
|
121
|
+
|
|
122
|
+
```python
|
|
123
|
+
iqa_uri.parse("iqa://3f9a1b2c.gateway.iqa/pulse")
|
|
124
|
+
# IqaUriError: action 'pulse' is outside the closed set — 'pulse' is an rttp verb
|
|
125
|
+
|
|
126
|
+
iqa_uri.parse("iqa://3f9a1b2c.forgery.iqa")
|
|
127
|
+
# IqaUriError: organ is a closed set (forge | tss | gateway)
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Seal an attestation with your own identity
|
|
131
|
+
|
|
132
|
+
```python
|
|
133
|
+
from iqa import attest
|
|
134
|
+
|
|
135
|
+
keypair = attest.generate_keypair() # nothing is issued to you
|
|
136
|
+
print(keypair["aid_hex"]) # = SHA-256(public key): your identity
|
|
137
|
+
|
|
138
|
+
claim = attest.build_claim("iqa://3f9a1b2c.gateway.iqa", "gateway", "radiant")
|
|
139
|
+
envelope = attest.seal(claim, keypair)
|
|
140
|
+
|
|
141
|
+
ok, reason, aid = attest.verify_envelope(envelope)
|
|
142
|
+
# ok=True — signer identity recovered from the packet itself
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
The verifier needs **only the envelope**. There is no key directory, no
|
|
146
|
+
credentials to obtain, and no operator who could refuse to issue them. The
|
|
147
|
+
envelope **carries a claim** that an Organ rendered a standing; it does not
|
|
148
|
+
**create** one — verifying an attestation and trusting an attestation are
|
|
149
|
+
different acts (RFC-009 §10.4).
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## Scope — what this package is not
|
|
154
|
+
|
|
155
|
+
| | |
|
|
156
|
+
|:---|:---|
|
|
157
|
+
| ✅ **Validation / canonicalisation** | Real, and specified (RFC-009 §10.2 / §10.3). |
|
|
158
|
+
| ✅ **Closed-set enforcement** | Real, and specified (§10.1). |
|
|
159
|
+
| ✅ **IQA_ROUTE derivation** | Real (SPEC §3, decision D1). |
|
|
160
|
+
| ✅ **Action safety classes** | Real, and specified (§11.3). |
|
|
161
|
+
| ✅ **Attestation envelope** | Real, and specified (draft). |
|
|
162
|
+
| ❌ **Dereferencing / resolver service** | Not here. The codec computes; *answering* a standing read is an Organ's job (RFC-009-C §3). |
|
|
163
|
+
| ❌ **Staking & tiers** | ZCMK collateral economics — operator policy, no cryptographic object in this package. |
|
|
164
|
+
| ❌ **Vitality monitoring** | 1200 Hz heartbeats and Homeostasis Scores are telemetry, not codec. |
|
|
165
|
+
| ❌ **Post-quantum Lattice Guard** | RFC-009 §12 #11 schedules it for v1.4.0; no implementation exists. |
|
|
166
|
+
| ❌ **Revocation transport** | §11.3 defines the verb; executing it is not the codec's job. |
|
|
167
|
+
| ❌ **Confidentiality** | Signing is not encryption. |
|
|
168
|
+
|
|
169
|
+
Unknown revisions, algorithms and malformed input **fail closed** everywhere.
|
|
170
|
+
Nothing in this package is ever accepted because a check could not be performed.
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## Conformance vectors
|
|
175
|
+
|
|
176
|
+
`iqa/vectors/iqa-conformance-v1.2.6.json` is generated, not hand-edited. Each
|
|
177
|
+
vector is deterministic: fixed sequence values, fixed timestamp, fixed seed —
|
|
178
|
+
so two implementations either agree byte for byte or they do not. The same
|
|
179
|
+
file ships in the npm package `iqa` (three mirrors, one sha256), and the
|
|
180
|
+
JavaScript side is an **independent** implementation that replays it without
|
|
181
|
+
sharing a line of code with this one.
|
|
182
|
+
|
|
183
|
+
The vector set is the intended deliverable for third-party certification: pass
|
|
184
|
+
it and you interoperate; fail it and you know exactly which case is wrong,
|
|
185
|
+
without needing to trust the authors.
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## Naming
|
|
190
|
+
|
|
191
|
+
| Ecosystem | Name | Status |
|
|
192
|
+
|:---|:---|:---|
|
|
193
|
+
| crates.io | `iqa-org` | held by this project (the Rust crate carries the same name) |
|
|
194
|
+
| PyPI | **`iqa-org`** | **this package** — `pip install iqa-org`, `import iqa` (the import name is unchanged). The bare `iqa` is unregistered but **blocked by PyPI's typosquatting protection** (upload rejected with 400 "too similar to an existing project") — the same class of guard that forced `@aicent/iqa` on npm |
|
|
195
|
+
| npm | **`@aicent/iqa`** | the bare `iqa` name is unregistered but blocked by npm's typosquatting protection (too similar to existing short names) — so the JavaScript side is published under this project's own organization, as `@aicent/rttp` already is. The package name itself is still just `iqa` |
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
## Specification status
|
|
200
|
+
|
|
201
|
+
* **`iqa` URI scheme** — submitted to IANA under RFC 7595, ticket **#1459963**,
|
|
202
|
+
Provisional, **under review**. It is **not yet registered** — as of
|
|
203
|
+
2026-09-18 the IANA "URI Schemes" registry contains no `iqa` entry. Please
|
|
204
|
+
describe it that way.
|
|
205
|
+
* **URI grammar** — RFC-009 §10.2 (frozen; this package adds no syntax).
|
|
206
|
+
* **Dereference safety** — RFC-009 §11 (closed sets and safety classes).
|
|
207
|
+
* **Attestation envelope** — `SPEC/IQA-URI-ATTEST-v1.2.6.md` §5, a **draft**:
|
|
208
|
+
the format is implemented and vector-tested, but it is not yet a numbered
|
|
209
|
+
RFC-009 section.
|
|
210
|
+
|
|
211
|
+
Where this package and a specification disagree, **the specification wins and
|
|
212
|
+
the package is wrong.** Please report it.
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
## License
|
|
217
|
+
|
|
218
|
+
Apache-2.0. See `LICENSE`.
|
iqa_org-0.1.0/README.md
ADDED
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
# iqa-org
|
|
2
|
+
|
|
3
|
+
**Reference implementation of the IQA attestation layer: the `iqa://`
|
|
4
|
+
subject-attestation URI (RFC-009 §10), action safety classes (§11), and the
|
|
5
|
+
self-certifying Ed25519 attestation envelope.**
|
|
6
|
+
|
|
7
|
+
[RFC-009 §10](https://iqa.org/RFC-009/) · §11 · v1.2.6
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Verify it in one command — no trust required
|
|
12
|
+
|
|
13
|
+
```console
|
|
14
|
+
$ pip install iqa-org
|
|
15
|
+
$ python -m iqa.selftest
|
|
16
|
+
...
|
|
17
|
+
[PASS] all 59 checks passed
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
That is the point of this package. A specification is worth exactly what an
|
|
21
|
+
independent implementation can reproduce from it — so instead of asking you to
|
|
22
|
+
believe a table of numbers, this ships the vectors and replays them locally:
|
|
23
|
+
|
|
24
|
+
* **31 conformance checks** — `iqa://` parsing, the two **closed sets**
|
|
25
|
+
(`organ` / `action` — the deliberate difference from `rttp`, whose verb set
|
|
26
|
+
is open), fail-closed rejections, §11.3 action safety classes, and the
|
|
27
|
+
`IQA_ROUTE` derivation.
|
|
28
|
+
* **2 RFC 8032 checks** — the Ed25519 backend is shown to be *standard*
|
|
29
|
+
Ed25519, not a lookalike, so a failure tells you which half broke.
|
|
30
|
+
* **22 envelope checks** — deterministic-vector reproduction, round-trip,
|
|
31
|
+
self-certification, freshness, claim validation, and a 14-case tamper matrix
|
|
32
|
+
where every alteration must be rejected.
|
|
33
|
+
* **4 zero-dependency checks** — a static scan proving the core imports
|
|
34
|
+
nothing outside the standard library.
|
|
35
|
+
|
|
36
|
+
Offline. No account. No network. `[PASS]` or it is not.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Install
|
|
41
|
+
|
|
42
|
+
```console
|
|
43
|
+
pip install iqa-org # core: zero dependencies, standard library only
|
|
44
|
+
pip install iqa-org[ed25519] # + sovereign attestation envelopes (Ed25519)
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Python 3.9+. No compiled extensions in the core.
|
|
48
|
+
|
|
49
|
+
The core deliberately has **no dependencies**. A protocol reference that cannot
|
|
50
|
+
be read without resolving a dependency tree is not much of a reference — and an
|
|
51
|
+
air-gapped reviewer should be able to check the claims.
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## What is in the box
|
|
56
|
+
|
|
57
|
+
| Module | What it does | Authority |
|
|
58
|
+
|:---|:---|:---|
|
|
59
|
+
| `iqa.iqa_uri` | `iqa://` codec — validate, canonicalise, classify (8/32/64 hex or name subject), enforce the `organ` and `action` **closed sets**, report `action_safe` | RFC-009 §10.1/§10.2/§10.3 |
|
|
60
|
+
| `iqa.iqa_uri.derive_route` | `IQA_ROUTE = SHA-256(ASCII(authority))[0:4]` — pure computation, DNS-free | `SPEC/IQA-URI-ATTEST-v1.2.6.md` §3 |
|
|
61
|
+
| `iqa.attest` | **Sovereign attestation envelope** — Ed25519, self-certifying (`AID = SHA-256(pub)`), domain prefix `iqa-attest-v1`, `ts`/`nonce` inside the signature | `SPEC/IQA-URI-ATTEST-v1.2.6.md` §5 (draft) |
|
|
62
|
+
|
|
63
|
+
Plus `iqa.vectors` — the published conformance vectors, shipped inside the
|
|
64
|
+
wheel so the self-test works from an installed package with no repository
|
|
65
|
+
checkout.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Quickstart
|
|
70
|
+
|
|
71
|
+
### Address a standing claim
|
|
72
|
+
|
|
73
|
+
```python
|
|
74
|
+
from iqa import iqa_uri
|
|
75
|
+
|
|
76
|
+
parsed = iqa_uri.parse("iqa://3f9a1b2c.gateway.iqa")
|
|
77
|
+
parsed["subject"] # '3f9a1b2c' (8-hex routing short form)
|
|
78
|
+
parsed["organ"] # 'gateway' (closed set: forge | tss | gateway)
|
|
79
|
+
parsed["action"] # None (omitted = standing read, §11.1)
|
|
80
|
+
parsed["action_safe"] # True (§11.3)
|
|
81
|
+
parsed["route_hex"] # '5c378581' <- pure computation, vector-pinned
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Addressing is **DNS-free** (RFC-009 §12 #9): the route fingerprint is derived
|
|
85
|
+
from the authority by SHA-256, so no registry, resolver or network is involved.
|
|
86
|
+
Malformed input is rejected rather than normalised — a case variant is not a
|
|
87
|
+
spelling difference, it is a different string.
|
|
88
|
+
|
|
89
|
+
### The closed sets — the deliberate difference from `rttp`
|
|
90
|
+
|
|
91
|
+
```python
|
|
92
|
+
iqa_uri.parse("iqa://3f9a1b2c.gateway.iqa/pulse")
|
|
93
|
+
# IqaUriError: action 'pulse' is outside the closed set — 'pulse' is an rttp verb
|
|
94
|
+
|
|
95
|
+
iqa_uri.parse("iqa://3f9a1b2c.forgery.iqa")
|
|
96
|
+
# IqaUriError: organ is a closed set (forge | tss | gateway)
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Seal an attestation with your own identity
|
|
100
|
+
|
|
101
|
+
```python
|
|
102
|
+
from iqa import attest
|
|
103
|
+
|
|
104
|
+
keypair = attest.generate_keypair() # nothing is issued to you
|
|
105
|
+
print(keypair["aid_hex"]) # = SHA-256(public key): your identity
|
|
106
|
+
|
|
107
|
+
claim = attest.build_claim("iqa://3f9a1b2c.gateway.iqa", "gateway", "radiant")
|
|
108
|
+
envelope = attest.seal(claim, keypair)
|
|
109
|
+
|
|
110
|
+
ok, reason, aid = attest.verify_envelope(envelope)
|
|
111
|
+
# ok=True — signer identity recovered from the packet itself
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
The verifier needs **only the envelope**. There is no key directory, no
|
|
115
|
+
credentials to obtain, and no operator who could refuse to issue them. The
|
|
116
|
+
envelope **carries a claim** that an Organ rendered a standing; it does not
|
|
117
|
+
**create** one — verifying an attestation and trusting an attestation are
|
|
118
|
+
different acts (RFC-009 §10.4).
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Scope — what this package is not
|
|
123
|
+
|
|
124
|
+
| | |
|
|
125
|
+
|:---|:---|
|
|
126
|
+
| ✅ **Validation / canonicalisation** | Real, and specified (RFC-009 §10.2 / §10.3). |
|
|
127
|
+
| ✅ **Closed-set enforcement** | Real, and specified (§10.1). |
|
|
128
|
+
| ✅ **IQA_ROUTE derivation** | Real (SPEC §3, decision D1). |
|
|
129
|
+
| ✅ **Action safety classes** | Real, and specified (§11.3). |
|
|
130
|
+
| ✅ **Attestation envelope** | Real, and specified (draft). |
|
|
131
|
+
| ❌ **Dereferencing / resolver service** | Not here. The codec computes; *answering* a standing read is an Organ's job (RFC-009-C §3). |
|
|
132
|
+
| ❌ **Staking & tiers** | ZCMK collateral economics — operator policy, no cryptographic object in this package. |
|
|
133
|
+
| ❌ **Vitality monitoring** | 1200 Hz heartbeats and Homeostasis Scores are telemetry, not codec. |
|
|
134
|
+
| ❌ **Post-quantum Lattice Guard** | RFC-009 §12 #11 schedules it for v1.4.0; no implementation exists. |
|
|
135
|
+
| ❌ **Revocation transport** | §11.3 defines the verb; executing it is not the codec's job. |
|
|
136
|
+
| ❌ **Confidentiality** | Signing is not encryption. |
|
|
137
|
+
|
|
138
|
+
Unknown revisions, algorithms and malformed input **fail closed** everywhere.
|
|
139
|
+
Nothing in this package is ever accepted because a check could not be performed.
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## Conformance vectors
|
|
144
|
+
|
|
145
|
+
`iqa/vectors/iqa-conformance-v1.2.6.json` is generated, not hand-edited. Each
|
|
146
|
+
vector is deterministic: fixed sequence values, fixed timestamp, fixed seed —
|
|
147
|
+
so two implementations either agree byte for byte or they do not. The same
|
|
148
|
+
file ships in the npm package `iqa` (three mirrors, one sha256), and the
|
|
149
|
+
JavaScript side is an **independent** implementation that replays it without
|
|
150
|
+
sharing a line of code with this one.
|
|
151
|
+
|
|
152
|
+
The vector set is the intended deliverable for third-party certification: pass
|
|
153
|
+
it and you interoperate; fail it and you know exactly which case is wrong,
|
|
154
|
+
without needing to trust the authors.
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Naming
|
|
159
|
+
|
|
160
|
+
| Ecosystem | Name | Status |
|
|
161
|
+
|:---|:---|:---|
|
|
162
|
+
| crates.io | `iqa-org` | held by this project (the Rust crate carries the same name) |
|
|
163
|
+
| PyPI | **`iqa-org`** | **this package** — `pip install iqa-org`, `import iqa` (the import name is unchanged). The bare `iqa` is unregistered but **blocked by PyPI's typosquatting protection** (upload rejected with 400 "too similar to an existing project") — the same class of guard that forced `@aicent/iqa` on npm |
|
|
164
|
+
| npm | **`@aicent/iqa`** | the bare `iqa` name is unregistered but blocked by npm's typosquatting protection (too similar to existing short names) — so the JavaScript side is published under this project's own organization, as `@aicent/rttp` already is. The package name itself is still just `iqa` |
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## Specification status
|
|
169
|
+
|
|
170
|
+
* **`iqa` URI scheme** — submitted to IANA under RFC 7595, ticket **#1459963**,
|
|
171
|
+
Provisional, **under review**. It is **not yet registered** — as of
|
|
172
|
+
2026-09-18 the IANA "URI Schemes" registry contains no `iqa` entry. Please
|
|
173
|
+
describe it that way.
|
|
174
|
+
* **URI grammar** — RFC-009 §10.2 (frozen; this package adds no syntax).
|
|
175
|
+
* **Dereference safety** — RFC-009 §11 (closed sets and safety classes).
|
|
176
|
+
* **Attestation envelope** — `SPEC/IQA-URI-ATTEST-v1.2.6.md` §5, a **draft**:
|
|
177
|
+
the format is implemented and vector-tested, but it is not yet a numbered
|
|
178
|
+
RFC-009 section.
|
|
179
|
+
|
|
180
|
+
Where this package and a specification disagree, **the specification wins and
|
|
181
|
+
the package is wrong.** Please report it.
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
## License
|
|
186
|
+
|
|
187
|
+
Apache-2.0. See `LICENSE`.
|