@oneaddress/partner-sdk 2.5.0 → 2.6.0
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/CHANGELOG.md +28 -0
- package/README.md +39 -0
- package/dist/{chunk-ZY2K54LD.mjs → chunk-QAOGKPD3.mjs} +77 -19
- package/dist/{chunk-DIUGEFIK.mjs → chunk-XPQERNNN.mjs} +261 -30
- package/dist/edge.js +148 -70
- package/dist/edge.mjs +2 -2
- package/dist/index.d.mts +192 -1
- package/dist/index.d.ts +192 -1
- package/dist/index.js +378 -79
- package/dist/index.mjs +6 -2
- package/dist/{src-RBLFVBGY.mjs → src-BPES2DKY.mjs} +13 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
_resetOnceWarningsForTests,
|
|
6
6
|
buildSignedTestWebhook,
|
|
7
7
|
canonicalD5LoaForm,
|
|
8
|
+
checkRegistryHead,
|
|
8
9
|
compareAddresses,
|
|
9
10
|
confirmUpdate,
|
|
10
11
|
createOneAddressHandler,
|
|
@@ -20,6 +21,7 @@ import {
|
|
|
20
21
|
fromOutboxTimestamp,
|
|
21
22
|
isEmailLike,
|
|
22
23
|
namePoolMatches,
|
|
24
|
+
parsePinnedRegistryRoots,
|
|
23
25
|
readAddressParts,
|
|
24
26
|
sendVerifyResult,
|
|
25
27
|
toExpressHandler,
|
|
@@ -31,13 +33,13 @@ import {
|
|
|
31
33
|
verifyLOA,
|
|
32
34
|
verifySignature,
|
|
33
35
|
verifyWithGrace
|
|
34
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-XPQERNNN.mjs";
|
|
35
37
|
import {
|
|
36
38
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
37
39
|
computeBlindIndex,
|
|
38
40
|
isFreshTimestamp,
|
|
39
41
|
normalizeForBlindIndex
|
|
40
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-QAOGKPD3.mjs";
|
|
41
43
|
export {
|
|
42
44
|
CURRENT_VERSION,
|
|
43
45
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
@@ -46,6 +48,7 @@ export {
|
|
|
46
48
|
_resetOnceWarningsForTests,
|
|
47
49
|
buildSignedTestWebhook,
|
|
48
50
|
canonicalD5LoaForm,
|
|
51
|
+
checkRegistryHead,
|
|
49
52
|
compareAddresses,
|
|
50
53
|
computeBlindIndex,
|
|
51
54
|
confirmUpdate,
|
|
@@ -65,6 +68,7 @@ export {
|
|
|
65
68
|
isFreshTimestamp,
|
|
66
69
|
namePoolMatches,
|
|
67
70
|
normalizeForBlindIndex,
|
|
71
|
+
parsePinnedRegistryRoots,
|
|
68
72
|
readAddressParts,
|
|
69
73
|
sendVerifyResult,
|
|
70
74
|
toExpressHandler,
|
|
@@ -7,10 +7,12 @@ import {
|
|
|
7
7
|
PARTNER_KEY_ATTESTATION_ALG,
|
|
8
8
|
PARTNER_KEY_ATTESTATION_V1,
|
|
9
9
|
PARTNER_KEY_REFUSED_MESSAGE,
|
|
10
|
+
PINNED_REGISTRY_ROOTS,
|
|
10
11
|
REGISTRY_HEAD_ALG,
|
|
11
12
|
REGISTRY_HEAD_V1,
|
|
12
13
|
REGISTRY_HEAD_V2,
|
|
13
14
|
SENDER_HELD_KEY_ALGORITHM,
|
|
15
|
+
__setPinnedRegistryRootsForTests,
|
|
14
16
|
blockedPublicKeyReason,
|
|
15
17
|
buildPartnerKeyAttestation,
|
|
16
18
|
buildRegistryHeadStatement,
|
|
@@ -44,14 +46,18 @@ import {
|
|
|
44
46
|
normalizeForBlindIndex,
|
|
45
47
|
openSealedWithSenderHeldKey,
|
|
46
48
|
partnerKeyFingerprint,
|
|
49
|
+
pinnedRegistryRoots,
|
|
50
|
+
rootIsPinned,
|
|
47
51
|
rootKeyIdFromSpki,
|
|
48
52
|
rootKeyIdFromSpkiB64,
|
|
49
53
|
signWebhookPayload,
|
|
54
|
+
spkiSha256HexFromB64,
|
|
55
|
+
unpinnedRootIds,
|
|
50
56
|
verifyPartnerKeyAttestation,
|
|
51
57
|
verifyPartnerKeyAttestationWithRoots,
|
|
52
58
|
verifyRegistryHead,
|
|
53
59
|
verifyWebhookSignature
|
|
54
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-QAOGKPD3.mjs";
|
|
55
61
|
export {
|
|
56
62
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
57
63
|
ENDPOINT_FAILURE_THRESHOLD,
|
|
@@ -61,10 +67,12 @@ export {
|
|
|
61
67
|
PARTNER_KEY_ATTESTATION_ALG,
|
|
62
68
|
PARTNER_KEY_ATTESTATION_V1,
|
|
63
69
|
PARTNER_KEY_REFUSED_MESSAGE,
|
|
70
|
+
PINNED_REGISTRY_ROOTS,
|
|
64
71
|
REGISTRY_HEAD_ALG,
|
|
65
72
|
REGISTRY_HEAD_V1,
|
|
66
73
|
REGISTRY_HEAD_V2,
|
|
67
74
|
SENDER_HELD_KEY_ALGORITHM,
|
|
75
|
+
__setPinnedRegistryRootsForTests,
|
|
68
76
|
blockedPublicKeyReason,
|
|
69
77
|
buildPartnerKeyAttestation,
|
|
70
78
|
buildRegistryHeadStatement,
|
|
@@ -98,9 +106,13 @@ export {
|
|
|
98
106
|
normalizeForBlindIndex,
|
|
99
107
|
openSealedWithSenderHeldKey,
|
|
100
108
|
partnerKeyFingerprint,
|
|
109
|
+
pinnedRegistryRoots,
|
|
110
|
+
rootIsPinned,
|
|
101
111
|
rootKeyIdFromSpki,
|
|
102
112
|
rootKeyIdFromSpkiB64,
|
|
103
113
|
signWebhookPayload,
|
|
114
|
+
spkiSha256HexFromB64,
|
|
115
|
+
unpinnedRootIds,
|
|
104
116
|
verifyPartnerKeyAttestation,
|
|
105
117
|
verifyPartnerKeyAttestationWithRoots,
|
|
106
118
|
verifyRegistryHead,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneaddress/partner-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "Official OneAddress partner integration SDK — webhook verification, address decryption (legacy + D5 session-envelope), LOA validation",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|