@ternent/ledger 0.1.7 → 0.2.0-alpha.1

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.
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
package/dist/ledger.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import type { CreateLedgerConfig, CreateLedgerParams, LedgerInstance, LedgerProjector, LedgerStorageAdapter } from "./types.js";
2
- export declare function createLedger<P>(config: CreateLedgerConfig<P>): Promise<LedgerInstance<P>>;
3
- export type { CreateLedgerConfig, CreateLedgerParams, LedgerProjector, LedgerStorageAdapter };
4
- //# sourceMappingURL=ledger.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ledger.d.ts","sourceRoot":"","sources":["ledger.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAYlB,cAAc,EAGd,eAAe,EAOf,oBAAoB,EAKrB,MAAM,YAAY,CAAC;AA8jBpB,wBAAsB,YAAY,CAAC,CAAC,EAClC,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAC5B,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAgmB5B;AAED,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACrB,CAAC"}
@@ -1,27 +0,0 @@
1
- declare module "@ternent/seal-cli" {
2
- export function createSealHash(
3
- bytes: Uint8Array | ArrayBuffer
4
- ): Promise<`sha256:${string}`>;
5
-
6
- export function createSealProof(input: {
7
- createdAt?: string;
8
- signer: { identity: unknown };
9
- subject: {
10
- kind: "file" | "manifest" | "artifact";
11
- path: string;
12
- hash: `sha256:${string}`;
13
- };
14
- }): Promise<unknown>;
15
-
16
- export function verifySealProofAgainstBytes(
17
- proof: unknown,
18
- bytes: Uint8Array | ArrayBuffer
19
- ): Promise<{
20
- valid: boolean;
21
- hashMatch: boolean;
22
- signatureValid: boolean;
23
- keyId: string;
24
- algorithm: string;
25
- subjectHash: `sha256:${string}`;
26
- }>;
27
- }
package/dist/types.d.ts DELETED
@@ -1,262 +0,0 @@
1
- import type { SerializedIdentity } from "@ternent/identity";
2
- export type SealProof = {
3
- version: string;
4
- type: "seal-proof";
5
- algorithm: string;
6
- createdAt: string;
7
- subject: {
8
- kind: "file" | "manifest" | "artifact";
9
- path: string;
10
- hash: `sha256:${string}`;
11
- };
12
- signer: {
13
- publicKey: string;
14
- keyId: string;
15
- };
16
- signature: string;
17
- };
18
- export type SealSigner = {
19
- identity: SerializedIdentity;
20
- };
21
- export type LedgerDecryptor = {
22
- identity: SerializedIdentity;
23
- };
24
- export type LedgerRecipientResolver = (recipients: string[]) => Promise<string[]> | string[];
25
- export type LedgerIdentityContext = {
26
- signer: SealSigner;
27
- authorResolver: () => Promise<string> | string;
28
- recipientResolver?: LedgerRecipientResolver;
29
- decryptor?: LedgerDecryptor;
30
- };
31
- export type LedgerPlainPayloadRecord = {
32
- type: "plain";
33
- data: unknown;
34
- };
35
- export type LedgerEncryptedPayloadRecord = {
36
- type: "encrypted";
37
- scheme: "age";
38
- mode: "recipients";
39
- encoding: "armor" | "binary";
40
- data: string;
41
- payloadHash: `sha256:${string}` | string;
42
- };
43
- export type LedgerPayloadRecord = LedgerPlainPayloadRecord | LedgerEncryptedPayloadRecord;
44
- export type LedgerEntryRecord = {
45
- entryId: string;
46
- kind: string;
47
- authoredAt: string;
48
- author: string;
49
- meta: Record<string, unknown> | null;
50
- payload: LedgerPayloadRecord;
51
- seal: SealProof;
52
- };
53
- export type LedgerCommitRecord = {
54
- commitId: string;
55
- parentCommitId: string | null;
56
- committedAt: string;
57
- metadata: Record<string, unknown> | null;
58
- entryIds: string[];
59
- seal: SealProof;
60
- };
61
- export type LedgerUnsignedCommitRecord = Omit<LedgerCommitRecord, "commitId" | "seal">;
62
- export type LedgerContainer = {
63
- format: "concord-ledger";
64
- version: "1";
65
- commits: Record<string, LedgerCommitRecord>;
66
- entries: Record<string, LedgerEntryRecord>;
67
- head: string;
68
- };
69
- export type LedgerVerificationSnapshot = {
70
- valid: boolean;
71
- checkedAt: string;
72
- };
73
- export type LedgerState<P> = {
74
- container: LedgerContainer | null;
75
- staged: LedgerEntryRecord[];
76
- projection: P;
77
- verification: LedgerVerificationSnapshot | null;
78
- };
79
- export type LedgerProtectionInput = {
80
- type: "none";
81
- } | {
82
- type: "recipients";
83
- recipients: string[];
84
- encoding?: "armor" | "binary";
85
- };
86
- export type LedgerAppendInput = {
87
- kind: string;
88
- payload?: unknown;
89
- meta?: Record<string, unknown>;
90
- protection?: LedgerProtectionInput;
91
- };
92
- export type LedgerAppendResult = {
93
- entry: LedgerEntryRecord;
94
- stagedCount: number;
95
- };
96
- export type LedgerCommitInput = {
97
- metadata?: Record<string, unknown>;
98
- };
99
- export type LedgerCommitResult = {
100
- commit: LedgerCommitRecord;
101
- committedEntries: LedgerEntryRecord[];
102
- committedEntryIds: string[];
103
- };
104
- export type LedgerReplayOptions = {
105
- fromEntryId?: string;
106
- toEntryId?: string;
107
- verify?: boolean;
108
- decrypt?: boolean;
109
- };
110
- export type LedgerVerifyOptions = {
111
- includeProofs?: boolean;
112
- includePayloadHashes?: boolean;
113
- };
114
- export type LedgerReplayEntry = {
115
- entryId: string;
116
- kind: string;
117
- author: string;
118
- authoredAt: string;
119
- meta: Record<string, unknown> | null;
120
- payload: {
121
- type: "plain";
122
- data: unknown;
123
- };
124
- verified: true;
125
- } | {
126
- entryId: string;
127
- kind: string;
128
- author: string;
129
- authoredAt: string;
130
- meta: Record<string, unknown> | null;
131
- payload: {
132
- type: "encrypted";
133
- scheme: "age";
134
- mode: "recipients";
135
- encoding: "armor" | "binary";
136
- data: string;
137
- };
138
- verified: true;
139
- decrypted: false;
140
- } | {
141
- entryId: string;
142
- kind: string;
143
- author: string;
144
- authoredAt: string;
145
- meta: Record<string, unknown> | null;
146
- payload: {
147
- type: "decrypted";
148
- original: "encrypted";
149
- data: unknown;
150
- };
151
- verified: true;
152
- decrypted: true;
153
- };
154
- export type LedgerProjector<P> = (projection: P, entry: LedgerReplayEntry) => P;
155
- export type LedgerVerificationResult = {
156
- valid: boolean;
157
- committedHistoryValid: boolean;
158
- commitChainValid: boolean;
159
- commitProofsValid: boolean;
160
- entriesValid: boolean;
161
- entryProofsValid: boolean;
162
- payloadHashesValid: boolean;
163
- proofsValid: boolean;
164
- invalidCommitIds: string[];
165
- invalidEntryIds: string[];
166
- };
167
- export type LedgerPersistenceSnapshot = {
168
- container: LedgerContainer | null;
169
- staged: LedgerEntryRecord[];
170
- };
171
- export type LedgerStorageAdapter = {
172
- name: string;
173
- load(): Promise<LedgerPersistenceSnapshot | null>;
174
- save(snapshot: LedgerPersistenceSnapshot): Promise<void>;
175
- clear?(): Promise<void>;
176
- };
177
- export type LedgerReplayPolicy = {
178
- verify?: boolean;
179
- decrypt?: boolean;
180
- };
181
- export type LedgerProtocolContract = {
182
- canonicalizePayload: (value: unknown) => string;
183
- getEntrySubjectBytes: (entry: Omit<LedgerEntryRecord, "entryId" | "seal">) => Uint8Array;
184
- getCommitSubjectBytes: (commit: LedgerUnsignedCommitRecord) => Uint8Array;
185
- deriveEntryId: (entry: LedgerEntryRecord) => Promise<string>;
186
- deriveCommitId: (commit: LedgerUnsignedCommitRecord) => Promise<string>;
187
- getCommitChain: (container: LedgerContainer) => string[];
188
- validateContainer: (container: LedgerContainer) => {
189
- ok: boolean;
190
- errors: string[];
191
- };
192
- };
193
- export type LedgerSealContract = {
194
- createEntryProof: (input: {
195
- entry: Omit<LedgerEntryRecord, "entryId" | "seal">;
196
- subjectBytes: Uint8Array;
197
- signer: SealSigner;
198
- }) => Promise<SealProof>;
199
- verifyEntryProof: (input: {
200
- entry: LedgerEntryRecord;
201
- subjectBytes: Uint8Array;
202
- proof: SealProof;
203
- }) => Promise<boolean>;
204
- createCommitProof: (input: {
205
- commit: LedgerUnsignedCommitRecord;
206
- commitId: string;
207
- subjectBytes: Uint8Array;
208
- signer: SealSigner;
209
- }) => Promise<SealProof>;
210
- verifyCommitProof: (input: {
211
- commit: LedgerCommitRecord;
212
- subjectBytes: Uint8Array;
213
- proof: SealProof;
214
- }) => Promise<boolean>;
215
- };
216
- export type LedgerArmourContract = {
217
- encrypt: (input: {
218
- recipients: string[];
219
- data: Uint8Array;
220
- encoding: "armor" | "binary";
221
- }) => Promise<{
222
- data: string;
223
- payloadHash: `sha256:${string}` | string;
224
- }>;
225
- decrypt: (input: {
226
- payload: LedgerEncryptedPayloadRecord;
227
- decryptor: LedgerDecryptor;
228
- }) => Promise<unknown>;
229
- };
230
- export type CreateLedgerParams = {
231
- metadata?: Record<string, unknown>;
232
- };
233
- export type CreateLedgerConfig<P> = {
234
- identity: LedgerIdentityContext;
235
- initialProjection: P;
236
- projector: LedgerProjector<P>;
237
- storage?: LedgerStorageAdapter;
238
- protocol?: LedgerProtocolContract;
239
- seal?: LedgerSealContract;
240
- armour?: LedgerArmourContract;
241
- now?: () => string;
242
- autoCommit?: boolean;
243
- replayPolicy?: LedgerReplayPolicy;
244
- };
245
- export type LedgerInstance<P> = {
246
- create(params?: CreateLedgerParams): Promise<void>;
247
- load(container: LedgerContainer): Promise<void>;
248
- loadFromStorage(): Promise<boolean>;
249
- append(input: LedgerAppendInput): Promise<LedgerAppendResult>;
250
- appendMany(inputs: LedgerAppendInput[]): Promise<LedgerAppendResult[]>;
251
- commit(input?: LedgerCommitInput): Promise<LedgerCommitResult>;
252
- replay(options?: LedgerReplayOptions): Promise<P>;
253
- recompute(): Promise<P>;
254
- verify(options?: LedgerVerifyOptions): Promise<LedgerVerificationResult>;
255
- export(): Promise<LedgerContainer>;
256
- import(container: LedgerContainer): Promise<void>;
257
- getState(): Readonly<LedgerState<P>>;
258
- subscribe(listener: (state: Readonly<LedgerState<P>>) => void): () => void;
259
- clearStaged(): Promise<void>;
260
- destroy(): Promise<void>;
261
- };
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