@open-e2ee/signal-protocol-sdk 8.2.0 → 9.1.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/ADAPTERS.md +15 -31
- package/ARCHITECTURE.md +5 -7
- package/CHANGELOG.md +128 -0
- package/README.md +52 -49
- package/SECURITY.md +2 -2
- package/client/README.md +11 -0
- package/dist/client/client.d.ts +21 -14
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/client.js +93 -78
- package/dist/client/client.js.map +1 -1
- package/dist/client/config.d.ts +10 -17
- package/dist/client/config.d.ts.map +1 -1
- package/dist/client/config.js.map +1 -1
- package/dist/client/event-hooks.js +27 -0
- package/dist/client/event-hooks.js.map +1 -1
- package/dist/client/group-receive-authorization.d.ts +5 -0
- package/dist/client/group-receive-authorization.d.ts.map +1 -0
- package/dist/client/group-receive-authorization.js +32 -0
- package/dist/client/group-receive-authorization.js.map +1 -0
- package/dist/client/group-sender-key-operations.d.ts +15 -0
- package/dist/client/group-sender-key-operations.d.ts.map +1 -0
- package/dist/client/group-sender-key-operations.js +31 -0
- package/dist/client/group-sender-key-operations.js.map +1 -0
- package/dist/client/groups.d.ts +3 -1
- package/dist/client/groups.d.ts.map +1 -1
- package/dist/client/groups.js +5 -2
- package/dist/client/groups.js.map +1 -1
- package/dist/client/hosted-sandbox-identity.d.ts +32 -0
- package/dist/client/hosted-sandbox-identity.d.ts.map +1 -0
- package/dist/client/hosted-sandbox-identity.js +157 -0
- package/dist/client/hosted-sandbox-identity.js.map +1 -0
- package/dist/client/hosted.d.ts +12 -2
- package/dist/client/hosted.d.ts.map +1 -1
- package/dist/client/hosted.js +12 -2
- package/dist/client/hosted.js.map +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/relay-subscription.d.ts +2 -0
- package/dist/client/relay-subscription.d.ts.map +1 -1
- package/dist/client/relay-subscription.js +3 -1
- package/dist/client/relay-subscription.js.map +1 -1
- package/dist/client/sender-key-distribution.d.ts.map +1 -1
- package/dist/client/sender-key-distribution.js +4 -1
- package/dist/client/sender-key-distribution.js.map +1 -1
- package/dist/client/signal-service-cipher.d.ts +4 -2
- package/dist/client/signal-service-cipher.d.ts.map +1 -1
- package/dist/client/signal-service-cipher.js +61 -51
- package/dist/client/signal-service-cipher.js.map +1 -1
- package/dist/client/types.d.ts +0 -3
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/types.js.map +1 -1
- package/dist/index.d.ts +28 -22
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -18
- package/dist/index.js.map +1 -1
- package/dist/internal/crypto/pq/kyber.d.ts +1 -1
- package/dist/internal/crypto/pq/kyber.js +1 -1
- package/dist/internal/encoding/proto/sender-key-message.d.ts +2 -2
- package/dist/internal/encoding/proto/sender-key-message.d.ts.map +1 -1
- package/dist/internal/encoding/proto/sender-key-message.js +5 -2
- package/dist/internal/encoding/proto/sender-key-message.js.map +1 -1
- package/dist/internal/groups/manager.d.ts.map +1 -1
- package/dist/internal/groups/manager.js +5 -2
- package/dist/internal/groups/manager.js.map +1 -1
- package/dist/internal/groups/wire.d.ts +0 -2
- package/dist/internal/groups/wire.d.ts.map +1 -1
- package/dist/internal/groups/wire.js +0 -6
- package/dist/internal/groups/wire.js.map +1 -1
- package/dist/internal/manager/manager.d.ts.map +1 -1
- package/dist/internal/manager/manager.js +0 -1
- package/dist/internal/manager/manager.js.map +1 -1
- package/dist/internal/protocol/double-ratchet/ratchet.d.ts +0 -17
- package/dist/internal/protocol/double-ratchet/ratchet.d.ts.map +1 -1
- package/dist/internal/protocol/double-ratchet/ratchet.js +0 -4
- package/dist/internal/protocol/double-ratchet/ratchet.js.map +1 -1
- package/dist/internal/protocol/sealed-sender/certificate.d.ts +2 -32
- package/dist/internal/protocol/sealed-sender/certificate.d.ts.map +1 -1
- package/dist/internal/protocol/sealed-sender/certificate.js +4 -85
- package/dist/internal/protocol/sealed-sender/certificate.js.map +1 -1
- package/dist/internal/protocol/sealed-sender/index.d.ts +2 -2
- package/dist/internal/protocol/sealed-sender/index.d.ts.map +1 -1
- package/dist/internal/protocol/sealed-sender/index.js +2 -6
- package/dist/internal/protocol/sealed-sender/index.js.map +1 -1
- package/dist/internal/protocol/sealed-sender/proto/index.d.ts +0 -19
- package/dist/internal/protocol/sealed-sender/proto/index.d.ts.map +1 -1
- package/dist/internal/protocol/sealed-sender/proto/index.js +1 -48
- package/dist/internal/protocol/sealed-sender/proto/index.js.map +1 -1
- package/dist/internal/protocol/sender-keys/manager.d.ts +9 -13
- package/dist/internal/protocol/sender-keys/manager.d.ts.map +1 -1
- package/dist/internal/protocol/sender-keys/manager.js +90 -95
- package/dist/internal/protocol/sender-keys/manager.js.map +1 -1
- package/dist/internal/protocol/spqr/ml-kem-braid/incremental-kem.d.ts +0 -2
- package/dist/internal/protocol/spqr/ml-kem-braid/incremental-kem.d.ts.map +1 -1
- package/dist/internal/protocol/spqr/ml-kem-braid/incremental-kem.js +4 -12
- package/dist/internal/protocol/spqr/ml-kem-braid/incremental-kem.js.map +1 -1
- package/dist/internal/protocol/spqr/ml-kem-braid/types.d.ts +1 -0
- package/dist/internal/protocol/spqr/ml-kem-braid/types.d.ts.map +1 -1
- package/dist/internal/protocol/spqr/spqr.d.ts +1 -1
- package/dist/internal/protocol/spqr/spqr.js +1 -1
- package/dist/internal/protocol/x3dh/x3dh.d.ts.map +1 -1
- package/dist/internal/protocol/x3dh/x3dh.js +1 -1
- package/dist/internal/protocol/x3dh/x3dh.js.map +1 -1
- package/dist/internal/protocol/zk/credentials/credentials.d.ts +3 -54
- package/dist/internal/protocol/zk/credentials/credentials.d.ts.map +1 -1
- package/dist/internal/protocol/zk/credentials/credentials.js +4 -91
- package/dist/internal/protocol/zk/credentials/credentials.js.map +1 -1
- package/dist/internal/protocol/zk/credentials/endorsements.d.ts +3 -64
- package/dist/internal/protocol/zk/credentials/endorsements.d.ts.map +1 -1
- package/dist/internal/protocol/zk/credentials/endorsements.js +4 -134
- package/dist/internal/protocol/zk/credentials/endorsements.js.map +1 -1
- package/dist/internal/protocol/zk/credentials/index.d.ts +3 -3
- package/dist/internal/protocol/zk/credentials/index.d.ts.map +1 -1
- package/dist/internal/protocol/zk/credentials/index.js +3 -3
- package/dist/internal/protocol/zk/credentials/index.js.map +1 -1
- package/dist/internal/protocol/zk/credentials/issuance.d.ts +3 -26
- package/dist/internal/protocol/zk/credentials/issuance.d.ts.map +1 -1
- package/dist/internal/protocol/zk/credentials/issuance.js +3 -80
- package/dist/internal/protocol/zk/credentials/issuance.js.map +1 -1
- package/dist/internal/protocol/zk/credentials/presentation.d.ts +4 -73
- package/dist/internal/protocol/zk/credentials/presentation.d.ts.map +1 -1
- package/dist/internal/protocol/zk/credentials/presentation.js +4 -152
- package/dist/internal/protocol/zk/credentials/presentation.js.map +1 -1
- package/dist/internal/protocol/zk/groups/auth-credential.d.ts +1 -61
- package/dist/internal/protocol/zk/groups/auth-credential.d.ts.map +1 -1
- package/dist/internal/protocol/zk/groups/auth-credential.js +2 -196
- package/dist/internal/protocol/zk/groups/auth-credential.js.map +1 -1
- package/dist/internal/protocol/zk/groups/group-send-endorsement.d.ts +1 -86
- package/dist/internal/protocol/zk/groups/group-send-endorsement.d.ts.map +1 -1
- package/dist/internal/protocol/zk/groups/group-send-endorsement.js +1 -152
- package/dist/internal/protocol/zk/groups/group-send-endorsement.js.map +1 -1
- package/dist/internal/protocol/zk/groups/index.d.ts +4 -4
- package/dist/internal/protocol/zk/groups/index.d.ts.map +1 -1
- package/dist/internal/protocol/zk/groups/index.js +4 -4
- package/dist/internal/protocol/zk/groups/index.js.map +1 -1
- package/dist/internal/protocol/zk/groups/profile-key-credential.d.ts +2 -57
- package/dist/internal/protocol/zk/groups/profile-key-credential.d.ts.map +1 -1
- package/dist/internal/protocol/zk/groups/profile-key-credential.js +2 -174
- package/dist/internal/protocol/zk/groups/profile-key-credential.js.map +1 -1
- package/dist/internal/protocol/zk/groups/server-params.d.ts +8 -72
- package/dist/internal/protocol/zk/groups/server-params.d.ts.map +1 -1
- package/dist/internal/protocol/zk/groups/server-params.js +8 -108
- package/dist/internal/protocol/zk/groups/server-params.js.map +1 -1
- package/dist/internal/protocol/zk/proofs/sign.d.ts +1 -2
- package/dist/internal/protocol/zk/proofs/sign.d.ts.map +1 -1
- package/dist/internal/protocol/zk/proofs/sign.js +2 -11
- package/dist/internal/protocol/zk/proofs/sign.js.map +1 -1
- package/dist/internal/session/ratchet.d.ts.map +1 -1
- package/dist/internal/session/ratchet.js +0 -2
- package/dist/internal/session/ratchet.js.map +1 -1
- package/dist/local/store/key-value/adapter.d.ts +3 -3
- package/dist/local/store/key-value/adapter.d.ts.map +1 -1
- package/dist/local/store/key-value/adapter.js +30 -15
- package/dist/local/store/key-value/adapter.js.map +1 -1
- package/dist/local/store/key-value/backend-conformance.d.ts.map +1 -1
- package/dist/local/store/key-value/backend-conformance.js +25 -0
- package/dist/local/store/key-value/backend-conformance.js.map +1 -1
- package/dist/local/store/key-value/batch.d.ts +3 -1
- package/dist/local/store/key-value/batch.d.ts.map +1 -1
- package/dist/local/store/key-value/batch.js +9 -1
- package/dist/local/store/key-value/batch.js.map +1 -1
- package/dist/local/store/key-value/storage.d.ts +6 -0
- package/dist/local/store/key-value/storage.d.ts.map +1 -1
- package/dist/local/store/key-value/transactional-backend.d.ts +1 -1
- package/dist/local/store/key-value/transactional-backend.js +1 -1
- package/dist/local/store/memory/adapter.d.ts +3 -3
- package/dist/local/store/memory/adapter.d.ts.map +1 -1
- package/dist/local/store/memory/adapter.js +43 -18
- package/dist/local/store/memory/adapter.js.map +1 -1
- package/dist/local/store/sqlite/errors.d.ts +6 -0
- package/dist/local/store/sqlite/errors.d.ts.map +1 -1
- package/dist/local/store/sqlite/errors.js +6 -6
- package/dist/local/store/sqlite/errors.js.map +1 -1
- package/dist/local/store/sqlite/migrations.d.ts.map +1 -1
- package/dist/local/store/sqlite/migrations.js +18 -0
- package/dist/local/store/sqlite/migrations.js.map +1 -1
- package/dist/local/store/sqlite/models/skipped-sender-key.d.ts +3 -3
- package/dist/local/store/sqlite/models/skipped-sender-key.d.ts.map +1 -1
- package/dist/local/store/sqlite/models/skipped-sender-key.js +13 -17
- package/dist/local/store/sqlite/models/skipped-sender-key.js.map +1 -1
- package/dist/local/store/sqlite/store.d.ts +3 -3
- package/dist/local/store/sqlite/store.d.ts.map +1 -1
- package/dist/local/store/sqlite/store.js +17 -9
- package/dist/local/store/sqlite/store.js.map +1 -1
- package/dist/local/store/web/adapter.d.ts +3 -3
- package/dist/local/store/web/adapter.d.ts.map +1 -1
- package/dist/local/store/web/adapter.js +59 -20
- package/dist/local/store/web/adapter.js.map +1 -1
- package/dist/profile/contact-state.d.ts +0 -3
- package/dist/profile/contact-state.d.ts.map +1 -1
- package/dist/profile/contact-state.js +1 -32
- package/dist/profile/contact-state.js.map +1 -1
- package/dist/profile/index.d.ts +2 -1
- package/dist/profile/index.d.ts.map +1 -1
- package/dist/profile/index.js +2 -1
- package/dist/profile/index.js.map +1 -1
- package/dist/profile/unidentified-access.d.ts +12 -0
- package/dist/profile/unidentified-access.d.ts.map +1 -0
- package/dist/profile/unidentified-access.js +42 -0
- package/dist/profile/unidentified-access.js.map +1 -0
- package/dist/remote/relay/index.d.ts +4 -7
- package/dist/remote/relay/index.d.ts.map +1 -1
- package/dist/remote/relay/index.js +5 -7
- package/dist/remote/relay/index.js.map +1 -1
- package/dist/remote/relay/types.d.ts +3 -3
- package/dist/types/api.d.ts +29 -8
- package/dist/types/api.d.ts.map +1 -1
- package/dist/types/errors.d.ts +6 -0
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +6 -6
- package/dist/types/errors.js.map +1 -1
- package/dist/versions.d.ts +3 -3
- package/dist/versions.js +3 -3
- package/dist/zk/credentials.d.ts +2 -2
- package/dist/zk/credentials.js +2 -2
- package/dist/zk/groups.d.ts +3 -3
- package/dist/zk/groups.d.ts.map +1 -1
- package/dist/zk/groups.js +3 -3
- package/dist/zk/groups.js.map +1 -1
- package/docs/ASSURANCE.md +12 -14
- package/docs/CLIENT_COMPOSITION.md +11 -3
- package/docs/DEVIATIONS.md +24 -25
- package/docs/GETTING_STARTED.md +61 -323
- package/docs/INTERFACES.md +7 -7
- package/docs/PACKAGE_SURFACE.md +14 -16
- package/docs/RECIPES.md +7 -112
- package/groups/README.md +9 -1
- package/local/store/README.md +26 -6
- package/package.json +2 -31
- package/remote/README.md +14 -78
- package/remote/object-store/convex-r2/README.md +17 -49
- package/remote/relay/README.md +24 -18
- package/zk/README.md +6 -7
- package/dist/client/dual-store.d.ts +0 -70
- package/dist/client/dual-store.d.ts.map +0 -1
- package/dist/client/dual-store.js +0 -123
- package/dist/client/dual-store.js.map +0 -1
- package/dist/client/multi-device.d.ts +0 -74
- package/dist/client/multi-device.d.ts.map +0 -1
- package/dist/client/multi-device.js +0 -105
- package/dist/client/multi-device.js.map +0 -1
- package/dist/groups/server.d.ts +0 -10
- package/dist/groups/server.d.ts.map +0 -1
- package/dist/groups/server.js +0 -6
- package/dist/groups/server.js.map +0 -1
- package/dist/internal/encoding/index.d.ts +0 -2
- package/dist/internal/encoding/index.d.ts.map +0 -1
- package/dist/internal/encoding/index.js +0 -2
- package/dist/internal/encoding/index.js.map +0 -1
- package/dist/internal/groups/server-engine.d.ts +0 -118
- package/dist/internal/groups/server-engine.d.ts.map +0 -1
- package/dist/internal/groups/server-engine.js +0 -1268
- package/dist/internal/groups/server-engine.js.map +0 -1
- package/dist/internal/protocol/index.d.ts +0 -24
- package/dist/internal/protocol/index.d.ts.map +0 -1
- package/dist/internal/protocol/index.js +0 -9
- package/dist/internal/protocol/index.js.map +0 -1
- package/dist/internal/protocol/sealed-sender/trust-root.d.ts +0 -56
- package/dist/internal/protocol/sealed-sender/trust-root.d.ts.map +0 -1
- package/dist/internal/protocol/sealed-sender/trust-root.js +0 -90
- package/dist/internal/protocol/sealed-sender/trust-root.js.map +0 -1
- package/dist/internal/protocol/triple-ratchet/index.d.ts +0 -21
- package/dist/internal/protocol/triple-ratchet/index.d.ts.map +0 -1
- package/dist/internal/protocol/triple-ratchet/index.js +0 -19
- package/dist/internal/protocol/triple-ratchet/index.js.map +0 -1
- package/dist/internal/protocol/triple-ratchet/ratchet.d.ts +0 -233
- package/dist/internal/protocol/triple-ratchet/ratchet.d.ts.map +0 -1
- package/dist/internal/protocol/triple-ratchet/ratchet.js +0 -254
- package/dist/internal/protocol/triple-ratchet/ratchet.js.map +0 -1
- package/dist/internal/protocol/zk/proofs/index.d.ts +0 -13
- package/dist/internal/protocol/zk/proofs/index.d.ts.map +0 -1
- package/dist/internal/protocol/zk/proofs/index.js +0 -7
- package/dist/internal/protocol/zk/proofs/index.js.map +0 -1
- package/dist/local/store/sqlite/index.d.ts +0 -20
- package/dist/local/store/sqlite/index.d.ts.map +0 -1
- package/dist/local/store/sqlite/index.js +0 -18
- package/dist/local/store/sqlite/index.js.map +0 -1
- package/dist/remote/object-store/convex-r2/server/index.d.ts +0 -2
- package/dist/remote/object-store/convex-r2/server/index.d.ts.map +0 -1
- package/dist/remote/object-store/convex-r2/server/index.js +0 -2
- package/dist/remote/object-store/convex-r2/server/index.js.map +0 -1
- package/dist/remote/object-store/convex-r2/server.d.ts +0 -129
- package/dist/remote/object-store/convex-r2/server.d.ts.map +0 -1
- package/dist/remote/object-store/convex-r2/server.js +0 -244
- package/dist/remote/object-store/convex-r2/server.js.map +0 -1
- package/dist/remote/relay/memory/adapter.d.ts +0 -252
- package/dist/remote/relay/memory/adapter.d.ts.map +0 -1
- package/dist/remote/relay/memory/adapter.js +0 -1057
- package/dist/remote/relay/memory/adapter.js.map +0 -1
- package/dist/remote/relay/memory/failures.d.ts +0 -58
- package/dist/remote/relay/memory/failures.d.ts.map +0 -1
- package/dist/remote/relay/memory/failures.js +0 -124
- package/dist/remote/relay/memory/failures.js.map +0 -1
- package/dist/remote/relay/memory/group-server.d.ts +0 -13
- package/dist/remote/relay/memory/group-server.d.ts.map +0 -1
- package/dist/remote/relay/memory/group-server.js +0 -19
- package/dist/remote/relay/memory/group-server.js.map +0 -1
- package/dist/remote/relay/memory/index.d.ts +0 -11
- package/dist/remote/relay/memory/index.d.ts.map +0 -1
- package/dist/remote/relay/memory/index.js +0 -7
- package/dist/remote/relay/memory/index.js.map +0 -1
- package/examples/browser/README.md +0 -35
- package/examples/browser/index.html +0 -27
- package/examples/browser/src/exchange.ts +0 -69
- package/examples/browser/src/main.ts +0 -63
- package/examples/browser/src/style.css +0 -9
- package/examples/browser/src/worker.ts +0 -10
- package/examples/browser/vite.config.ts +0 -9
- package/remote/relay/memory/README.md +0 -72
- package/scripts/oe-groups.mjs +0 -166
package/ADAPTERS.md
CHANGED
|
@@ -18,8 +18,10 @@ The relay interface handles server-owned Signal Protocol state:
|
|
|
18
18
|
Use:
|
|
19
19
|
|
|
20
20
|
- the OpenE2EE Signal Protocol Relay through `createHostedSignalProtocolClient()` from the package root
|
|
21
|
-
-
|
|
22
|
-
|
|
21
|
+
- a custom client transport that implements `SignalProtocolRelayServer`
|
|
22
|
+
|
|
23
|
+
The published package contains client code and transport contracts. It does not
|
|
24
|
+
include a relay server implementation.
|
|
23
25
|
|
|
24
26
|
### Storage: `SignalProtocolLocalStore`
|
|
25
27
|
|
|
@@ -74,8 +76,6 @@ Optional encrypted file upload/download support for two-layer attachment encrypt
|
|
|
74
76
|
Use:
|
|
75
77
|
|
|
76
78
|
- `ConvexR2ObjectStore` from `@open-e2ee/signal-protocol-sdk/remote/object-store/convex-r2`
|
|
77
|
-
- `defineConvexR2ObjectStore` from the server-only
|
|
78
|
-
`@open-e2ee/signal-protocol-sdk/remote/object-store/convex-r2/server` entry point
|
|
79
79
|
- `S3ObjectStore` from `@open-e2ee/signal-protocol-sdk/remote/object-store/s3`
|
|
80
80
|
- or a custom implementation
|
|
81
81
|
|
|
@@ -85,9 +85,8 @@ credentials remain on the backend.
|
|
|
85
85
|
|
|
86
86
|
Upload requests carry a retry/idempotency `requestId`. The backend returns the
|
|
87
87
|
canonical `objectId` used in encrypted attachment pointers. Provider keys stay
|
|
88
|
-
private to the backend. The
|
|
89
|
-
|
|
90
|
-
functions retain authentication, authorization, and persistence.
|
|
88
|
+
private to the backend. The application supplies the object-store broker and
|
|
89
|
+
owns its authentication, authorization, persistence, and provider integration.
|
|
91
90
|
|
|
92
91
|
### Local secret vault: `SignalProtocolLocalSecretVault`
|
|
93
92
|
|
|
@@ -153,27 +152,13 @@ const signal = await createHostedSignalProtocolClient({
|
|
|
153
152
|
See the [Expo storage guide](./local/store/expo/README.md) for the required
|
|
154
153
|
database and SQLCipher bootstrap.
|
|
155
154
|
|
|
156
|
-
###
|
|
157
|
-
|
|
158
|
-
<!-- doc-snippet:run adapters-shared-relay expect="" -->
|
|
159
|
-
```ts
|
|
160
|
-
// Real protocol and cryptography; simulated in-memory infrastructure.
|
|
161
|
-
import { createSignalProtocolClient } from "@open-e2ee/signal-protocol-sdk";
|
|
162
|
-
import { inMemoryRelay } from "@open-e2ee/signal-protocol-sdk/remote/relay/memory";
|
|
163
|
-
import { inMemoryStore } from "@open-e2ee/signal-protocol-sdk/local/store/memory";
|
|
155
|
+
### Sandbox development
|
|
164
156
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
});
|
|
171
|
-
|
|
172
|
-
const bob = await createSignalProtocolClient({
|
|
173
|
-
identity: { userId: "bob" },
|
|
174
|
-
adapters: { storage: inMemoryStore(), relay },
|
|
175
|
-
});
|
|
176
|
-
```
|
|
157
|
+
`oe new` writes a Sandbox connection URL to `.env.local`. Use it with the
|
|
158
|
+
hosted client. The device-local storage contracts are the same in Sandbox. A
|
|
159
|
+
Sandbox environment uses device-owned identity:
|
|
160
|
+
`hostedRelaySandboxIdentity(storage)` supplies `hosted.getIdentityAssertion`.
|
|
161
|
+
See the [client guide](./client/README.md#with-relay).
|
|
177
162
|
|
|
178
163
|
## Security Expectations
|
|
179
164
|
|
|
@@ -231,10 +216,9 @@ const signal = await createSignalProtocolClient({
|
|
|
231
216
|
|
|
232
217
|
## Verifiable adapter design
|
|
233
218
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
reaching into client internals.
|
|
219
|
+
The in-memory local store supports temporary device state during development.
|
|
220
|
+
Use the Signal Protocol Relay Sandbox for authenticated delivery. Applications
|
|
221
|
+
can supply custom adapters through the public client contracts.
|
|
238
222
|
|
|
239
223
|
## Related Docs
|
|
240
224
|
|
package/ARCHITECTURE.md
CHANGED
|
@@ -41,7 +41,7 @@ compatibility shim when a boundary is wrong.
|
|
|
41
41
|
| Public feature surfaces | [blocking/](./blocking/), [groups/](./groups/), [media/](./media/), [profile/](./profile/), [sealed-sender/](./sealed-sender/), [username/](./username/), [zk/](./zk/) | App-facing helpers that compose protocol, media, or account-state behavior without joining the inward dependency hierarchy |
|
|
42
42
|
| Public utility surfaces | [encoding/](./encoding/), [files/](./files/), [hooks/](./hooks/), [utils/](./utils/), `logger.ts`, `server-clock.ts`, `versions.ts` | Stable helpers, React hooks, logging, clock estimation, version metadata, and file/encoding utilities |
|
|
43
43
|
| Local adapters | [local/](./local/) | Local protocol stores and secret vault integrations |
|
|
44
|
-
| Remote adapters | [remote/](./remote/) | Relay and object-store ports plus
|
|
44
|
+
| Remote adapters | [remote/](./remote/) | Relay and object-store ports plus hosted, R2, and S3 client adapters |
|
|
45
45
|
| Device features | [device/](./device/) | Device IDs, provisioning, linked-device lifecycle and transfer |
|
|
46
46
|
|
|
47
47
|
## Documentation Ownership
|
|
@@ -75,9 +75,7 @@ Platform and backend integrations are explicit subpaths such as:
|
|
|
75
75
|
- `@open-e2ee/signal-protocol-sdk/local/store/expo`
|
|
76
76
|
- `@open-e2ee/signal-protocol-sdk/local/store/react-native`
|
|
77
77
|
- `@open-e2ee/signal-protocol-sdk/local/store/memory`
|
|
78
|
-
- `@open-e2ee/signal-protocol-sdk/remote/relay/memory`
|
|
79
78
|
- `@open-e2ee/signal-protocol-sdk/remote/object-store/convex-r2`
|
|
80
|
-
- `@open-e2ee/signal-protocol-sdk/remote/object-store/convex-r2/server`
|
|
81
79
|
- `@open-e2ee/signal-protocol-sdk/remote/object-store/s3`
|
|
82
80
|
- `@open-e2ee/signal-protocol-sdk/client/compose`
|
|
83
81
|
- `@open-e2ee/signal-protocol-sdk/device`
|
|
@@ -128,10 +126,10 @@ policy fields `protocol.postQuantum` and `protocol.braid`.
|
|
|
128
126
|
|
|
129
127
|
The provider-neutral object-store port separates a retry/idempotency
|
|
130
128
|
`requestId`, the canonical `objectId` carried in encrypted pointers, and the
|
|
131
|
-
private provider key. The Convex R2 client entry calls
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
129
|
+
private provider key. The Convex R2 client entry calls application-owned broker functions.
|
|
130
|
+
The application owns the R2 component, authentication, authorization, object
|
|
131
|
+
records, credentials, and bucket. The published package contains client adapters
|
|
132
|
+
and contracts. Relay and object-store server implementations run separately.
|
|
135
133
|
|
|
136
134
|
`types/protocol-config.ts` owns protocol-domain configuration and constants shared by client, session, protocol, and adapters:
|
|
137
135
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,133 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 9.1.0
|
|
4
|
+
|
|
5
|
+
- **Added: `hostedRelaySandboxIdentity` creates the identity assertion callback
|
|
6
|
+
for a Sandbox environment.** Pass `hostedRelaySandboxIdentity(storage)` as
|
|
7
|
+
`hosted.getIdentityAssertion`. The callback signs a device-owned assertion
|
|
8
|
+
with an Ed25519 key that it keeps in the device-local store, one key for each
|
|
9
|
+
publishable key. The Relay binds the Sandbox account to that key, so a device
|
|
10
|
+
that loses its store loses the account. The callback supports only device
|
|
11
|
+
registration in a Sandbox environment. It rejects a production connection,
|
|
12
|
+
recovery, provider migration, and recent or step-up assurance.
|
|
13
|
+
- **Added: `IdentityAssertionRequest` carries `environment` and
|
|
14
|
+
`publishableKey`.** The SDK reads both from `relayUrl`, so a callback can use
|
|
15
|
+
them without a second configuration value.
|
|
16
|
+
- **Fixed: the published declarations compile with `skipLibCheck: false`.**
|
|
17
|
+
The root declarations no longer name the internal profile key exchange or
|
|
18
|
+
import Convex types. `verifyUnidentifiedAccessMode` moved to its own module
|
|
19
|
+
in the `./profile` entry, which keeps its Convex peer. A packaging check now
|
|
20
|
+
compiles each export subpath with `skipLibCheck: false`.
|
|
21
|
+
- **Fixed: a type guard no longer narrows `EncryptionError` to `never`.** Each
|
|
22
|
+
`EncryptionError` and SQLite store error subclass declares its `name` as a
|
|
23
|
+
literal type. Before, a subclass with no other members had the same shape as
|
|
24
|
+
its base class, so the false branch of its guard removed the base class too.
|
|
25
|
+
|
|
26
|
+
## 9.0.0
|
|
27
|
+
|
|
28
|
+
9.0.0 is a major release. The entries below give the details. To upgrade from
|
|
29
|
+
8.2.0:
|
|
30
|
+
|
|
31
|
+
1. **Reset group Sender Key state.** Sender Keys now use format `v2`. Discard
|
|
32
|
+
queued group sends, reset sender-key state on every device, and
|
|
33
|
+
redistribute keys with upgraded peers.
|
|
34
|
+
2. **Update custom local stores.** A receive commit applies
|
|
35
|
+
`SenderKeyReceiveCommit.skippedKeys` atomically with the record. Skipped
|
|
36
|
+
keys carry `senderKeyId`. Key-value backends implement
|
|
37
|
+
`pruneSkippedSenderKeys` inside `atomicWrite`.
|
|
38
|
+
3. **Use only client exports.** The public package no longer exports relay
|
|
39
|
+
implementations, the group server engine, or credential and certificate
|
|
40
|
+
issuers.
|
|
41
|
+
4. **Check group IDs on receive.** With a group store, a managed-format group
|
|
42
|
+
ID needs verified local state. `onGroupSenderKeyRotated` receives the raw
|
|
43
|
+
group ID.
|
|
44
|
+
|
|
45
|
+
- **Fixed: overlapping Braid sessions complete their key exchanges independently.**
|
|
46
|
+
The incremental KEM no longer caches a commitment shared across sessions.
|
|
47
|
+
It no longer rejects a valid encapsulation key from an interleaved session.
|
|
48
|
+
Interleaved sessions now use their own key material, including after state restore.
|
|
49
|
+
The wire format and persisted state format remain unchanged.
|
|
50
|
+
- **Corrected: SPQR recovery and key-derivation documentation.** Braid recovery
|
|
51
|
+
depends on delivered chunks and peer replies, with no fixed message-count bound.
|
|
52
|
+
The notes now describe the production message-key expansion and supported limits.
|
|
53
|
+
- **Fixed: managed announcement groups enforce the sender's role.** Both
|
|
54
|
+
encryption paths require an administrator. All group message receive paths
|
|
55
|
+
apply the same rule before consuming a message key. Member key distributions
|
|
56
|
+
and ad-hoc Sender Keys remain available.
|
|
57
|
+
- **Fixed: group receives fail closed for a managed group ID without a master key.**
|
|
58
|
+
With a group store, a raw group ID in the managed format (the 32-byte group
|
|
59
|
+
identifier in lowercase hex) requires verified local state on every receive
|
|
60
|
+
path. Ad-hoc Sender Keys remain available for IDs in other formats. The public
|
|
61
|
+
group receive methods accept ad-hoc Sender Keys without a group store.
|
|
62
|
+
- **Fixed: membership changes rotate the active sender key.** The callback
|
|
63
|
+
used a prefixed group identifier for a separate record. Sends continued
|
|
64
|
+
using the old record, which let removed members decrypt new messages. The
|
|
65
|
+
callback now uses the send path's raw identifier and persists pending key
|
|
66
|
+
distribution. The next send distributes the new key before its ciphertext.
|
|
67
|
+
Restart and outbox write failure preserve that pending distribution.
|
|
68
|
+
- **Fixed: public Sender Key operations use one record for raw and prefixed group IDs.**
|
|
69
|
+
- **Changed: `onGroupSenderKeyRotated` receives the raw group ID.** Automatic
|
|
70
|
+
and manual rotation pass the ID without the `open-e2ee:group:` prefix.
|
|
71
|
+
- **Changed: Sender Key getters wait for an active operation on the group.**
|
|
72
|
+
`hasGroupSenderKey`, `getGroupSenderKeyDistribution`, and
|
|
73
|
+
`getGroupSenderKeyStats` return state after an active send, rotation, or
|
|
74
|
+
receive for that group completes.
|
|
75
|
+
- **Fixed: concurrent sends cannot overwrite completed group key rotation.**
|
|
76
|
+
Group operations share a lock through preparation, persistence, and relay
|
|
77
|
+
posting. Pending distributions stay paired with their ciphertext. An older
|
|
78
|
+
outbox retry preserves a later key's pending distribution.
|
|
79
|
+
- **Fixed: client stop releases group receive lock waits held behind a group send.**
|
|
80
|
+
- **Fixed: a group attachment upload no longer blocks receives for that group.**
|
|
81
|
+
The group lock covers the Sender Key work only. A separate ordering lock
|
|
82
|
+
keeps sends to the group in order across the upload.
|
|
83
|
+
- **Fixed: hooks of a group send run after the group lock.** A hook such as
|
|
84
|
+
`onSessionEstablished` that called `hasGroupSenderKey` for the same group
|
|
85
|
+
deadlocked the send. The client now calls these hooks after the group
|
|
86
|
+
operation finishes.
|
|
87
|
+
- **Corrected: group implementation ownership.** Signal publishes its group
|
|
88
|
+
server in `storage-service`. The internal SDK contains the enforcing engine
|
|
89
|
+
used by the OpenE2EE Signal Protocol Relay.
|
|
90
|
+
- **Fixed: Sender Keys archive rollback.** Distribution processing and local
|
|
91
|
+
rotation update the cache after storage succeeds. A failed write preserves
|
|
92
|
+
delayed messages through later receives, retries, and manager restarts.
|
|
93
|
+
- **Fixed: Sender Keys cache isolation.** Group, sender, and device tuples now
|
|
94
|
+
retain separate archived states when identifiers contain delimiters.
|
|
95
|
+
This preserves delayed messages and record ownership across creation,
|
|
96
|
+
rotation, deletion, and manager restarts. Cache lookups no longer use
|
|
97
|
+
another tuple's archived key.
|
|
98
|
+
- **Fixed: atomic group receives.** Skipped-key additions and eviction now commit with state and
|
|
99
|
+
optional received content. Current and archived generations use this boundary,
|
|
100
|
+
including receives without a durable ID. Custom local stores must apply
|
|
101
|
+
`SenderKeyReceiveCommit.skippedKeys` atomically with the record. Custom
|
|
102
|
+
key-value backends must implement `pruneSkippedSenderKeys` inside `atomicWrite`.
|
|
103
|
+
- **Fixed: skipped Sender Keys remain separate across rotations.** Each stored
|
|
104
|
+
key now includes its distribution identifier. A delayed message uses the
|
|
105
|
+
correct generation even when two generations share the same chain index.
|
|
106
|
+
Atomic receive commits consume only that generation's key. Custom local
|
|
107
|
+
stores must add `senderKeyId` to skipped-key lookup, storage, and deletion.
|
|
108
|
+
`SenderKeyReceiveCommit.consumedSkippedKey` now carries the identifier and index.
|
|
109
|
+
- **Changed: Sender Keys use HKDF-Extract before HKDF-Expand.** This corrects
|
|
110
|
+
message-key derivation to match the reference algorithm. Sender-key state
|
|
111
|
+
and distribution messages now require `senderKeyVersion: 'v2'`. Signed
|
|
112
|
+
frames require version byte `0x44`. Old state, distributions, and frames
|
|
113
|
+
fail closed. Before upgrading, discard queued group sends and reset group
|
|
114
|
+
sender-key state on every device. Then redistribute keys with upgraded peers.
|
|
115
|
+
|
|
116
|
+
SQLite discards skipped keys from its old schema because they lack generation
|
|
117
|
+
identifiers. This pre-launch break provides no legacy derivation or reader.
|
|
118
|
+
- **Breaking: public exports contain only client code.** Relay implementations
|
|
119
|
+
and the group server engine stay private. The public package also excludes
|
|
120
|
+
credential issuers, certificate issuers, and the group administration CLI.
|
|
121
|
+
The private repository retains these implementations and entry points.
|
|
122
|
+
Client transports, storage adapters, group encryption, credential receipt,
|
|
123
|
+
and presentation remain public. Public guides use OpenE2EE Signal Protocol Relay.
|
|
124
|
+
- **Changed: public exports check a declaration inventory.** Each mixed module
|
|
125
|
+
classifies its client and server declarations. An unclassified declaration or
|
|
126
|
+
class member fails the export. TypeDoc generates API documentation from the
|
|
127
|
+
projected client source. Build and package checks verify that the public
|
|
128
|
+
artifact excludes server code. Release checks also verify SDK imports in
|
|
129
|
+
source examples, declarations, and generated documentation against public exports.
|
|
130
|
+
|
|
3
131
|
## 8.2.0
|
|
4
132
|
|
|
5
133
|
- **Changed: a group send posts to the member devices at the same time.**
|
package/README.md
CHANGED
|
@@ -11,8 +11,6 @@ Add encrypted messaging to Expo, React Native, browser, and Node applications. T
|
|
|
11
11
|
|
|
12
12
|
The default policy requires post-quantum session establishment and ratcheting. The protocol implementation is open source under the MIT License or the Apache License 2.0, at your option.
|
|
13
13
|
|
|
14
|
-
[**Run an encrypted exchange in your browser**](https://open-e2ee.dev/playground) · [Edit on StackBlitz](https://stackblitz.com/fork/github/open-e2ee/signal-protocol-js/tree/v8.2.0/examples/browser) · [Run on Expo / Hermes](./examples/expo/README.md)
|
|
15
|
-
|
|
16
14
|
[](./LICENSE)
|
|
17
15
|
[](https://www.npmjs.com/package/@open-e2ee/signal-protocol-sdk)
|
|
18
16
|
[](https://www.npmjs.com/package/@open-e2ee/signal-protocol-sdk#provenance)
|
|
@@ -28,22 +26,20 @@ https://github.com/user-attachments/assets/d8002bc3-c037-41b6-8f48-4008f2d49e6c
|
|
|
28
26
|
|
|
29
27
|
The [visual demo](https://open-e2ee.dev/#demo) shows the envelope, ratchets, relay mailbox, and decrypted result. On desktop, type a message and inspect each step. On mobile, a recorded protocol run replays at reading pace. Displayed timings exclude network time.
|
|
30
28
|
|
|
31
|
-
The
|
|
32
|
-
|
|
33
|
-
Both examples use real protocol code and cryptography. An in-memory relay holds their envelopes. They need no account or backend project.
|
|
29
|
+
The demonstrations use real protocol code and cryptography. Application integration requires device-local storage and authenticated delivery.
|
|
34
30
|
|
|
35
31
|
## What the SDK handles
|
|
36
32
|
|
|
37
33
|
- **Session establishment and ratcheting.** PQXDH establishes sessions. The ML-KEM Braid ratchet adds post-quantum key updates. Required post-quantum operations fail closed.
|
|
38
34
|
- **Chat features.** Multi-device messaging, groups, sealed sender, encrypted attachments, and safety-number verification use the same package.
|
|
39
35
|
- **Device-local state.** Storage adapters keep identities, sessions, and message state on the device.
|
|
40
|
-
- **
|
|
36
|
+
- **Hosted delivery.** Connect to [OpenE2EE Signal Protocol Relay](https://open-e2ee.dev/relay) with the hosted client factory. Advanced integrations can supply a custom transport.
|
|
41
37
|
|
|
42
38
|
The relay never needs message plaintext or device private keys.
|
|
43
39
|
|
|
44
|
-
OpenE2EE implements a versioned profile of the published Signal Protocol specifications. It is not affiliated with Signal Messenger and is **not wire-compatible with Signal Messenger or libsignal**. Messages, identities, and safety numbers do not interoperate. See the [notice](./NOTICE) and [documented deviations](./docs/DEVIATIONS.md).
|
|
40
|
+
The OpenE2EE Signal Protocol SDK implements a versioned profile of the published Signal Protocol specifications. It is not affiliated with Signal Messenger and is **not wire-compatible with Signal Messenger or libsignal**. Messages, identities, and safety numbers do not interoperate. See the [notice](./NOTICE) and [documented deviations](./docs/DEVIATIONS.md).
|
|
45
41
|
|
|
46
|
-
Version `
|
|
42
|
+
Version `9.1.x`. Public APIs and persisted formats follow semantic versioning.
|
|
47
43
|
|
|
48
44
|
## Install
|
|
49
45
|
|
|
@@ -51,54 +47,61 @@ Version `8.2.x`. Public APIs and persisted formats follow semantic versioning.
|
|
|
51
47
|
npm install @open-e2ee/signal-protocol-sdk
|
|
52
48
|
```
|
|
53
49
|
|
|
54
|
-
|
|
50
|
+
Local development needs Node 22.12 or later. The storage guides list platform requirements.
|
|
55
51
|
|
|
56
|
-
##
|
|
52
|
+
## Connect to the Signal Protocol Relay
|
|
57
53
|
|
|
58
|
-
|
|
54
|
+
Follow the [Sandbox quickstart](https://docs.open-e2ee.dev/relay#sandbox-quickstart).
|
|
55
|
+
In the application directory, `oe new` creates the Relay project and its Sandbox
|
|
56
|
+
environment. It writes the connection URL to `.env.local` as
|
|
57
|
+
`OPEN_E2EE_RELAY_URL`. In a Next.js, Expo, or Vite application, the name has
|
|
58
|
+
the public prefix of the framework, for example `EXPO_PUBLIC_OPEN_E2EE_RELAY_URL`.
|
|
59
|
+
The URL is public configuration. It is not a credential.
|
|
59
60
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
import { createSignalProtocolClient } from "@open-e2ee/signal-protocol-sdk";
|
|
64
|
-
import { inMemoryStore } from "@open-e2ee/signal-protocol-sdk/local/store/memory";
|
|
65
|
-
import { inMemoryRelay } from "@open-e2ee/signal-protocol-sdk/remote/relay/memory";
|
|
66
|
-
|
|
67
|
-
const relay = inMemoryRelay();
|
|
68
|
-
await relay.registerDevice("alice", { encryptedDeviceName: new ArrayBuffer(0) });
|
|
69
|
-
await relay.registerDevice("bob", { encryptedDeviceName: new ArrayBuffer(0) });
|
|
70
|
-
|
|
71
|
-
const alice = await createSignalProtocolClient({
|
|
72
|
-
identity: { userId: "alice" },
|
|
73
|
-
adapters: { storage: inMemoryStore(), relay },
|
|
74
|
-
});
|
|
75
|
-
const bob = await createSignalProtocolClient({
|
|
76
|
-
identity: { userId: "bob" },
|
|
77
|
-
adapters: { storage: inMemoryStore(), relay },
|
|
78
|
-
});
|
|
61
|
+
A Sandbox environment uses device-owned identity. `hostedRelaySandboxIdentity`
|
|
62
|
+
signs the identity assertion with a key that it keeps in the device-local store.
|
|
63
|
+
Use the same store for the client.
|
|
79
64
|
|
|
80
|
-
|
|
81
|
-
bob.registerHook("onMessageDecrypted", async (message) => {
|
|
82
|
-
console.log(`${message.senderId}: ${message.content}`);
|
|
83
|
-
bob.stopRelaySubscription();
|
|
84
|
-
resolve(undefined);
|
|
85
|
-
});
|
|
86
|
-
});
|
|
65
|
+
This example needs that Sandbox environment. It is not an offline script.
|
|
87
66
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
67
|
+
<!-- doc-snippet:skip requires-external-context -->
|
|
68
|
+
```ts
|
|
69
|
+
import {
|
|
70
|
+
createHostedSignalProtocolClient,
|
|
71
|
+
hostedRelaySandboxIdentity,
|
|
72
|
+
} from "@open-e2ee/signal-protocol-sdk";
|
|
73
|
+
|
|
74
|
+
const signal = await createHostedSignalProtocolClient({
|
|
75
|
+
adapters: { storage },
|
|
76
|
+
hosted: {
|
|
77
|
+
relayUrl: process.env.OPEN_E2EE_RELAY_URL!,
|
|
78
|
+
getIdentityAssertion: hostedRelaySandboxIdentity(storage),
|
|
79
|
+
},
|
|
80
|
+
});
|
|
91
81
|
```
|
|
92
82
|
|
|
93
|
-
|
|
83
|
+
`hostedRelaySandboxIdentity` works only in a Sandbox environment. In production,
|
|
84
|
+
your identity provider signs the assertion: pass a `getIdentityAssertion`
|
|
85
|
+
callback that returns a short-lived assertion for the signed-in user. The
|
|
86
|
+
[identity guide](https://docs.open-e2ee.dev/relay/identity) describes the
|
|
87
|
+
production setup.
|
|
94
88
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
```
|
|
89
|
+
Register a handler before you start incoming delivery. Persist each message
|
|
90
|
+
before the handler resolves, and use its ID to make repeated writes idempotent.
|
|
98
91
|
|
|
99
|
-
|
|
92
|
+
<!-- doc-snippet:skip requires-external-context -->
|
|
93
|
+
```ts
|
|
94
|
+
signal.registerHook("onMessageDecrypted", async (message) => {
|
|
95
|
+
await appMessages.accept(message);
|
|
96
|
+
});
|
|
97
|
+
signal.startRelaySubscription();
|
|
98
|
+
await signal.send(recipientUserId, "hello");
|
|
99
|
+
```
|
|
100
100
|
|
|
101
|
-
The
|
|
101
|
+
The hosted factory authenticates and registers the device, then publishes its
|
|
102
|
+
public prekeys. `send()` establishes the recipient sessions and sends encrypted
|
|
103
|
+
envelopes. The receive handler gets plaintext after device-local decryption.
|
|
104
|
+
See [client composition](./docs/CLIENT_COMPOSITION.md) for platform setup.
|
|
102
105
|
|
|
103
106
|
## Use your app’s storage and relay
|
|
104
107
|
|
|
@@ -106,14 +109,14 @@ Choose the device-local store for your runtime. Then supply a relay that authent
|
|
|
106
109
|
|
|
107
110
|
| Runtime | Storage path | Deployment boundary |
|
|
108
111
|
|---|---|---|
|
|
109
|
-
| Expo | [`expoStore`](./local/store/expo/README.md) | Enable SQLCipher in the expo-sqlite config plugin. The SDK owns the database file, its key, and its migrations. Requires a native development or release build.
|
|
112
|
+
| Expo | [`expoStore`](./local/store/expo/README.md) | Enable SQLCipher in the expo-sqlite config plugin. The SDK owns the database file, its key, and its migrations. Requires a native development or release build. Expo Go does not include SQLCipher. |
|
|
110
113
|
| Browser | [`webSqliteStore`](./local/store/web-sqlite/README.md) | Needs the origin private file system and a CSP that allows `'wasm-unsafe-eval'`. The SDK owns the database file, its key, and its migrations. The key sits in IndexedDB in the same origin, so same-origin JavaScript can read it. Without the origin private file system, the open fails with `OPFS_UNAVAILABLE`. |
|
|
111
114
|
| Browser without the origin private file system | [`indexedDbStore`](./local/store/web/README.md) | Use a secure context and a restrictive CSP. Same-origin JavaScript can access stored records and their key. [Browser setup](https://docs.open-e2ee.dev/start/browser). |
|
|
112
115
|
| Bare React Native | [`reactNativeStore`](./local/store/react-native/README.md) | Enable SQLCipher with `"op-sqlite": { "sqlcipher": true }` in the app's `package.json`, and install `react-native-keychain`. The SDK owns the database file, its key, and its migrations. Requires a native build; with SQLCipher on, op-sqlite conflicts on iOS with `expo-sqlite`, `expo-updates`, and `use_frameworks!`. |
|
|
113
116
|
| Own key-value engine | [`keyValueStore`](./local/store/key-value/README.md) | Provide an atomic, durable key-value backend and a keychain-backed secret vault, and run the exported backend conformance kit. A Realm backend is included. |
|
|
114
117
|
| Node and Electron | [`nodeStore`](./local/store/node/README.md) | Install `better-sqlite3-multiple-ciphers` and pass a private directory on a local file system and a secret vault. In Electron, open it in the main process with the safeStorage vault. The SDK owns the database file, its key, and its migrations. |
|
|
115
118
|
|
|
116
|
-
React Native support starts at React Native 0.83.6 and Expo SDK 55. The peer ranges have no upper bound. CI checks these versions:
|
|
119
|
+
React Native support starts at React Native 0.83.6 and Expo SDK 55. The peer ranges have no upper bound. Internal CI checks these versions:
|
|
117
120
|
|
|
118
121
|
| CI check | Versions |
|
|
119
122
|
|---|---|
|
|
@@ -129,7 +132,7 @@ The [adapter guide](./ADAPTERS.md) defines every storage, relay, vault, and obje
|
|
|
129
132
|
|
|
130
133
|
## Security and assurance
|
|
131
134
|
|
|
132
|
-
The SDK is open source. Our engineering tests remain private. We publish the [testing methodology and dated results](./docs/ASSURANCE.md), including what readers can and cannot verify from this repository. Public CI rebuilds the package, checks types and dependencies, and
|
|
135
|
+
The SDK is open source. Our engineering tests remain private. We publish the [testing methodology and dated results](./docs/ASSURANCE.md), including what readers can and cannot verify from this repository. Public CI rebuilds the client package, checks types and dependencies, and validates the public import surface.
|
|
133
136
|
|
|
134
137
|
> Reviewed continuously by adversarial AI agents; not audited by any independent firm.
|
|
135
138
|
|
package/SECURITY.md
CHANGED
package/client/README.md
CHANGED
|
@@ -33,6 +33,17 @@ await signal.encryptMessage(bob, 'hello');
|
|
|
33
33
|
|
|
34
34
|
### With relay
|
|
35
35
|
|
|
36
|
+
Run `oe new` in the application directory. It creates the Relay project and
|
|
37
|
+
its Sandbox environment, and it writes the connection URL to `.env.local`. In
|
|
38
|
+
a Sandbox environment, `hostedRelaySandboxIdentity(storage)` supplies
|
|
39
|
+
`getIdentityAssertion` from a key in the device-local store. In production,
|
|
40
|
+
supply `getIdentityAssertion` from your authentication integration. It returns
|
|
41
|
+
a short-lived signed assertion for the signed-in user.
|
|
42
|
+
|
|
43
|
+
The hosted factory registers the device and publishes its public prekeys.
|
|
44
|
+
The published SDK contains client code and transport contracts. Relay server
|
|
45
|
+
implementations run separately.
|
|
46
|
+
|
|
36
47
|
<!-- doc-snippet:skip requires-external-context -->
|
|
37
48
|
```ts
|
|
38
49
|
import { createHostedSignalProtocolClient } from '@open-e2ee/signal-protocol-sdk';
|
package/dist/client/client.d.ts
CHANGED
|
@@ -10,18 +10,15 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @example Basic usage
|
|
12
12
|
* ```typescript
|
|
13
|
-
* import {
|
|
14
|
-
* import { inMemoryStore } from '@open-e2ee/signal-protocol-sdk/local/store/memory';
|
|
15
|
-
* import { inMemoryRelay } from '@open-e2ee/signal-protocol-sdk/remote/relay/memory';
|
|
13
|
+
* import { createHostedSignalProtocolClient } from '@open-e2ee/signal-protocol-sdk';
|
|
16
14
|
*
|
|
17
|
-
*
|
|
18
|
-
* const signal = await
|
|
19
|
-
*
|
|
20
|
-
*
|
|
15
|
+
* // Supply a device-local store and the configured identity-provider callback.
|
|
16
|
+
* const signal = await createHostedSignalProtocolClient({
|
|
17
|
+
* adapters: { storage },
|
|
18
|
+
* hosted: { relayUrl, getIdentityAssertion },
|
|
21
19
|
* });
|
|
22
20
|
*
|
|
23
|
-
* await signal.
|
|
24
|
-
* await signal.send('bob', 'Hello!');
|
|
21
|
+
* await signal.send(recipientUserId, 'Hello!');
|
|
25
22
|
* ```
|
|
26
23
|
*
|
|
27
24
|
* @example With product security policy
|
|
@@ -97,9 +94,11 @@ export declare class DefaultSignalProtocolClient implements SignalProtocolClient
|
|
|
97
94
|
private readonly sesameManager;
|
|
98
95
|
private readonly _address;
|
|
99
96
|
private readonly senderKeyManager;
|
|
97
|
+
private readonly groupSenderKeys;
|
|
100
98
|
private groupManager?;
|
|
101
99
|
private groupSessionFor?;
|
|
102
100
|
private groupStore?;
|
|
101
|
+
private groupReceiveAuthorizer?;
|
|
103
102
|
private readonly cipher;
|
|
104
103
|
private readonly fanOut;
|
|
105
104
|
/**
|
|
@@ -212,6 +211,12 @@ export declare class DefaultSignalProtocolClient implements SignalProtocolClient
|
|
|
212
211
|
* the stop signal ends it. There are none without a relay.
|
|
213
212
|
*/
|
|
214
213
|
private sendSessionCallbacks;
|
|
214
|
+
/**
|
|
215
|
+
* Run a task with hooks that the task queues and this method calls after
|
|
216
|
+
* the task settles. A task that holds a group's Sender Key lock uses it, so
|
|
217
|
+
* a hook can call a client method that takes the same lock.
|
|
218
|
+
*/
|
|
219
|
+
private withDeferredHooks;
|
|
215
220
|
/**
|
|
216
221
|
* Get relay subscription config
|
|
217
222
|
*/
|
|
@@ -233,7 +238,6 @@ export declare class DefaultSignalProtocolClient implements SignalProtocolClient
|
|
|
233
238
|
* @example
|
|
234
239
|
* ```typescript
|
|
235
240
|
* import { DefaultSignalProtocolClient } from '@open-e2ee/signal-protocol-sdk';
|
|
236
|
-
* import { inMemoryRelay } from '@open-e2ee/signal-protocol-sdk/remote/relay/memory';
|
|
237
241
|
*
|
|
238
242
|
* // Local-only primary device.
|
|
239
243
|
* const signal = await DefaultSignalProtocolClient.create('user-123', {
|
|
@@ -246,8 +250,8 @@ export declare class DefaultSignalProtocolClient implements SignalProtocolClient
|
|
|
246
250
|
* storage: provisionedLinkedDeviceStorage
|
|
247
251
|
* });
|
|
248
252
|
*
|
|
249
|
-
* // With relay
|
|
250
|
-
* const relay =
|
|
253
|
+
* // With an application-owned authenticated relay transport.
|
|
254
|
+
* const relay = appRelayTransport;
|
|
251
255
|
* const signal = await DefaultSignalProtocolClient.create('user-123', {
|
|
252
256
|
* storage,
|
|
253
257
|
* relay,
|
|
@@ -618,10 +622,10 @@ export declare class DefaultSignalProtocolClient implements SignalProtocolClient
|
|
|
618
622
|
*/
|
|
619
623
|
send(recipientId: string, content: DataMessageInput | string | Uint8Array, options?: SendOptions): Promise<SendResult>;
|
|
620
624
|
/**
|
|
621
|
-
* Send with
|
|
625
|
+
* Send with session callbacks whose hooks run through the given context.
|
|
622
626
|
* The stop signal of relay work ends a wait for the recipient's lock.
|
|
623
627
|
*/
|
|
624
|
-
private
|
|
628
|
+
private sendWithContext;
|
|
625
629
|
uploadAttachment(data: Uint8Array, options: SendOptions & {
|
|
626
630
|
mimeType: string;
|
|
627
631
|
}): Promise<import('./types.js').PreparedAttachmentUpload>;
|
|
@@ -1135,6 +1139,9 @@ export declare class DefaultSignalProtocolClient implements SignalProtocolClient
|
|
|
1135
1139
|
* ```
|
|
1136
1140
|
*/
|
|
1137
1141
|
distributeSenderKeyToUser(groupId: string, recipientUserId: string): Promise<void>;
|
|
1142
|
+
/** Called only while this client holds the group's Sender Key operation. */
|
|
1143
|
+
private getOrCreateSenderKeyDistribution;
|
|
1144
|
+
private sendSenderKeyDistribution;
|
|
1138
1145
|
/**
|
|
1139
1146
|
* Distribute sender key to all group members.
|
|
1140
1147
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../client/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAKH,OAAO,KAAK,EAGV,oBAAoB,EACpB,WAAW,EACZ,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEjF,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EAIrB,MAAM,UAAU,CAAC;A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