@derec-alliance/react-native 0.0.4 → 0.0.5

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,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/ios/DeRecFFI.xcframework/ios-arm64_x86_64-simulator/libderec_library.a
3
- size: 38499968 bytes
4
- sha256: 0f0d9b66c46cfb8f2fe9557186b549831df6ee476ad5d5397428a012a027037c
3
+ size: 38506456 bytes
4
+ sha256: 33e518ee499aa5108c6383387d8b15859e5e0e2109ee2a6470a22592de660a9e
package/lib/types.d.ts CHANGED
@@ -180,6 +180,17 @@ export interface Share {
180
180
  version: number;
181
181
  bytes: Uint8Array;
182
182
  }
183
+ /**
184
+ * Share-record persistence.
185
+ *
186
+ * Rows are keyed by `(secretId, channelId, version)` where `secretId` is
187
+ * the partition passed to every method. `Share.secretId` is a different
188
+ * value: it names the secret the bytes belong to, which on a helper is
189
+ * the owner's id and routinely differs from the partition this device
190
+ * stores under. Key on the argument and carry `share.secretId` alongside
191
+ * as data — keying on it instead puts rows where no `load` looks, since
192
+ * every read filters on the partition.
193
+ */
183
194
  export interface ShareStore {
184
195
  load(secretId: string, channelId: string, versions: number[]): Promise<Share[]>;
185
196
  loadMany(secretId: string, channelIds: string[], versions: number[]): Promise<Share[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@derec-alliance/react-native",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "React Native bindings for derec-library, the Rust SDK for the DeRec protocol.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/src/types.ts CHANGED
@@ -256,6 +256,17 @@ export interface Share {
256
256
  bytes: Uint8Array;
257
257
  }
258
258
 
259
+ /**
260
+ * Share-record persistence.
261
+ *
262
+ * Rows are keyed by `(secretId, channelId, version)` where `secretId` is
263
+ * the partition passed to every method. `Share.secretId` is a different
264
+ * value: it names the secret the bytes belong to, which on a helper is
265
+ * the owner's id and routinely differs from the partition this device
266
+ * stores under. Key on the argument and carry `share.secretId` alongside
267
+ * as data — keying on it instead puts rows where no `load` looks, since
268
+ * every read filters on the partition.
269
+ */
259
270
  export interface ShareStore {
260
271
  load(secretId: string, channelId: string, versions: number[]): Promise<Share[]>;
261
272
  loadMany(