signafaide 0.0.0-stage → 0.3.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/README.md +270 -2
- package/dist/chunk-6UDL5LZL.js +2009 -0
- package/dist/chunk-DRRRZNIH.js +189 -0
- package/dist/chunk-P3GJDXSQ.js +3025 -0
- package/dist/cli.js +1190 -0
- package/dist/core-BTJGPYVW.d.cts +652 -0
- package/dist/core-BTJGPYVW.d.ts +652 -0
- package/dist/core.cjs +2711 -0
- package/dist/core.d.cts +1 -0
- package/dist/core.d.ts +1 -0
- package/dist/core.js +182 -0
- package/dist/http-BZI6VZM3.js +16 -0
- package/dist/index.cjs +5811 -0
- package/dist/index.d.cts +991 -0
- package/dist/index.d.ts +991 -0
- package/dist/index.js +256 -0
- package/package.json +84 -4
package/dist/core.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { e as AGENT_RE, f as ANCHOR_WINDOW_MS, A as AgentKeyEntry, B as BlockHeader, g as BlockRoots, h as CHECKS, i as Check, j as CheckId, C as Client, k as Coverage, l as DEFAULT_URL, m as DeclaredTool, n as Domain, o as DrandBeacon, p as DrandVerifier, E as Envelope, H as HEADER, J as JsonNumber, d as KeyDoc, q as KeySource, r as KeysRequired, K as Kind, M as MAX_DECLARED_NAME, s as MAX_NODES, t as MAX_PROOF_BYTES, u as MAX_ROUND, N as NOT_INDEPENDENT, P as PackFilter, v as PackOptions, R as Receipt, w as RecordFields, c as Report, b as SignafaideError, x as SignedHeadDoc, a as SignedRecord, S as SigningKey, y as Status, T as TOOLS, z as TOOL_PREFIX, F as TOOL_UNRECORDED_PREFIX, V as VERSION, G as agentName, I as assertPortableNumbers, O as auditPath, Q as b64url, U as b64urlDecode, W as blockAttestations, Y as canonicalBytes, Z as canonicalize, _ as checkContent, $ as checkHeader, a0 as checkRoundTime, a1 as clampTime, a2 as clientHeader, a3 as contentFromText, a4 as contentHash, a5 as countsText, a6 as coverage, a7 as coverageLines, a8 as declaredName, a9 as detectAgent, aa as draftErrors, ab as envelopeErrors, ac as exportStatement, ad as fetchJson, ae as hashJson, af as isLoopbackUrl, ag as keyEntryErrors, ah as keyId, ai as leafHash, aj as loadDrandVerifier, al as makeDraft, am as makeRecord, an as manifestEntry, ao as manifestErrors, ap as merkleRoot, aq as newSalt, ar as now, as as otsStatus, at as parseAgentKeys, au as parseHeadFile, av as parseJson, aw as parseOts, ax as parseServiceKeys, ay as receiptErrors, az as recordErrors, aA as recordHash, aB as recordsHash, aC as registration, aD as resultLine, aE as rootsFromVector, aF as scopeText, aG as serviceKeysHash, aH as sha256Hex, aI as signDraft, aJ as signedMessage, aK as target, aL as telemetryEnabled, aM as timestampHeights, aN as toolNote, aO as toolNoteName, aP as validProjectId, aQ as validTime, aR as verifyInclusion, aS as verifyLocalState, aT as verifyPack, aU as verifySig, aV as wireRecord, aW as withWallTime } from './core-BTJGPYVW.cjs';
|
package/dist/core.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { e as AGENT_RE, f as ANCHOR_WINDOW_MS, A as AgentKeyEntry, B as BlockHeader, g as BlockRoots, h as CHECKS, i as Check, j as CheckId, C as Client, k as Coverage, l as DEFAULT_URL, m as DeclaredTool, n as Domain, o as DrandBeacon, p as DrandVerifier, E as Envelope, H as HEADER, J as JsonNumber, d as KeyDoc, q as KeySource, r as KeysRequired, K as Kind, M as MAX_DECLARED_NAME, s as MAX_NODES, t as MAX_PROOF_BYTES, u as MAX_ROUND, N as NOT_INDEPENDENT, P as PackFilter, v as PackOptions, R as Receipt, w as RecordFields, c as Report, b as SignafaideError, x as SignedHeadDoc, a as SignedRecord, S as SigningKey, y as Status, T as TOOLS, z as TOOL_PREFIX, F as TOOL_UNRECORDED_PREFIX, V as VERSION, G as agentName, I as assertPortableNumbers, O as auditPath, Q as b64url, U as b64urlDecode, W as blockAttestations, Y as canonicalBytes, Z as canonicalize, _ as checkContent, $ as checkHeader, a0 as checkRoundTime, a1 as clampTime, a2 as clientHeader, a3 as contentFromText, a4 as contentHash, a5 as countsText, a6 as coverage, a7 as coverageLines, a8 as declaredName, a9 as detectAgent, aa as draftErrors, ab as envelopeErrors, ac as exportStatement, ad as fetchJson, ae as hashJson, af as isLoopbackUrl, ag as keyEntryErrors, ah as keyId, ai as leafHash, aj as loadDrandVerifier, al as makeDraft, am as makeRecord, an as manifestEntry, ao as manifestErrors, ap as merkleRoot, aq as newSalt, ar as now, as as otsStatus, at as parseAgentKeys, au as parseHeadFile, av as parseJson, aw as parseOts, ax as parseServiceKeys, ay as receiptErrors, az as recordErrors, aA as recordHash, aB as recordsHash, aC as registration, aD as resultLine, aE as rootsFromVector, aF as scopeText, aG as serviceKeysHash, aH as sha256Hex, aI as signDraft, aJ as signedMessage, aK as target, aL as telemetryEnabled, aM as timestampHeights, aN as toolNote, aO as toolNoteName, aP as validProjectId, aQ as validTime, aR as verifyInclusion, aS as verifyLocalState, aT as verifyPack, aU as verifySig, aV as wireRecord, aW as withWallTime } from './core-BTJGPYVW.js';
|
package/dist/core.js
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AGENT_RE,
|
|
3
|
+
ANCHOR_WINDOW_MS,
|
|
4
|
+
CHECKS,
|
|
5
|
+
JsonNumber,
|
|
6
|
+
KeysRequired,
|
|
7
|
+
MAX_DECLARED_NAME,
|
|
8
|
+
MAX_NODES,
|
|
9
|
+
MAX_PROOF_BYTES,
|
|
10
|
+
MAX_ROUND,
|
|
11
|
+
NOT_INDEPENDENT,
|
|
12
|
+
Report,
|
|
13
|
+
SigningKey,
|
|
14
|
+
TOOLS,
|
|
15
|
+
TOOL_PREFIX,
|
|
16
|
+
TOOL_UNRECORDED_PREFIX,
|
|
17
|
+
agentName,
|
|
18
|
+
assertPortableNumbers,
|
|
19
|
+
auditPath,
|
|
20
|
+
b64url,
|
|
21
|
+
b64urlDecode,
|
|
22
|
+
blockAttestations,
|
|
23
|
+
canonicalBytes,
|
|
24
|
+
canonicalize,
|
|
25
|
+
checkContent,
|
|
26
|
+
checkHeader,
|
|
27
|
+
checkRoundTime,
|
|
28
|
+
clampTime,
|
|
29
|
+
contentFromText,
|
|
30
|
+
contentHash,
|
|
31
|
+
countsText,
|
|
32
|
+
coverage,
|
|
33
|
+
coverageLines,
|
|
34
|
+
declaredName,
|
|
35
|
+
draftErrors,
|
|
36
|
+
envelopeErrors,
|
|
37
|
+
exportStatement,
|
|
38
|
+
hashJson,
|
|
39
|
+
isLoopbackUrl,
|
|
40
|
+
keyEntryErrors,
|
|
41
|
+
keyId,
|
|
42
|
+
leafHash,
|
|
43
|
+
loadDrandVerifier,
|
|
44
|
+
makeDraft,
|
|
45
|
+
makeRecord,
|
|
46
|
+
manifestEntry,
|
|
47
|
+
manifestErrors,
|
|
48
|
+
merkleRoot,
|
|
49
|
+
newSalt,
|
|
50
|
+
now,
|
|
51
|
+
otsStatus,
|
|
52
|
+
parseAgentKeys,
|
|
53
|
+
parseHeadFile,
|
|
54
|
+
parseJson,
|
|
55
|
+
parseOts,
|
|
56
|
+
parseServiceKeys,
|
|
57
|
+
receiptErrors,
|
|
58
|
+
recordErrors,
|
|
59
|
+
recordHash,
|
|
60
|
+
recordsHash,
|
|
61
|
+
registration,
|
|
62
|
+
resultLine,
|
|
63
|
+
rootsFromVector,
|
|
64
|
+
scopeText,
|
|
65
|
+
serviceKeysHash,
|
|
66
|
+
sha256Hex,
|
|
67
|
+
signDraft,
|
|
68
|
+
signedMessage,
|
|
69
|
+
target,
|
|
70
|
+
timestampHeights,
|
|
71
|
+
toolNote,
|
|
72
|
+
toolNoteName,
|
|
73
|
+
validProjectId,
|
|
74
|
+
validTime,
|
|
75
|
+
verifyInclusion,
|
|
76
|
+
verifyLocalState,
|
|
77
|
+
verifyPack,
|
|
78
|
+
verifySig,
|
|
79
|
+
wireRecord,
|
|
80
|
+
withWallTime
|
|
81
|
+
} from "./chunk-6UDL5LZL.js";
|
|
82
|
+
import {
|
|
83
|
+
Client,
|
|
84
|
+
DEFAULT_URL,
|
|
85
|
+
HEADER,
|
|
86
|
+
SignafaideError,
|
|
87
|
+
VERSION,
|
|
88
|
+
clientHeader,
|
|
89
|
+
detectAgent,
|
|
90
|
+
fetchJson,
|
|
91
|
+
telemetryEnabled
|
|
92
|
+
} from "./chunk-DRRRZNIH.js";
|
|
93
|
+
export {
|
|
94
|
+
AGENT_RE,
|
|
95
|
+
ANCHOR_WINDOW_MS,
|
|
96
|
+
CHECKS,
|
|
97
|
+
Client,
|
|
98
|
+
DEFAULT_URL,
|
|
99
|
+
HEADER,
|
|
100
|
+
JsonNumber,
|
|
101
|
+
KeysRequired,
|
|
102
|
+
MAX_DECLARED_NAME,
|
|
103
|
+
MAX_NODES,
|
|
104
|
+
MAX_PROOF_BYTES,
|
|
105
|
+
MAX_ROUND,
|
|
106
|
+
NOT_INDEPENDENT,
|
|
107
|
+
Report,
|
|
108
|
+
SignafaideError,
|
|
109
|
+
SigningKey,
|
|
110
|
+
TOOLS,
|
|
111
|
+
TOOL_PREFIX,
|
|
112
|
+
TOOL_UNRECORDED_PREFIX,
|
|
113
|
+
VERSION,
|
|
114
|
+
agentName,
|
|
115
|
+
assertPortableNumbers,
|
|
116
|
+
auditPath,
|
|
117
|
+
b64url,
|
|
118
|
+
b64urlDecode,
|
|
119
|
+
blockAttestations,
|
|
120
|
+
canonicalBytes,
|
|
121
|
+
canonicalize,
|
|
122
|
+
checkContent,
|
|
123
|
+
checkHeader,
|
|
124
|
+
checkRoundTime,
|
|
125
|
+
clampTime,
|
|
126
|
+
clientHeader,
|
|
127
|
+
contentFromText,
|
|
128
|
+
contentHash,
|
|
129
|
+
countsText,
|
|
130
|
+
coverage,
|
|
131
|
+
coverageLines,
|
|
132
|
+
declaredName,
|
|
133
|
+
detectAgent,
|
|
134
|
+
draftErrors,
|
|
135
|
+
envelopeErrors,
|
|
136
|
+
exportStatement,
|
|
137
|
+
fetchJson,
|
|
138
|
+
hashJson,
|
|
139
|
+
isLoopbackUrl,
|
|
140
|
+
keyEntryErrors,
|
|
141
|
+
keyId,
|
|
142
|
+
leafHash,
|
|
143
|
+
loadDrandVerifier,
|
|
144
|
+
makeDraft,
|
|
145
|
+
makeRecord,
|
|
146
|
+
manifestEntry,
|
|
147
|
+
manifestErrors,
|
|
148
|
+
merkleRoot,
|
|
149
|
+
newSalt,
|
|
150
|
+
now,
|
|
151
|
+
otsStatus,
|
|
152
|
+
parseAgentKeys,
|
|
153
|
+
parseHeadFile,
|
|
154
|
+
parseJson,
|
|
155
|
+
parseOts,
|
|
156
|
+
parseServiceKeys,
|
|
157
|
+
receiptErrors,
|
|
158
|
+
recordErrors,
|
|
159
|
+
recordHash,
|
|
160
|
+
recordsHash,
|
|
161
|
+
registration,
|
|
162
|
+
resultLine,
|
|
163
|
+
rootsFromVector,
|
|
164
|
+
scopeText,
|
|
165
|
+
serviceKeysHash,
|
|
166
|
+
sha256Hex,
|
|
167
|
+
signDraft,
|
|
168
|
+
signedMessage,
|
|
169
|
+
target,
|
|
170
|
+
telemetryEnabled,
|
|
171
|
+
timestampHeights,
|
|
172
|
+
toolNote,
|
|
173
|
+
toolNoteName,
|
|
174
|
+
validProjectId,
|
|
175
|
+
validTime,
|
|
176
|
+
verifyInclusion,
|
|
177
|
+
verifyLocalState,
|
|
178
|
+
verifyPack,
|
|
179
|
+
verifySig,
|
|
180
|
+
wireRecord,
|
|
181
|
+
withWallTime
|
|
182
|
+
};
|