@calimero-network/mero-js 33.2.0 → 33.3.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.
- package/README.md +1 -1
- package/dist/client/approvals.d.ts +102 -2
- package/dist/client/approvals.js +21 -0
- package/dist/client/calimero-client.d.ts +36 -1
- package/dist/client/calimero-client.js +124 -3
- package/dist/client/files.d.ts +30 -0
- package/dist/client/files.js +128 -0
- package/dist/client/index.d.ts +4 -2
- package/dist/client/index.js +2 -1
- package/dist/index.browser.mjs +4 -4
- package/dist/index.browser.mjs.map +4 -4
- package/dist/index.cjs +764 -22
- package/dist/index.cjs.map +4 -4
- package/dist/index.mjs +766 -22
- package/dist/index.mjs.map +4 -4
- package/dist/recovery/backup-files.d.ts +5 -3
- package/dist/recovery/backup-files.js +12 -5
- package/dist/sealed/file.d.ts +46 -0
- package/dist/sealed/file.js +131 -0
- package/dist/sealed/fixtures/sealed-file-multi-segment-vectors.d.ts +41 -0
- package/dist/sealed/fixtures/sealed-file-multi-segment-vectors.js +63 -0
- package/dist/sealed/fixtures/sealed-file-vectors.d.ts +60 -0
- package/dist/sealed/fixtures/sealed-file-vectors.js +87 -0
- package/package.json +2 -1
|
@@ -112,10 +112,12 @@ export declare function holderRecoveryBody(holder: BackupHolder, files: ListedRe
|
|
|
112
112
|
/** The nonce a node's recovery attestation binds (core's `recovery::attestation_nonce`), hex. */
|
|
113
113
|
export declare function recoveryAttestationNonce(cluster: string, node: number): Promise<string>;
|
|
114
114
|
/**
|
|
115
|
-
* What a receipt-key quote binds after its nonce (core's `receipt_key_binding
|
|
116
|
-
* hex: the key
|
|
115
|
+
* What a receipt-key quote binds after its nonce (core's `receipt_key_binding`,
|
|
116
|
+
* `receipt-key.v3`), hex: the key, the cluster's governance as the node
|
|
117
|
+
* serialized it, and the cluster (u32-BE length-prefixed) and node id (u64 BE),
|
|
118
|
+
* so one node's quote never stands for another node's or another cluster's.
|
|
117
119
|
*/
|
|
118
|
-
export declare function receiptKeyBinding(receiptKey: Uint8Array, governance: unknown): Promise<string>;
|
|
120
|
+
export declare function receiptKeyBinding(receiptKey: Uint8Array, governance: unknown, cluster: string, node: number): Promise<string>;
|
|
119
121
|
/**
|
|
120
122
|
* Check that the key that signed `header` is a node's receipt key, attested
|
|
121
123
|
* (`purpose=receipts`) by a quote `verifyQuote` accepts: attested hardware
|
|
@@ -164,12 +164,19 @@ export async function recoveryAttestationNonce(cluster, node) {
|
|
|
164
164
|
return hex(await sha256(concat(utf8('calimero.recovery-backup.attest.v1\0'), len, name, id)));
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
|
-
* What a receipt-key quote binds after its nonce (core's `receipt_key_binding
|
|
168
|
-
* hex: the key
|
|
167
|
+
* What a receipt-key quote binds after its nonce (core's `receipt_key_binding`,
|
|
168
|
+
* `receipt-key.v3`), hex: the key, the cluster's governance as the node
|
|
169
|
+
* serialized it, and the cluster (u32-BE length-prefixed) and node id (u64 BE),
|
|
170
|
+
* so one node's quote never stands for another node's or another cluster's.
|
|
169
171
|
*/
|
|
170
|
-
export async function receiptKeyBinding(receiptKey, governance) {
|
|
172
|
+
export async function receiptKeyBinding(receiptKey, governance, cluster, node) {
|
|
171
173
|
const g = await sha256(utf8(JSON.stringify(governance)));
|
|
172
|
-
|
|
174
|
+
const name = utf8(cluster);
|
|
175
|
+
const len = new Uint8Array(4);
|
|
176
|
+
new DataView(len.buffer).setUint32(0, name.length, false);
|
|
177
|
+
const id = new Uint8Array(8);
|
|
178
|
+
new DataView(id.buffer).setBigUint64(0, BigInt(node), false);
|
|
179
|
+
return hex(await sha256(concat(utf8('calimero.tee-attest.receipt-key.v3'), receiptKey, g, len, name, id)));
|
|
173
180
|
}
|
|
174
181
|
/**
|
|
175
182
|
* Check that the key that signed `header` is a node's receipt key, attested
|
|
@@ -189,7 +196,7 @@ export async function verifyRecoveryAttestation(header, verifyQuote) {
|
|
|
189
196
|
const nonce = await recoveryAttestationNonce(header.cluster, header.node);
|
|
190
197
|
if (doc.nonce !== nonce)
|
|
191
198
|
throw new Error('the attestation is not over the recovery nonce');
|
|
192
|
-
const reportDataSuffix = await receiptKeyBinding(fromHex(header.signingKey, 'signing key', 32), doc.governance);
|
|
199
|
+
const reportDataSuffix = await receiptKeyBinding(fromHex(header.signingKey, 'signing key', 32), doc.governance, header.cluster, header.node);
|
|
193
200
|
const ok = await verifyQuote({ quoteB64: doc.quote, nonce, reportDataSuffix });
|
|
194
201
|
if (!ok)
|
|
195
202
|
throw new Error('the quote was not accepted');
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Opening a sealed file, byte for byte as core's `calimero-sealed` crate
|
|
3
|
+
* (`file.rs`, `wrap.rs`) writes it: 64 KiB AES-256-GCM STREAM chunks under a
|
|
4
|
+
* data key, cut into segments, and that key wrapped to an X25519 key the
|
|
5
|
+
* requester made for one export.
|
|
6
|
+
*/
|
|
7
|
+
import { type X25519KeyPair } from './noise.js';
|
|
8
|
+
/** Stored bytes of every segment but the last: 256 whole sealed chunks. */
|
|
9
|
+
export declare const SEGMENT_BYTES: number;
|
|
10
|
+
/** Why an export was refused locally. A node's own refusal stays the transport's typed error. */
|
|
11
|
+
export type ExportErrorCode = 'BAD_ANSWER' | 'NOT_THE_FILE' | 'TAMPERED' | 'TOO_LARGE' | 'ABORTED';
|
|
12
|
+
/** An export that failed a check here, never one the node refused; messages carry no plaintext or keys. */
|
|
13
|
+
export declare class ExportError extends Error {
|
|
14
|
+
readonly code: ExportErrorCode;
|
|
15
|
+
constructor(code: ExportErrorCode, message: string);
|
|
16
|
+
}
|
|
17
|
+
/** The file id: SHA-256 over the domain, the segment count (u32 big-endian) and the ordered segment hashes. */
|
|
18
|
+
export declare function fileId(segments: Uint8Array[]): Promise<Uint8Array>;
|
|
19
|
+
/** What an export wrap is bound to: the app and the file (hex id). */
|
|
20
|
+
export interface ExportWrap {
|
|
21
|
+
appId: string;
|
|
22
|
+
fileId: string;
|
|
23
|
+
}
|
|
24
|
+
/** Open the data key `wrapped` (`nonce || AES-256-GCM`) that the node wrapped to `recipient` for `wrap`. */
|
|
25
|
+
export declare function unwrapExport(recipient: X25519KeyPair, ephemeral: Uint8Array, wrap: ExportWrap, wrapped: Uint8Array): Promise<Uint8Array>;
|
|
26
|
+
/**
|
|
27
|
+
* Joins a file's segments in order, each checked against the list before it is
|
|
28
|
+
* opened; holds at most one segment and one chunk. Output is authentic but may
|
|
29
|
+
* be a prefix of the file until {@link finishExpecting} returns.
|
|
30
|
+
*/
|
|
31
|
+
export declare class SegmentReader {
|
|
32
|
+
private readonly key;
|
|
33
|
+
private readonly segments;
|
|
34
|
+
private pending;
|
|
35
|
+
private index;
|
|
36
|
+
private next;
|
|
37
|
+
private size;
|
|
38
|
+
private readonly hash;
|
|
39
|
+
private constructor();
|
|
40
|
+
static create(dataKey: Uint8Array, segments: Uint8Array[]): Promise<SegmentReader>;
|
|
41
|
+
/** Take the next segment; `emit` gets the plaintext of every chunk it completes. */
|
|
42
|
+
push(segment: Uint8Array, emit: (plaintext: Uint8Array) => Promise<void> | void): Promise<void>;
|
|
43
|
+
/** Open the last chunk and check the whole plaintext's size and SHA-256: GCM does not commit to its key. */
|
|
44
|
+
finishExpecting(size: number, sha256Hex: string): Promise<Uint8Array>;
|
|
45
|
+
private open;
|
|
46
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Opening a sealed file, byte for byte as core's `calimero-sealed` crate
|
|
3
|
+
* (`file.rs`, `wrap.rs`) writes it: 64 KiB AES-256-GCM STREAM chunks under a
|
|
4
|
+
* data key, cut into segments, and that key wrapped to an X25519 key the
|
|
5
|
+
* requester made for one export.
|
|
6
|
+
*/
|
|
7
|
+
import { sha256 as nobleSha256 } from '@noble/hashes/sha2.js';
|
|
8
|
+
import { concat, hex } from '../crypto/internal.js';
|
|
9
|
+
import { dh } from './noise.js';
|
|
10
|
+
const CHUNK_BYTES = 64 * 1024; // plaintext bytes in every chunk but the last
|
|
11
|
+
const TAG_BYTES = 16;
|
|
12
|
+
const SEALED_CHUNK_BYTES = CHUNK_BYTES + TAG_BYTES;
|
|
13
|
+
/** Stored bytes of every segment but the last: 256 whole sealed chunks. */
|
|
14
|
+
export const SEGMENT_BYTES = 256 * SEALED_CHUNK_BYTES;
|
|
15
|
+
const NONCE_BYTES = 12;
|
|
16
|
+
const enc = new TextEncoder();
|
|
17
|
+
const AAD_PREFIX = enc.encode('calimero.file.v1'); // then the last-chunk flag byte
|
|
18
|
+
const SEGMENT_DOMAIN = enc.encode('calimero.file.segments.v1\0'); // prefix of a file id's preimage
|
|
19
|
+
const EXPORT_WRAP_SALT = enc.encode('calimero.export-wrap.v1');
|
|
20
|
+
const DERIVE_LABEL = enc.encode('calimero.sealed.derive.v1\0'); // prefix of every wrap's HKDF info
|
|
21
|
+
/** An export that failed a check here, never one the node refused; messages carry no plaintext or keys. */
|
|
22
|
+
export class ExportError extends Error {
|
|
23
|
+
constructor(code, message) {
|
|
24
|
+
super(message);
|
|
25
|
+
this.code = code;
|
|
26
|
+
this.name = 'ExportError';
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
const sha256 = async (data) => new Uint8Array(await crypto.subtle.digest('SHA-256', data));
|
|
30
|
+
/** The file id: SHA-256 over the domain, the segment count (u32 big-endian) and the ordered segment hashes. */
|
|
31
|
+
export function fileId(segments) {
|
|
32
|
+
const count = new Uint8Array(4);
|
|
33
|
+
new DataView(count.buffer).setUint32(0, segments.length, false);
|
|
34
|
+
return sha256(concat(SEGMENT_DOMAIN, count, ...segments));
|
|
35
|
+
}
|
|
36
|
+
function prefixed(field) {
|
|
37
|
+
const bytes = enc.encode(field);
|
|
38
|
+
const length = new Uint8Array(4);
|
|
39
|
+
new DataView(length.buffer).setUint32(0, bytes.length, false);
|
|
40
|
+
return concat(length, bytes);
|
|
41
|
+
}
|
|
42
|
+
/** Open the data key `wrapped` (`nonce || AES-256-GCM`) that the node wrapped to `recipient` for `wrap`. */
|
|
43
|
+
export async function unwrapExport(recipient, ephemeral, wrap, wrapped) {
|
|
44
|
+
if (wrapped.length < NONCE_BYTES)
|
|
45
|
+
throw new ExportError('TAMPERED', 'the wrapped key is truncated');
|
|
46
|
+
const shared = await dh(recipient.privateKey, ephemeral);
|
|
47
|
+
if (shared.every((b) => b === 0))
|
|
48
|
+
throw new ExportError('BAD_ANSWER', 'the ephemeral key is of low order');
|
|
49
|
+
const info = concat(ephemeral, recipient.publicKey, prefixed(wrap.appId), prefixed(wrap.fileId));
|
|
50
|
+
const ikm = await crypto.subtle.importKey('raw', shared, 'HKDF', false, ['deriveBits']);
|
|
51
|
+
const keyBytes = await crypto.subtle.deriveBits({ name: 'HKDF', hash: 'SHA-256', salt: EXPORT_WRAP_SALT, info: concat(DERIVE_LABEL, info) }, ikm, 256);
|
|
52
|
+
const key = await crypto.subtle.importKey('raw', keyBytes, 'AES-GCM', false, ['decrypt']);
|
|
53
|
+
let secret;
|
|
54
|
+
try {
|
|
55
|
+
secret = await crypto.subtle.decrypt({ name: 'AES-GCM', iv: wrapped.subarray(0, NONCE_BYTES) }, key, wrapped.subarray(NONCE_BYTES));
|
|
56
|
+
}
|
|
57
|
+
catch {
|
|
58
|
+
throw new ExportError('TAMPERED', 'the wrapped key does not open');
|
|
59
|
+
}
|
|
60
|
+
if (secret.byteLength !== 32)
|
|
61
|
+
throw new ExportError('TAMPERED', 'the wrapped key has the wrong length');
|
|
62
|
+
return new Uint8Array(secret);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Joins a file's segments in order, each checked against the list before it is
|
|
66
|
+
* opened; holds at most one segment and one chunk. Output is authentic but may
|
|
67
|
+
* be a prefix of the file until {@link finishExpecting} returns.
|
|
68
|
+
*/
|
|
69
|
+
export class SegmentReader {
|
|
70
|
+
constructor(key, segments) {
|
|
71
|
+
this.key = key;
|
|
72
|
+
this.segments = segments;
|
|
73
|
+
this.pending = new Uint8Array();
|
|
74
|
+
this.index = 0;
|
|
75
|
+
this.next = 0;
|
|
76
|
+
this.size = 0;
|
|
77
|
+
this.hash = nobleSha256.create();
|
|
78
|
+
}
|
|
79
|
+
static async create(dataKey, segments) {
|
|
80
|
+
const key = await crypto.subtle.importKey('raw', dataKey, 'AES-GCM', false, ['decrypt']);
|
|
81
|
+
return new SegmentReader(key, segments.map(hex));
|
|
82
|
+
}
|
|
83
|
+
/** Take the next segment; `emit` gets the plaintext of every chunk it completes. */
|
|
84
|
+
async push(segment, emit) {
|
|
85
|
+
const want = this.segments[this.next];
|
|
86
|
+
if (want === undefined)
|
|
87
|
+
throw new ExportError('TAMPERED', `the file has no segment ${this.next}`);
|
|
88
|
+
if (this.next + 1 < this.segments.length && segment.length !== SEGMENT_BYTES) {
|
|
89
|
+
throw new ExportError('TAMPERED', `segment ${this.next} is not a whole segment`);
|
|
90
|
+
}
|
|
91
|
+
if (hex(await sha256(segment)) !== want) {
|
|
92
|
+
throw new ExportError('TAMPERED', `segment ${this.next} is not the one the file lists`);
|
|
93
|
+
}
|
|
94
|
+
this.next += 1;
|
|
95
|
+
// Bytes past a full chunk prove it was not the last, so one chunk is always held back.
|
|
96
|
+
const data = concat(this.pending, segment);
|
|
97
|
+
let at = 0;
|
|
98
|
+
while (data.length - at > SEALED_CHUNK_BYTES) {
|
|
99
|
+
await emit(await this.open(data.subarray(at, at + SEALED_CHUNK_BYTES), false));
|
|
100
|
+
at += SEALED_CHUNK_BYTES;
|
|
101
|
+
}
|
|
102
|
+
this.pending = data.slice(at);
|
|
103
|
+
}
|
|
104
|
+
/** Open the last chunk and check the whole plaintext's size and SHA-256: GCM does not commit to its key. */
|
|
105
|
+
async finishExpecting(size, sha256Hex) {
|
|
106
|
+
if (this.next !== this.segments.length)
|
|
107
|
+
throw new ExportError('TAMPERED', 'the file is missing segments');
|
|
108
|
+
if (this.pending.length < TAG_BYTES)
|
|
109
|
+
throw new ExportError('TAMPERED', 'the file is truncated');
|
|
110
|
+
const last = await this.open(this.pending, true);
|
|
111
|
+
if (this.size !== size || hex(this.hash.digest()) !== sha256Hex) {
|
|
112
|
+
throw new ExportError('TAMPERED', 'the file is not the one that was sealed');
|
|
113
|
+
}
|
|
114
|
+
return last;
|
|
115
|
+
}
|
|
116
|
+
async open(chunk, last) {
|
|
117
|
+
const iv = new Uint8Array(NONCE_BYTES);
|
|
118
|
+
new DataView(iv.buffer).setBigUint64(4, BigInt(this.index), false);
|
|
119
|
+
let plain;
|
|
120
|
+
try {
|
|
121
|
+
plain = new Uint8Array(await crypto.subtle.decrypt({ name: 'AES-GCM', iv, additionalData: concat(AAD_PREFIX, new Uint8Array([last ? 1 : 0])) }, this.key, chunk));
|
|
122
|
+
}
|
|
123
|
+
catch {
|
|
124
|
+
throw new ExportError('TAMPERED', `chunk ${this.index} does not open: the file is altered, truncated or under another key`);
|
|
125
|
+
}
|
|
126
|
+
this.hash.update(plain);
|
|
127
|
+
this.size += plain.length;
|
|
128
|
+
this.index += 1;
|
|
129
|
+
return plain;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const SEALED_FILE_MULTI_SEGMENT_VECTORS: readonly [{
|
|
2
|
+
readonly name: "2 segs, partial tail";
|
|
3
|
+
readonly len: 16777221;
|
|
4
|
+
readonly more: false;
|
|
5
|
+
readonly key: "bd62add5dd5c6627668c7e5622fb13c3d33d1c199f57c3fec719ce7896bbd475";
|
|
6
|
+
readonly id: "8d3e6b52e917119758ad8988002615bf8d72915aa22b449393838ae0a4f84b26";
|
|
7
|
+
readonly sha256: "de44529cece48237d30967c74f61b9541b809af36ede33d34537e06b5bd946a5";
|
|
8
|
+
readonly size: 16777221;
|
|
9
|
+
readonly segments: readonly ["6d9128647ecb81f44b7a3d7d311846884e0238b38bac369840196ac5eb6cd0c4", "396c500e1a6fcddf45920886c5076c394b21d58dee6c24b6fef64b183ea277b5"];
|
|
10
|
+
readonly lastLen: 21;
|
|
11
|
+
}, {
|
|
12
|
+
readonly name: "exact 256 chunks, single write";
|
|
13
|
+
readonly len: 16777216;
|
|
14
|
+
readonly more: false;
|
|
15
|
+
readonly key: "a619e3daf3d3b63d923e275366b27a5863193d7da88210e78bda2dd374eb7b16";
|
|
16
|
+
readonly id: "1fc1460330616abba04cba04d9f6e1958a1952d82c8e62af7289b008d0ff469a";
|
|
17
|
+
readonly sha256: "287507f403176f1f5b22b9a4d9cb49f7d7f88ac19e406b5ae87ce109564846bd";
|
|
18
|
+
readonly size: 16777216;
|
|
19
|
+
readonly segments: readonly ["d4abbbee5e1ac0c4f100a3d904dbb7c70b9f10e7bcda91351ba52907ed33fe91"];
|
|
20
|
+
readonly lastLen: 16781312;
|
|
21
|
+
}, {
|
|
22
|
+
readonly name: "exact 256 chunks, write_more";
|
|
23
|
+
readonly len: 16777216;
|
|
24
|
+
readonly more: true;
|
|
25
|
+
readonly key: "97aeef4cfabf1ca73736d52d57eb0b32cc479d26e4ea40b79f670001e25e02ab";
|
|
26
|
+
readonly id: "7f17a95b2efbff20595981f62913293a2d636cde08b4b0746b74e1e83746f280";
|
|
27
|
+
readonly sha256: "287507f403176f1f5b22b9a4d9cb49f7d7f88ac19e406b5ae87ce109564846bd";
|
|
28
|
+
readonly size: 16777216;
|
|
29
|
+
readonly segments: readonly ["98f737f704bd8a265a2a3426d03d19eb05fc1cdd4a00dd7d9a115e1c76688e08", "4527c69e42bdddeac70a7016a11ee265494351718086e728c6e4f1afc74f8196"];
|
|
30
|
+
readonly lastLen: 16;
|
|
31
|
+
}, {
|
|
32
|
+
readonly name: "512 chunks + 1 (3 segs)";
|
|
33
|
+
readonly len: 33554433;
|
|
34
|
+
readonly more: false;
|
|
35
|
+
readonly key: "4d47052bb6f712d25d4dcf9d81083883d68a55c703a7f0de5770b2ccf5dbce4b";
|
|
36
|
+
readonly id: "292167c05f0e62fe4d2a6b50bd102c1127d34c072a0c0e6a2ef5bcb556e44fed";
|
|
37
|
+
readonly sha256: "d956fa95d85b3c20642cb65b037ff8821d9c308e28442e88cfb6e79b07609b84";
|
|
38
|
+
readonly size: 33554433;
|
|
39
|
+
readonly segments: readonly ["d83523f9acd4e04eee8903fa7e2c6b979a2f8b418d7791229edd0c8843052f98", "bab26c2f6d67563880c32ffd728665d649c93eaa63664038b8b59b527481c347", "3779c5a0a7bc2413fbd095d91eb9c089286d88b9f92fa29439417806b0b003c1"];
|
|
40
|
+
readonly lastLen: 17;
|
|
41
|
+
}];
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// Multi-segment golden vectors for sealed-file export. Produced by the Rust reference: a throwaway
|
|
2
|
+
// binary path-depending on core crates/sealed sealed plaintext (byte i = i % 251) with SegmentWriter
|
|
3
|
+
// (write, or write_more where `more`) under a random data key and printed the key, segment hashes,
|
|
4
|
+
// file id, size and plaintext SHA-256. No ciphertext is stored: the test seals deterministically
|
|
5
|
+
// with WebCrypto under the same key and checks every segment hash against these.
|
|
6
|
+
export const SEALED_FILE_MULTI_SEGMENT_VECTORS = [
|
|
7
|
+
{
|
|
8
|
+
"name": "2 segs, partial tail",
|
|
9
|
+
"len": 16777221,
|
|
10
|
+
"more": false,
|
|
11
|
+
"key": "bd62add5dd5c6627668c7e5622fb13c3d33d1c199f57c3fec719ce7896bbd475",
|
|
12
|
+
"id": "8d3e6b52e917119758ad8988002615bf8d72915aa22b449393838ae0a4f84b26",
|
|
13
|
+
"sha256": "de44529cece48237d30967c74f61b9541b809af36ede33d34537e06b5bd946a5",
|
|
14
|
+
"size": 16777221,
|
|
15
|
+
"segments": [
|
|
16
|
+
"6d9128647ecb81f44b7a3d7d311846884e0238b38bac369840196ac5eb6cd0c4",
|
|
17
|
+
"396c500e1a6fcddf45920886c5076c394b21d58dee6c24b6fef64b183ea277b5"
|
|
18
|
+
],
|
|
19
|
+
"lastLen": 21
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "exact 256 chunks, single write",
|
|
23
|
+
"len": 16777216,
|
|
24
|
+
"more": false,
|
|
25
|
+
"key": "a619e3daf3d3b63d923e275366b27a5863193d7da88210e78bda2dd374eb7b16",
|
|
26
|
+
"id": "1fc1460330616abba04cba04d9f6e1958a1952d82c8e62af7289b008d0ff469a",
|
|
27
|
+
"sha256": "287507f403176f1f5b22b9a4d9cb49f7d7f88ac19e406b5ae87ce109564846bd",
|
|
28
|
+
"size": 16777216,
|
|
29
|
+
"segments": [
|
|
30
|
+
"d4abbbee5e1ac0c4f100a3d904dbb7c70b9f10e7bcda91351ba52907ed33fe91"
|
|
31
|
+
],
|
|
32
|
+
"lastLen": 16781312
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "exact 256 chunks, write_more",
|
|
36
|
+
"len": 16777216,
|
|
37
|
+
"more": true,
|
|
38
|
+
"key": "97aeef4cfabf1ca73736d52d57eb0b32cc479d26e4ea40b79f670001e25e02ab",
|
|
39
|
+
"id": "7f17a95b2efbff20595981f62913293a2d636cde08b4b0746b74e1e83746f280",
|
|
40
|
+
"sha256": "287507f403176f1f5b22b9a4d9cb49f7d7f88ac19e406b5ae87ce109564846bd",
|
|
41
|
+
"size": 16777216,
|
|
42
|
+
"segments": [
|
|
43
|
+
"98f737f704bd8a265a2a3426d03d19eb05fc1cdd4a00dd7d9a115e1c76688e08",
|
|
44
|
+
"4527c69e42bdddeac70a7016a11ee265494351718086e728c6e4f1afc74f8196"
|
|
45
|
+
],
|
|
46
|
+
"lastLen": 16
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "512 chunks + 1 (3 segs)",
|
|
50
|
+
"len": 33554433,
|
|
51
|
+
"more": false,
|
|
52
|
+
"key": "4d47052bb6f712d25d4dcf9d81083883d68a55c703a7f0de5770b2ccf5dbce4b",
|
|
53
|
+
"id": "292167c05f0e62fe4d2a6b50bd102c1127d34c072a0c0e6a2ef5bcb556e44fed",
|
|
54
|
+
"sha256": "d956fa95d85b3c20642cb65b037ff8821d9c308e28442e88cfb6e79b07609b84",
|
|
55
|
+
"size": 33554433,
|
|
56
|
+
"segments": [
|
|
57
|
+
"d83523f9acd4e04eee8903fa7e2c6b979a2f8b418d7791229edd0c8843052f98",
|
|
58
|
+
"bab26c2f6d67563880c32ffd728665d649c93eaa63664038b8b59b527481c347",
|
|
59
|
+
"3779c5a0a7bc2413fbd095d91eb9c089286d88b9f92fa29439417806b0b003c1"
|
|
60
|
+
],
|
|
61
|
+
"lastLen": 17
|
|
62
|
+
}
|
|
63
|
+
];
|