@agent-network-protocol/anp-identity 0.2.1 → 0.2.3
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.
- package/README.md +8 -1
- package/SOURCE.md +1 -1
- package/checksums.json +10 -10
- package/index.d.ts +2 -1
- package/index.js +6 -0
- package/native.cjs +54 -54
- package/package.json +6 -6
- package/provenance.json +10 -3
- package/provider.d.ts +7 -2
- package/provider.js +9 -0
- package/sbom.cdx.json +17 -16
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @agent-network-protocol/anp-identity
|
|
2
2
|
|
|
3
|
-
Node.js bindings for ANP Identity, an E1 DID identity manager that keeps managed
|
|
3
|
+
Node.js bindings for ANP Identity, an E1 and Web DID identity manager that keeps managed
|
|
4
4
|
keys behind a native Rust boundary. A single Store can own multiple DIDs. All
|
|
5
5
|
filesystem, keyring, and cryptographic operations are asynchronous so they do
|
|
6
6
|
not block the JavaScript main thread.
|
|
@@ -48,6 +48,13 @@ lease instead of importing this Host entry.
|
|
|
48
48
|
|
|
49
49
|
## Root key sources
|
|
50
50
|
|
|
51
|
+
Choose `profile: 'web'` to create a Web identity without a DID `root_control`
|
|
52
|
+
key. Managed device signing/agreement keys and the encrypted Store are reused.
|
|
53
|
+
Host status and enrollment proposals expose `rootKeyFingerprint: null` and
|
|
54
|
+
`rootCapability: 'absent'`. WBA retains its existing fingerprint and root flows.
|
|
55
|
+
Web HTTP authentication uses RFC 9421; legacy DID-WBA, Root Transfer and Root
|
|
56
|
+
Import are unavailable. The default entry still exposes no private keys.
|
|
57
|
+
|
|
51
58
|
The bindings support OS keyring, local private file, named environment variable,
|
|
52
59
|
and an injected 32-byte key. An injected key `Buffer` is consumed and
|
|
53
60
|
overwritten, including validation-error paths. Pass a disposable buffer
|
package/SOURCE.md
CHANGED
package/checksums.json
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
"files": [
|
|
4
4
|
{
|
|
5
5
|
"path": "index.d.ts",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "d745a3550f2d12ccd0ab972ca16688812f842fc41270cb9ff983cce45b07f1ce"
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
"path": "index.js",
|
|
10
|
-
"sha256": "
|
|
10
|
+
"sha256": "52134f08f47be2a90cb86328f5a1ba58017ef3512155d4cd3d83c493231d4058"
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"path": "LICENSE",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"path": "native.cjs",
|
|
18
|
-
"sha256": "
|
|
18
|
+
"sha256": "e1152f92a467ddce339ba410b59a2e504c8535f8b79279de033098715df1fe50"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"path": "NOTICE.md",
|
|
@@ -23,31 +23,31 @@
|
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"path": "package.json",
|
|
26
|
-
"sha256": "
|
|
26
|
+
"sha256": "220bf7be5346434d3f485d81fe6341f99a081dc08ea8bafc55692aaade072ceb"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"path": "provenance.json",
|
|
30
|
-
"sha256": "
|
|
30
|
+
"sha256": "395d085d41bc0716e24e792eb93d4bc8366b7231cfb5fae46babcb791256a663"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"path": "provider.d.ts",
|
|
34
|
-
"sha256": "
|
|
34
|
+
"sha256": "3843006e81bbbf7673ce74f66b4dce20a63382fc2b371bbf54844f8e9f5b5efe"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"path": "provider.js",
|
|
38
|
-
"sha256": "
|
|
38
|
+
"sha256": "29b79d349c60b01d5b2a2df165457967feab4dd3f0160ac0694ad0c77e9ecb99"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"path": "README.md",
|
|
42
|
-
"sha256": "
|
|
42
|
+
"sha256": "f791508f9a18010c1921091d18331097c2232220073e2b687d526d875045ae27"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"path": "sbom.cdx.json",
|
|
46
|
-
"sha256": "
|
|
46
|
+
"sha256": "2d573f093b576f436fd73c9f10507d17e9dec784eb4260266da190ca44bcb4b8"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
"path": "SOURCE.md",
|
|
50
|
-
"sha256": "
|
|
50
|
+
"sha256": "49dfa3d738bb89f03ae327670340baa4183ed6806850ef4f6299810cc793dcc3"
|
|
51
51
|
}
|
|
52
52
|
]
|
|
53
53
|
}
|
package/index.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export interface DeviceManifestEntry {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
export interface CreateIdentityRequest {
|
|
106
|
-
profile: 'e1'
|
|
106
|
+
profile: 'e1' | 'web'
|
|
107
107
|
domain: string
|
|
108
108
|
port?: number
|
|
109
109
|
pathSegments: string[]
|
|
@@ -326,6 +326,7 @@ export class DocumentChangeSession {
|
|
|
326
326
|
beginPublication(): Promise<PublicationAttempt>
|
|
327
327
|
complete(attempt: PublicationAttempt, result: PublicationResult): Promise<DocumentChangeOutcome>
|
|
328
328
|
reconcile(observation: VerifiedRemoteDocument): Promise<DocumentChangeOutcome>
|
|
329
|
+
reconcileRejected(observation: VerifiedRemoteDocument): Promise<DocumentChangeOutcome>
|
|
329
330
|
}
|
|
330
331
|
|
|
331
332
|
export class IdentityTransitionSession {
|
package/index.js
CHANGED
|
@@ -138,6 +138,12 @@ class DocumentChangeSession {
|
|
|
138
138
|
await call(this.#inner.reconcile(verifiedRemoteDocument(observation))),
|
|
139
139
|
)
|
|
140
140
|
}
|
|
141
|
+
|
|
142
|
+
async reconcileRejected(observation) {
|
|
143
|
+
return documentChangeOutcome(
|
|
144
|
+
await call(this.#inner.reconcileRejected(verifiedRemoteDocument(observation))),
|
|
145
|
+
)
|
|
146
|
+
}
|
|
141
147
|
}
|
|
142
148
|
|
|
143
149
|
class IdentityTransitionSession {
|
package/native.cjs
CHANGED
|
@@ -77,8 +77,8 @@ function requireNative() {
|
|
|
77
77
|
try {
|
|
78
78
|
const binding = require('@agent-network-protocol/anp-identity-android-arm64')
|
|
79
79
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-android-arm64/package.json').version
|
|
80
|
-
if (bindingPackageVersion !== '0.2.
|
|
81
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
80
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
81
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
82
82
|
}
|
|
83
83
|
return binding
|
|
84
84
|
} catch (e) {
|
|
@@ -93,8 +93,8 @@ function requireNative() {
|
|
|
93
93
|
try {
|
|
94
94
|
const binding = require('@agent-network-protocol/anp-identity-android-arm-eabi')
|
|
95
95
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-android-arm-eabi/package.json').version
|
|
96
|
-
if (bindingPackageVersion !== '0.2.
|
|
97
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
96
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
97
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
98
98
|
}
|
|
99
99
|
return binding
|
|
100
100
|
} catch (e) {
|
|
@@ -114,8 +114,8 @@ function requireNative() {
|
|
|
114
114
|
try {
|
|
115
115
|
const binding = require('@agent-network-protocol/anp-identity-win32-x64-gnu')
|
|
116
116
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-win32-x64-gnu/package.json').version
|
|
117
|
-
if (bindingPackageVersion !== '0.2.
|
|
118
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
117
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
118
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
119
119
|
}
|
|
120
120
|
return binding
|
|
121
121
|
} catch (e) {
|
|
@@ -130,8 +130,8 @@ function requireNative() {
|
|
|
130
130
|
try {
|
|
131
131
|
const binding = require('@agent-network-protocol/anp-identity-win32-x64-msvc')
|
|
132
132
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-win32-x64-msvc/package.json').version
|
|
133
|
-
if (bindingPackageVersion !== '0.2.
|
|
134
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
133
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
134
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
135
135
|
}
|
|
136
136
|
return binding
|
|
137
137
|
} catch (e) {
|
|
@@ -147,8 +147,8 @@ function requireNative() {
|
|
|
147
147
|
try {
|
|
148
148
|
const binding = require('@agent-network-protocol/anp-identity-win32-ia32-msvc')
|
|
149
149
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-win32-ia32-msvc/package.json').version
|
|
150
|
-
if (bindingPackageVersion !== '0.2.
|
|
151
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
150
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
151
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
152
152
|
}
|
|
153
153
|
return binding
|
|
154
154
|
} catch (e) {
|
|
@@ -163,8 +163,8 @@ function requireNative() {
|
|
|
163
163
|
try {
|
|
164
164
|
const binding = require('@agent-network-protocol/anp-identity-win32-arm64-msvc')
|
|
165
165
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-win32-arm64-msvc/package.json').version
|
|
166
|
-
if (bindingPackageVersion !== '0.2.
|
|
167
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
166
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
167
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
168
168
|
}
|
|
169
169
|
return binding
|
|
170
170
|
} catch (e) {
|
|
@@ -182,8 +182,8 @@ function requireNative() {
|
|
|
182
182
|
try {
|
|
183
183
|
const binding = require('@agent-network-protocol/anp-identity-darwin-universal')
|
|
184
184
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-darwin-universal/package.json').version
|
|
185
|
-
if (bindingPackageVersion !== '0.2.
|
|
186
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
185
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
186
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
187
187
|
}
|
|
188
188
|
return binding
|
|
189
189
|
} catch (e) {
|
|
@@ -198,8 +198,8 @@ function requireNative() {
|
|
|
198
198
|
try {
|
|
199
199
|
const binding = require('@agent-network-protocol/anp-identity-darwin-x64')
|
|
200
200
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-darwin-x64/package.json').version
|
|
201
|
-
if (bindingPackageVersion !== '0.2.
|
|
202
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
201
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
202
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
203
203
|
}
|
|
204
204
|
return binding
|
|
205
205
|
} catch (e) {
|
|
@@ -214,8 +214,8 @@ function requireNative() {
|
|
|
214
214
|
try {
|
|
215
215
|
const binding = require('@agent-network-protocol/anp-identity-darwin-arm64')
|
|
216
216
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-darwin-arm64/package.json').version
|
|
217
|
-
if (bindingPackageVersion !== '0.2.
|
|
218
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
217
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
218
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
219
219
|
}
|
|
220
220
|
return binding
|
|
221
221
|
} catch (e) {
|
|
@@ -234,8 +234,8 @@ function requireNative() {
|
|
|
234
234
|
try {
|
|
235
235
|
const binding = require('@agent-network-protocol/anp-identity-freebsd-x64')
|
|
236
236
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-freebsd-x64/package.json').version
|
|
237
|
-
if (bindingPackageVersion !== '0.2.
|
|
238
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
237
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
238
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
239
239
|
}
|
|
240
240
|
return binding
|
|
241
241
|
} catch (e) {
|
|
@@ -250,8 +250,8 @@ function requireNative() {
|
|
|
250
250
|
try {
|
|
251
251
|
const binding = require('@agent-network-protocol/anp-identity-freebsd-arm64')
|
|
252
252
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-freebsd-arm64/package.json').version
|
|
253
|
-
if (bindingPackageVersion !== '0.2.
|
|
254
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
253
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
254
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
255
255
|
}
|
|
256
256
|
return binding
|
|
257
257
|
} catch (e) {
|
|
@@ -271,8 +271,8 @@ function requireNative() {
|
|
|
271
271
|
try {
|
|
272
272
|
const binding = require('@agent-network-protocol/anp-identity-linux-x64-musl')
|
|
273
273
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-linux-x64-musl/package.json').version
|
|
274
|
-
if (bindingPackageVersion !== '0.2.
|
|
275
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
274
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
275
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
276
276
|
}
|
|
277
277
|
return binding
|
|
278
278
|
} catch (e) {
|
|
@@ -287,8 +287,8 @@ function requireNative() {
|
|
|
287
287
|
try {
|
|
288
288
|
const binding = require('@agent-network-protocol/anp-identity-linux-x64-gnu')
|
|
289
289
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-linux-x64-gnu/package.json').version
|
|
290
|
-
if (bindingPackageVersion !== '0.2.
|
|
291
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
290
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
291
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
292
292
|
}
|
|
293
293
|
return binding
|
|
294
294
|
} catch (e) {
|
|
@@ -305,8 +305,8 @@ function requireNative() {
|
|
|
305
305
|
try {
|
|
306
306
|
const binding = require('@agent-network-protocol/anp-identity-linux-arm64-musl')
|
|
307
307
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-linux-arm64-musl/package.json').version
|
|
308
|
-
if (bindingPackageVersion !== '0.2.
|
|
309
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
308
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
309
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
310
310
|
}
|
|
311
311
|
return binding
|
|
312
312
|
} catch (e) {
|
|
@@ -321,8 +321,8 @@ function requireNative() {
|
|
|
321
321
|
try {
|
|
322
322
|
const binding = require('@agent-network-protocol/anp-identity-linux-arm64-gnu')
|
|
323
323
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-linux-arm64-gnu/package.json').version
|
|
324
|
-
if (bindingPackageVersion !== '0.2.
|
|
325
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
324
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
325
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
326
326
|
}
|
|
327
327
|
return binding
|
|
328
328
|
} catch (e) {
|
|
@@ -339,8 +339,8 @@ function requireNative() {
|
|
|
339
339
|
try {
|
|
340
340
|
const binding = require('@agent-network-protocol/anp-identity-linux-arm-musleabihf')
|
|
341
341
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-linux-arm-musleabihf/package.json').version
|
|
342
|
-
if (bindingPackageVersion !== '0.2.
|
|
343
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
342
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
343
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
344
344
|
}
|
|
345
345
|
return binding
|
|
346
346
|
} catch (e) {
|
|
@@ -355,8 +355,8 @@ function requireNative() {
|
|
|
355
355
|
try {
|
|
356
356
|
const binding = require('@agent-network-protocol/anp-identity-linux-arm-gnueabihf')
|
|
357
357
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-linux-arm-gnueabihf/package.json').version
|
|
358
|
-
if (bindingPackageVersion !== '0.2.
|
|
359
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
358
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
359
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
360
360
|
}
|
|
361
361
|
return binding
|
|
362
362
|
} catch (e) {
|
|
@@ -373,8 +373,8 @@ function requireNative() {
|
|
|
373
373
|
try {
|
|
374
374
|
const binding = require('@agent-network-protocol/anp-identity-linux-loong64-musl')
|
|
375
375
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-linux-loong64-musl/package.json').version
|
|
376
|
-
if (bindingPackageVersion !== '0.2.
|
|
377
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
376
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
377
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
378
378
|
}
|
|
379
379
|
return binding
|
|
380
380
|
} catch (e) {
|
|
@@ -389,8 +389,8 @@ function requireNative() {
|
|
|
389
389
|
try {
|
|
390
390
|
const binding = require('@agent-network-protocol/anp-identity-linux-loong64-gnu')
|
|
391
391
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-linux-loong64-gnu/package.json').version
|
|
392
|
-
if (bindingPackageVersion !== '0.2.
|
|
393
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
392
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
393
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
394
394
|
}
|
|
395
395
|
return binding
|
|
396
396
|
} catch (e) {
|
|
@@ -407,8 +407,8 @@ function requireNative() {
|
|
|
407
407
|
try {
|
|
408
408
|
const binding = require('@agent-network-protocol/anp-identity-linux-riscv64-musl')
|
|
409
409
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-linux-riscv64-musl/package.json').version
|
|
410
|
-
if (bindingPackageVersion !== '0.2.
|
|
411
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
410
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
411
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
412
412
|
}
|
|
413
413
|
return binding
|
|
414
414
|
} catch (e) {
|
|
@@ -423,8 +423,8 @@ function requireNative() {
|
|
|
423
423
|
try {
|
|
424
424
|
const binding = require('@agent-network-protocol/anp-identity-linux-riscv64-gnu')
|
|
425
425
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-linux-riscv64-gnu/package.json').version
|
|
426
|
-
if (bindingPackageVersion !== '0.2.
|
|
427
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
426
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
427
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
428
428
|
}
|
|
429
429
|
return binding
|
|
430
430
|
} catch (e) {
|
|
@@ -440,8 +440,8 @@ function requireNative() {
|
|
|
440
440
|
try {
|
|
441
441
|
const binding = require('@agent-network-protocol/anp-identity-linux-ppc64-gnu')
|
|
442
442
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-linux-ppc64-gnu/package.json').version
|
|
443
|
-
if (bindingPackageVersion !== '0.2.
|
|
444
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
443
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
444
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
445
445
|
}
|
|
446
446
|
return binding
|
|
447
447
|
} catch (e) {
|
|
@@ -456,8 +456,8 @@ function requireNative() {
|
|
|
456
456
|
try {
|
|
457
457
|
const binding = require('@agent-network-protocol/anp-identity-linux-s390x-gnu')
|
|
458
458
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-linux-s390x-gnu/package.json').version
|
|
459
|
-
if (bindingPackageVersion !== '0.2.
|
|
460
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
459
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
460
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
461
461
|
}
|
|
462
462
|
return binding
|
|
463
463
|
} catch (e) {
|
|
@@ -476,8 +476,8 @@ function requireNative() {
|
|
|
476
476
|
try {
|
|
477
477
|
const binding = require('@agent-network-protocol/anp-identity-openharmony-arm64')
|
|
478
478
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-openharmony-arm64/package.json').version
|
|
479
|
-
if (bindingPackageVersion !== '0.2.
|
|
480
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
479
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
480
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
481
481
|
}
|
|
482
482
|
return binding
|
|
483
483
|
} catch (e) {
|
|
@@ -492,8 +492,8 @@ function requireNative() {
|
|
|
492
492
|
try {
|
|
493
493
|
const binding = require('@agent-network-protocol/anp-identity-openharmony-x64')
|
|
494
494
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-openharmony-x64/package.json').version
|
|
495
|
-
if (bindingPackageVersion !== '0.2.
|
|
496
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
495
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
496
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
497
497
|
}
|
|
498
498
|
return binding
|
|
499
499
|
} catch (e) {
|
|
@@ -508,8 +508,8 @@ function requireNative() {
|
|
|
508
508
|
try {
|
|
509
509
|
const binding = require('@agent-network-protocol/anp-identity-openharmony-arm')
|
|
510
510
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-openharmony-arm/package.json').version
|
|
511
|
-
if (bindingPackageVersion !== '0.2.
|
|
512
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
511
|
+
if (bindingPackageVersion !== '0.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
512
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
513
513
|
}
|
|
514
514
|
return binding
|
|
515
515
|
} catch (e) {
|
|
@@ -648,8 +648,8 @@ if (!nativeBinding || forceWasi) {
|
|
|
648
648
|
if (!candidateFailed) {
|
|
649
649
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
650
650
|
const bindingPackageVersion = require('@agent-network-protocol/anp-identity-wasm32-wasi/package.json').version
|
|
651
|
-
if (bindingPackageVersion !== '0.2.
|
|
652
|
-
throw new Error(`WASI binding package version mismatch, expected 0.2.
|
|
651
|
+
if (bindingPackageVersion !== '0.2.2') {
|
|
652
|
+
throw new Error(`WASI binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
wasiBinding = require('@agent-network-protocol/anp-identity-wasm32-wasi')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-network-protocol/anp-identity",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Secure E1 DID identity custody and lifecycle management for ANP",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
]
|
|
54
54
|
},
|
|
55
55
|
"optionalDependencies": {
|
|
56
|
-
"@agent-network-protocol/anp-identity-darwin-arm64": "0.2.
|
|
57
|
-
"@agent-network-protocol/anp-identity-darwin-x64": "0.2.
|
|
58
|
-
"@agent-network-protocol/anp-identity-linux-arm64-gnu": "0.2.
|
|
59
|
-
"@agent-network-protocol/anp-identity-linux-x64-gnu": "0.2.
|
|
60
|
-
"@agent-network-protocol/anp-identity-win32-x64-msvc": "0.2.
|
|
56
|
+
"@agent-network-protocol/anp-identity-darwin-arm64": "0.2.3",
|
|
57
|
+
"@agent-network-protocol/anp-identity-darwin-x64": "0.2.3",
|
|
58
|
+
"@agent-network-protocol/anp-identity-linux-arm64-gnu": "0.2.3",
|
|
59
|
+
"@agent-network-protocol/anp-identity-linux-x64-gnu": "0.2.3",
|
|
60
|
+
"@agent-network-protocol/anp-identity-win32-x64-msvc": "0.2.3"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@napi-rs/cli": "3.8.6",
|
package/provenance.json
CHANGED
|
@@ -2,15 +2,22 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"package": {
|
|
4
4
|
"name": "@agent-network-protocol/anp-identity",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.3"
|
|
6
6
|
},
|
|
7
7
|
"target": "platform-independent-wrapper",
|
|
8
8
|
"source": {
|
|
9
9
|
"repository": "https://github.com/agent-network-protocol/anp-identity",
|
|
10
|
-
"commit": "
|
|
11
|
-
"committedAt": "2026-09-
|
|
10
|
+
"commit": "c12fecefb39389e2800dc363e5538de80448850b",
|
|
11
|
+
"committedAt": "2026-09-24T21:01:29+08:00",
|
|
12
12
|
"dirty": false
|
|
13
13
|
},
|
|
14
|
+
"dependencyResolution": {
|
|
15
|
+
"mode": "registry",
|
|
16
|
+
"anp": {
|
|
17
|
+
"version": "1.0.5",
|
|
18
|
+
"source": "registry+https://github.com/rust-lang/crates.io-index"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
14
21
|
"toolchain": {
|
|
15
22
|
"rustc": "rustc 1.88.0 (6b00bc388 2025-06-23)",
|
|
16
23
|
"node": "v22.19.0"
|
package/provider.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export interface PreparedHttpSignatureAttempt {
|
|
|
71
71
|
|
|
72
72
|
export interface IdentityHostStatus {
|
|
73
73
|
rootCapability: 'absent' | 'pending' | 'active'
|
|
74
|
-
rootKeyFingerprint: string
|
|
74
|
+
rootKeyFingerprint: string | null
|
|
75
75
|
checkpoint?: HostDocumentCheckpoint
|
|
76
76
|
}
|
|
77
77
|
|
|
@@ -238,7 +238,7 @@ export interface EnrollmentProposal {
|
|
|
238
238
|
enrollmentId: string
|
|
239
239
|
identity: IdentityReference
|
|
240
240
|
kind: EnrollmentProposalKind
|
|
241
|
-
rootKeyFingerprint: string
|
|
241
|
+
rootKeyFingerprint: string | null
|
|
242
242
|
checkpoint: HostDocumentCheckpoint
|
|
243
243
|
}
|
|
244
244
|
|
|
@@ -318,6 +318,10 @@ export interface ProviderLease {
|
|
|
318
318
|
reference: IdentityReference,
|
|
319
319
|
remote: VerifiedRemoteDocument,
|
|
320
320
|
): Promise<'activated' | 'updated' | 'unchanged' | 'revoked'>
|
|
321
|
+
adoptVerifiedSiblingDocument(
|
|
322
|
+
reference: IdentityReference,
|
|
323
|
+
remote: VerifiedRemoteDocument,
|
|
324
|
+
): Promise<'activated' | 'updated' | 'unchanged' | 'revoked'>
|
|
321
325
|
beginDeviceEnrollment(request: DeviceEnrollmentRequest): Promise<ProviderEnrollmentSession>
|
|
322
326
|
beginRequestSigningEnrollment(
|
|
323
327
|
request: RequestSigningEnrollmentRequest,
|
|
@@ -349,6 +353,7 @@ export interface ProviderDocumentChangeSession {
|
|
|
349
353
|
result: PublicationResult,
|
|
350
354
|
): Promise<DocumentChangeOutcome>
|
|
351
355
|
reconcile(observation: VerifiedRemoteDocument): Promise<DocumentChangeOutcome>
|
|
356
|
+
reconcileRejected(observation: VerifiedRemoteDocument): Promise<DocumentChangeOutcome>
|
|
352
357
|
}
|
|
353
358
|
|
|
354
359
|
export interface ProviderIdentityTransitionSession {
|
package/provider.js
CHANGED
|
@@ -165,6 +165,9 @@ class ProviderLease {
|
|
|
165
165
|
adoptVerifiedDocument(reference, remote) {
|
|
166
166
|
return call(this.#inner.adoptVerifiedDocument(reference, verifiedRemoteDocument(remote)))
|
|
167
167
|
}
|
|
168
|
+
adoptVerifiedSiblingDocument(reference, remote) {
|
|
169
|
+
return call(this.#inner.adoptVerifiedSiblingDocument(reference, verifiedRemoteDocument(remote)))
|
|
170
|
+
}
|
|
168
171
|
|
|
169
172
|
async beginDeviceEnrollment(request) {
|
|
170
173
|
return new ProviderEnrollmentSession(
|
|
@@ -267,6 +270,12 @@ class ProviderDocumentChangeSession {
|
|
|
267
270
|
await call(this.#inner.reconcile(verifiedRemoteDocument(observation))),
|
|
268
271
|
)
|
|
269
272
|
}
|
|
273
|
+
|
|
274
|
+
async reconcileRejected(observation) {
|
|
275
|
+
return documentChangeOutcome(
|
|
276
|
+
await call(this.#inner.reconcileRejected(verifiedRemoteDocument(observation))),
|
|
277
|
+
)
|
|
278
|
+
}
|
|
270
279
|
}
|
|
271
280
|
|
|
272
281
|
class ProviderIdentityTransitionSession {
|
package/sbom.cdx.json
CHANGED
|
@@ -6,43 +6,43 @@
|
|
|
6
6
|
"component": {
|
|
7
7
|
"type": "library",
|
|
8
8
|
"name": "@agent-network-protocol/anp-identity",
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.3"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"components": [
|
|
13
13
|
{
|
|
14
14
|
"type": "library",
|
|
15
15
|
"name": "@agent-network-protocol/anp-identity-darwin-arm64",
|
|
16
|
-
"version": "0.2.
|
|
17
|
-
"purl": "pkg:npm/%40agent-network-protocol%2Fanp-identity-darwin-arm64@0.2.
|
|
16
|
+
"version": "0.2.3",
|
|
17
|
+
"purl": "pkg:npm/%40agent-network-protocol%2Fanp-identity-darwin-arm64@0.2.3",
|
|
18
18
|
"scope": "optional"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"type": "library",
|
|
22
22
|
"name": "@agent-network-protocol/anp-identity-darwin-x64",
|
|
23
|
-
"version": "0.2.
|
|
24
|
-
"purl": "pkg:npm/%40agent-network-protocol%2Fanp-identity-darwin-x64@0.2.
|
|
23
|
+
"version": "0.2.3",
|
|
24
|
+
"purl": "pkg:npm/%40agent-network-protocol%2Fanp-identity-darwin-x64@0.2.3",
|
|
25
25
|
"scope": "optional"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"type": "library",
|
|
29
29
|
"name": "@agent-network-protocol/anp-identity-linux-arm64-gnu",
|
|
30
|
-
"version": "0.2.
|
|
31
|
-
"purl": "pkg:npm/%40agent-network-protocol%2Fanp-identity-linux-arm64-gnu@0.2.
|
|
30
|
+
"version": "0.2.3",
|
|
31
|
+
"purl": "pkg:npm/%40agent-network-protocol%2Fanp-identity-linux-arm64-gnu@0.2.3",
|
|
32
32
|
"scope": "optional"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"type": "library",
|
|
36
36
|
"name": "@agent-network-protocol/anp-identity-linux-x64-gnu",
|
|
37
|
-
"version": "0.2.
|
|
38
|
-
"purl": "pkg:npm/%40agent-network-protocol%2Fanp-identity-linux-x64-gnu@0.2.
|
|
37
|
+
"version": "0.2.3",
|
|
38
|
+
"purl": "pkg:npm/%40agent-network-protocol%2Fanp-identity-linux-x64-gnu@0.2.3",
|
|
39
39
|
"scope": "optional"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"type": "library",
|
|
43
43
|
"name": "@agent-network-protocol/anp-identity-win32-x64-msvc",
|
|
44
|
-
"version": "0.2.
|
|
45
|
-
"purl": "pkg:npm/%40agent-network-protocol%2Fanp-identity-win32-x64-msvc@0.2.
|
|
44
|
+
"version": "0.2.3",
|
|
45
|
+
"purl": "pkg:npm/%40agent-network-protocol%2Fanp-identity-win32-x64-msvc@0.2.3",
|
|
46
46
|
"scope": "optional"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
{
|
|
115
115
|
"type": "library",
|
|
116
116
|
"name": "anp-identity-node",
|
|
117
|
-
"version": "0.2.
|
|
117
|
+
"version": "0.2.3",
|
|
118
118
|
"licenses": [
|
|
119
119
|
{
|
|
120
120
|
"expression": "Apache-2.0"
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
{
|
|
125
125
|
"type": "library",
|
|
126
126
|
"name": "anp-identity",
|
|
127
|
-
"version": "0.2.
|
|
127
|
+
"version": "0.2.4",
|
|
128
128
|
"licenses": [
|
|
129
129
|
{
|
|
130
130
|
"expression": "Apache-2.0"
|
|
@@ -134,12 +134,13 @@
|
|
|
134
134
|
{
|
|
135
135
|
"type": "library",
|
|
136
136
|
"name": "anp",
|
|
137
|
-
"version": "1.0.
|
|
137
|
+
"version": "1.0.5",
|
|
138
138
|
"licenses": [
|
|
139
139
|
{
|
|
140
|
-
"expression": "
|
|
140
|
+
"expression": "Apache-2.0"
|
|
141
141
|
}
|
|
142
|
-
]
|
|
142
|
+
],
|
|
143
|
+
"purl": "pkg:cargo/anp@1.0.5"
|
|
143
144
|
},
|
|
144
145
|
{
|
|
145
146
|
"type": "library",
|