@open-e2ee/signal-protocol-sdk 0.1.0-alpha.4 → 0.1.0-alpha.6
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 -15
- package/CHANGELOG.md +109 -0
- package/README.md +4 -2
- package/blocking/README.md +5 -5
- package/client/README.md +2 -2
- package/dist/blocking/index.d.ts +2 -2
- package/dist/blocking/index.d.ts.map +1 -1
- package/dist/blocking/index.js +1 -1
- package/dist/blocking/index.js.map +1 -1
- package/dist/blocking/manager.d.ts +7 -7
- package/dist/blocking/manager.d.ts.map +1 -1
- package/dist/blocking/manager.js +3 -3
- package/dist/blocking/manager.js.map +1 -1
- package/dist/blocking/types.d.ts +4 -4
- package/dist/blocking/types.d.ts.map +1 -1
- package/dist/blocking/types.js +1 -1
- package/dist/client/client.d.ts +3 -3
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/client.js +11 -11
- package/dist/client/client.js.map +1 -1
- package/dist/client/compose.d.ts +7 -7
- package/dist/client/compose.d.ts.map +1 -1
- package/dist/client/config.d.ts +15 -15
- package/dist/client/config.d.ts.map +1 -1
- package/dist/client/content-adapter.d.ts +4 -4
- package/dist/client/content-adapter.d.ts.map +1 -1
- package/dist/client/content-adapter.js +1 -1
- package/dist/client/content-adapter.js.map +1 -1
- package/dist/client/dual-store.d.ts +5 -5
- package/dist/client/dual-store.d.ts.map +1 -1
- package/dist/client/dual-store.js.map +1 -1
- package/dist/client/endorsement-manager.d.ts.map +1 -1
- package/dist/client/endorsement-manager.js +2 -2
- package/dist/client/endorsement-manager.js.map +1 -1
- package/dist/client/event-hooks.d.ts +1 -1
- package/dist/client/headless.d.ts +11 -11
- package/dist/client/headless.d.ts.map +1 -1
- package/dist/client/headless.js +8 -8
- package/dist/client/headless.js.map +1 -1
- package/dist/client/index.d.ts +2 -2
- 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/key-rotation-core.d.ts +11 -11
- package/dist/client/key-rotation-core.d.ts.map +1 -1
- package/dist/client/key-rotation-core.js +22 -22
- package/dist/client/key-rotation-core.js.map +1 -1
- package/dist/client/media.d.ts +2 -2
- package/dist/client/media.js +5 -5
- package/dist/client/media.js.map +1 -1
- package/dist/client/messages.js +2 -2
- package/dist/client/messages.js.map +1 -1
- package/dist/client/relay-subscription.d.ts +2 -2
- package/dist/client/relay-subscription.d.ts.map +1 -1
- package/dist/client/relay-subscription.js +18 -1
- package/dist/client/relay-subscription.js.map +1 -1
- package/dist/client/retry.js +1 -1
- package/dist/client/retry.js.map +1 -1
- package/dist/client/sealed-sender-ops.d.ts +1 -1
- package/dist/client/sealed-sender-ops.d.ts.map +1 -1
- package/dist/client/sealed-sender-ops.js +4 -4
- package/dist/client/sealed-sender-ops.js.map +1 -1
- package/dist/client/sessions.d.ts.map +1 -1
- package/dist/client/sessions.js +3 -0
- package/dist/client/sessions.js.map +1 -1
- package/dist/client/signal-service-cipher.d.ts +14 -10
- package/dist/client/signal-service-cipher.d.ts.map +1 -1
- package/dist/client/signal-service-cipher.js +31 -23
- package/dist/client/signal-service-cipher.js.map +1 -1
- package/dist/client/types.d.ts +8 -8
- package/dist/client/types.d.ts.map +1 -1
- package/dist/device/connection.js +2 -2
- package/dist/device/connection.js.map +1 -1
- package/dist/device/device-id.d.ts.map +1 -1
- package/dist/device/device-id.js +4 -4
- package/dist/device/device-id.js.map +1 -1
- package/dist/device/provisioning.d.ts +5 -5
- package/dist/device/provisioning.d.ts.map +1 -1
- package/dist/device/provisioning.js +9 -9
- package/dist/device/provisioning.js.map +1 -1
- package/dist/device/transfer.d.ts.map +1 -1
- package/dist/device/transfer.js +14 -14
- package/dist/device/transfer.js.map +1 -1
- package/dist/files/index.d.ts +1 -1
- package/dist/files/index.js +1 -1
- package/dist/hooks/use-connection-presence.d.ts +5 -5
- package/dist/hooks/use-connection-presence.d.ts.map +1 -1
- package/dist/hooks/use-connection-presence.js +5 -5
- package/dist/hooks/use-connection-presence.js.map +1 -1
- package/dist/hooks/use-group-membership.d.ts +2 -2
- package/dist/hooks/use-key-rotation.js +2 -2
- package/dist/hooks/use-key-rotation.js.map +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/internal/crypto/ec/x25519-validation.d.ts.map +1 -1
- package/dist/internal/crypto/ec/x25519-validation.js +4 -4
- package/dist/internal/crypto/ec/x25519-validation.js.map +1 -1
- package/dist/internal/crypto/index.js +1 -1
- package/dist/internal/crypto/index.js.map +1 -1
- package/dist/internal/crypto/kdf/hkdf.d.ts +1 -1
- package/dist/internal/crypto/kdf/hkdf.d.ts.map +1 -1
- package/dist/internal/crypto/kdf/hkdf.js +2 -2
- package/dist/internal/crypto/kdf/hkdf.js.map +1 -1
- package/dist/internal/crypto/key-prefix.d.ts +1 -1
- package/dist/internal/crypto/key-prefix.js +1 -1
- package/dist/internal/crypto/pq/kyber.d.ts +1 -1
- package/dist/internal/crypto/pq/kyber.js +1 -1
- package/dist/internal/crypto/symmetric/aes-gcm-siv.d.ts +1 -1
- package/dist/internal/crypto/symmetric/aes-gcm-siv.js +1 -1
- package/dist/internal/crypto/symmetric/mac.d.ts +3 -3
- package/dist/internal/crypto/symmetric/mac.js +3 -3
- package/dist/internal/crypto/utils.d.ts +2 -2
- package/dist/internal/crypto/utils.js +2 -2
- package/dist/internal/encoding/proto/envelope.d.ts +21 -21
- package/dist/internal/encoding/proto/envelope.d.ts.map +1 -1
- package/dist/internal/encoding/proto/envelope.js +25 -25
- package/dist/internal/encoding/proto/envelope.js.map +1 -1
- package/dist/internal/encoding/proto/index.d.ts +2 -2
- package/dist/internal/encoding/proto/index.d.ts.map +1 -1
- package/dist/internal/encoding/proto/index.js +3 -3
- package/dist/internal/encoding/proto/index.js.map +1 -1
- package/dist/internal/encoding/proto/pq-ratchet-serialize.d.ts +5 -5
- package/dist/internal/encoding/proto/pq-ratchet-serialize.d.ts.map +1 -1
- package/dist/internal/encoding/proto/pq-ratchet-serialize.js +4 -4
- package/dist/internal/encoding/proto/pq-ratchet-serialize.js.map +1 -1
- package/dist/internal/encoding/proto/signal-message.d.ts +33 -33
- package/dist/internal/encoding/proto/signal-message.d.ts.map +1 -1
- package/dist/internal/encoding/proto/signal-message.js +58 -58
- package/dist/internal/encoding/proto/signal-message.js.map +1 -1
- package/dist/internal/groups/group-id.d.ts +1 -1
- package/dist/internal/groups/group-id.js +1 -1
- package/dist/internal/groups/group-id.js.map +1 -1
- package/dist/internal/groups-v2/access-control.d.ts +8 -1
- package/dist/internal/groups-v2/access-control.d.ts.map +1 -1
- package/dist/internal/groups-v2/access-control.js +8 -1
- package/dist/internal/groups-v2/access-control.js.map +1 -1
- package/dist/internal/groups-v2/change-actions.d.ts +8 -3
- package/dist/internal/groups-v2/change-actions.d.ts.map +1 -1
- package/dist/internal/groups-v2/change-actions.js +8 -3
- package/dist/internal/groups-v2/change-actions.js.map +1 -1
- package/dist/internal/groups-v2/index.d.ts +7 -2
- package/dist/internal/groups-v2/index.d.ts.map +1 -1
- package/dist/internal/groups-v2/index.js.map +1 -1
- package/dist/internal/groups-v2/manager.d.ts +4 -2
- package/dist/internal/groups-v2/manager.d.ts.map +1 -1
- package/dist/internal/groups-v2/manager.js +5 -3
- package/dist/internal/groups-v2/manager.js.map +1 -1
- package/dist/internal/groups-v2/types.d.ts +10 -3
- package/dist/internal/groups-v2/types.d.ts.map +1 -1
- package/dist/internal/groups-v2/types.js.map +1 -1
- package/dist/internal/manager/manager.d.ts +3 -3
- package/dist/internal/manager/manager.d.ts.map +1 -1
- package/dist/internal/manager/manager.js +28 -17
- package/dist/internal/manager/manager.js.map +1 -1
- package/dist/internal/protocol/double-ratchet/chains.d.ts +1 -1
- package/dist/internal/protocol/double-ratchet/chains.d.ts.map +1 -1
- package/dist/internal/protocol/double-ratchet/chains.js +10 -10
- package/dist/internal/protocol/double-ratchet/chains.js.map +1 -1
- package/dist/internal/protocol/double-ratchet/ratchet.d.ts +3 -3
- package/dist/internal/protocol/double-ratchet/ratchet.d.ts.map +1 -1
- package/dist/internal/protocol/double-ratchet/ratchet.js +3 -3
- package/dist/internal/protocol/double-ratchet/ratchet.js.map +1 -1
- package/dist/internal/protocol/pqxdh/pqxdh.d.ts.map +1 -1
- package/dist/internal/protocol/pqxdh/pqxdh.js +3 -3
- package/dist/internal/protocol/pqxdh/pqxdh.js.map +1 -1
- package/dist/internal/protocol/sealed-sender/decryption.js +2 -2
- package/dist/internal/protocol/sealed-sender/decryption.js.map +1 -1
- package/dist/internal/protocol/sealed-sender/types.d.ts +1 -1
- package/dist/internal/protocol/sealed-sender/types.js +1 -1
- package/dist/internal/protocol/sender-keys/index.d.ts +1 -1
- package/dist/internal/protocol/sender-keys/manager.d.ts +4 -4
- package/dist/internal/protocol/sender-keys/manager.d.ts.map +1 -1
- package/dist/internal/protocol/sender-keys/manager.js +5 -5
- package/dist/internal/protocol/sender-keys/manager.js.map +1 -1
- package/dist/internal/protocol/spqr/index.d.ts +1 -1
- package/dist/internal/protocol/spqr/index.js +1 -1
- package/dist/internal/protocol/spqr/message.d.ts +1 -1
- package/dist/internal/protocol/spqr/message.js +1 -1
- package/dist/internal/protocol/spqr/ml-kem-braid/rs/codec.d.ts +3 -3
- package/dist/internal/protocol/spqr/ml-kem-braid/rs/codec.d.ts.map +1 -1
- package/dist/internal/protocol/spqr/ml-kem-braid/rs/index.js +2 -2
- package/dist/internal/protocol/spqr/ml-kem-braid/rs/index.js.map +1 -1
- package/dist/internal/protocol/spqr/ml-kem-braid/rs/lagrange.d.ts +1 -1
- package/dist/internal/protocol/spqr/ml-kem-braid/rs/lagrange.js +1 -1
- package/dist/internal/protocol/spqr/ml-kem-braid/rs/lagrange.js.map +1 -1
- package/dist/internal/protocol/spqr/ml-kem-braid/serialize.d.ts +1 -1
- package/dist/internal/protocol/spqr/ml-kem-braid/serialize.js +1 -1
- package/dist/internal/protocol/spqr/ml-kem-braid/state-machine.js +5 -5
- package/dist/internal/protocol/spqr/ml-kem-braid/state-machine.js.map +1 -1
- package/dist/internal/protocol/spqr/ml-kem-braid/types.d.ts +1 -1
- package/dist/internal/protocol/spqr/ml-kem-braid/types.d.ts.map +1 -1
- package/dist/internal/protocol/spqr/spqr.d.ts +10 -10
- package/dist/internal/protocol/spqr/spqr.d.ts.map +1 -1
- package/dist/internal/protocol/spqr/spqr.js +14 -14
- package/dist/internal/protocol/spqr/spqr.js.map +1 -1
- package/dist/internal/protocol/triple-ratchet/ratchet.d.ts +3 -3
- package/dist/internal/protocol/triple-ratchet/ratchet.d.ts.map +1 -1
- package/dist/internal/protocol/triple-ratchet/ratchet.js +5 -5
- package/dist/internal/protocol/triple-ratchet/ratchet.js.map +1 -1
- package/dist/internal/protocol/username/generate.d.ts +1 -1
- package/dist/internal/protocol/username/generate.js +1 -1
- package/dist/internal/protocol/username/hash.d.ts +1 -1
- package/dist/internal/protocol/username/hash.js +1 -1
- package/dist/internal/protocol/username/link.d.ts +1 -1
- package/dist/internal/protocol/username/link.js +1 -1
- package/dist/internal/protocol/username/proof.d.ts +1 -1
- package/dist/internal/protocol/username/proof.js +1 -1
- package/dist/internal/protocol/x3dh/x3dh.d.ts.map +1 -1
- package/dist/internal/protocol/x3dh/x3dh.js +6 -6
- package/dist/internal/protocol/x3dh/x3dh.js.map +1 -1
- package/dist/internal/protocol/zk/groups/client-zk-group-cipher.d.ts +2 -2
- package/dist/internal/protocol/zk/groups/client-zk-group-cipher.js +2 -2
- package/dist/internal/sesame/device-registry.d.ts +18 -13
- package/dist/internal/sesame/device-registry.d.ts.map +1 -1
- package/dist/internal/sesame/device-registry.js +13 -9
- package/dist/internal/sesame/device-registry.js.map +1 -1
- package/dist/internal/sesame/manager.d.ts +1 -1
- package/dist/internal/sesame/manager.d.ts.map +1 -1
- package/dist/internal/sesame/manager.js +16 -16
- package/dist/internal/sesame/manager.js.map +1 -1
- package/dist/internal/session/builder.js +3 -3
- package/dist/internal/session/builder.js.map +1 -1
- package/dist/internal/session/cipher.d.ts +2 -2
- package/dist/internal/session/cipher.d.ts.map +1 -1
- package/dist/internal/session/cipher.js +30 -30
- package/dist/internal/session/cipher.js.map +1 -1
- package/dist/internal/session/decryption.d.ts +1 -1
- package/dist/internal/session/decryption.js +10 -10
- package/dist/internal/session/decryption.js.map +1 -1
- package/dist/internal/session/factory.d.ts.map +1 -1
- package/dist/internal/session/factory.js +3 -3
- package/dist/internal/session/factory.js.map +1 -1
- package/dist/internal/session/handshake.d.ts.map +1 -1
- package/dist/internal/session/handshake.js +3 -3
- package/dist/internal/session/handshake.js.map +1 -1
- package/dist/internal/session/keys.d.ts +1 -1
- package/dist/internal/session/ratchet.d.ts.map +1 -1
- package/dist/internal/session/ratchet.js +4 -4
- package/dist/internal/session/ratchet.js.map +1 -1
- package/dist/internal/session/types.d.ts +2 -2
- package/dist/internal/session/types.d.ts.map +1 -1
- package/dist/internal/session/validation.d.ts.map +1 -1
- package/dist/internal/session/validation.js +3 -3
- package/dist/internal/session/validation.js.map +1 -1
- package/dist/keys/generation.d.ts +1 -1
- package/dist/keys/generation.js +1 -1
- package/dist/keys/types.d.ts +1 -1
- package/dist/keys/types.d.ts.map +1 -1
- package/dist/layers.d.ts +2 -2
- package/dist/layers.d.ts.map +1 -1
- package/dist/layers.js +4 -4
- package/dist/layers.js.map +1 -1
- package/dist/local/store/expo/adapter.d.ts +11 -11
- package/dist/local/store/expo/adapter.d.ts.map +1 -1
- package/dist/local/store/expo/adapter.js +9 -9
- package/dist/local/store/expo/adapter.js.map +1 -1
- package/dist/local/store/expo/database-key.d.ts +2 -2
- package/dist/local/store/expo/database-key.d.ts.map +1 -1
- package/dist/local/store/expo/database-key.js +5 -5
- package/dist/local/store/expo/database-key.js.map +1 -1
- package/dist/local/store/expo/db.d.ts +9 -9
- package/dist/local/store/expo/db.d.ts.map +1 -1
- package/dist/local/store/expo/db.js +3 -3
- package/dist/local/store/expo/db.js.map +1 -1
- package/dist/local/store/expo/index.d.ts +7 -7
- package/dist/local/store/expo/index.d.ts.map +1 -1
- package/dist/local/store/expo/index.js +3 -3
- package/dist/local/store/expo/index.js.map +1 -1
- package/dist/local/store/expo/key-storage.d.ts +1 -1
- package/dist/local/store/expo/key-storage.d.ts.map +1 -1
- package/dist/local/store/expo/key-storage.js +4 -4
- package/dist/local/store/expo/key-storage.js.map +1 -1
- package/dist/local/store/expo/models/local-identity.d.ts +1 -1
- package/dist/local/store/expo/models/local-identity.js +1 -1
- package/dist/local/store/expo/models/sender-key.d.ts +3 -3
- package/dist/local/store/expo/models/sender-key.d.ts.map +1 -1
- package/dist/local/store/expo/models/sender-key.js +3 -3
- package/dist/local/store/expo/models/sender-key.js.map +1 -1
- package/dist/local/store/expo/schema.d.ts +1 -1
- package/dist/local/store/expo/schema.js +1 -1
- package/dist/local/store/expo/secure-store-options.d.ts +2 -2
- package/dist/local/store/expo/secure-store-options.d.ts.map +1 -1
- package/dist/local/store/expo/secure-store-options.js +1 -1
- package/dist/local/store/expo/secure-store-options.js.map +1 -1
- package/dist/local/store/index.d.ts +9 -9
- package/dist/local/store/index.d.ts.map +1 -1
- package/dist/local/store/index.js +8 -8
- package/dist/local/store/index.js.map +1 -1
- package/dist/local/store/mock/adapter.d.ts +10 -4
- package/dist/local/store/mock/adapter.d.ts.map +1 -1
- package/dist/local/store/mock/adapter.js +119 -49
- package/dist/local/store/mock/adapter.js.map +1 -1
- package/dist/local/store/mock/failures.d.ts +34 -0
- package/dist/local/store/mock/failures.d.ts.map +1 -0
- package/dist/local/store/mock/failures.js +75 -0
- package/dist/local/store/mock/failures.js.map +1 -0
- package/dist/local/store/mock/index.d.ts +4 -3
- package/dist/local/store/mock/index.d.ts.map +1 -1
- package/dist/local/store/mock/index.js +5 -4
- package/dist/local/store/mock/index.js.map +1 -1
- package/dist/local/store/node/adapter.d.ts +4 -4
- package/dist/local/store/node/adapter.d.ts.map +1 -1
- package/dist/local/store/node/adapter.js +2 -2
- package/dist/local/store/node/adapter.js.map +1 -1
- package/dist/local/store/node/database-key.js +1 -1
- package/dist/local/store/node/database.d.ts.map +1 -1
- package/dist/local/store/node/database.js +2 -2
- package/dist/local/store/node/database.js.map +1 -1
- package/dist/local/store/node/index.d.ts +4 -4
- package/dist/local/store/node/index.d.ts.map +1 -1
- package/dist/local/store/node/index.js +3 -3
- package/dist/local/store/node/index.js.map +1 -1
- package/dist/local/store/react-native/adapter.d.ts +5 -5
- package/dist/local/store/react-native/adapter.d.ts.map +1 -1
- package/dist/local/store/react-native/adapter.js +14 -14
- package/dist/local/store/react-native/adapter.js.map +1 -1
- package/dist/local/store/react-native/index.d.ts +4 -4
- package/dist/local/store/react-native/index.d.ts.map +1 -1
- package/dist/local/store/react-native/index.js +3 -3
- package/dist/local/store/react-native/index.js.map +1 -1
- package/dist/local/store/react-native/storage.d.ts +2 -2
- package/dist/local/store/web/adapter.d.ts +4 -4
- package/dist/local/store/web/adapter.d.ts.map +1 -1
- package/dist/local/store/web/adapter.js +21 -9
- package/dist/local/store/web/adapter.js.map +1 -1
- package/dist/local/store/web/index.d.ts +4 -4
- package/dist/local/store/web/index.d.ts.map +1 -1
- package/dist/local/store/web/index.js +3 -3
- package/dist/local/store/web/index.js.map +1 -1
- package/dist/local/vault/expo-secure-store.d.ts +2 -2
- package/dist/local/vault/expo-secure-store.d.ts.map +1 -1
- package/dist/local/vault/expo-secure-store.js +5 -5
- package/dist/local/vault/expo-secure-store.js.map +1 -1
- package/dist/local/vault/index.d.ts +3 -3
- package/dist/local/vault/index.d.ts.map +1 -1
- package/dist/local/vault/index.js +1 -1
- package/dist/local/vault/index.js.map +1 -1
- package/dist/logger.d.ts +4 -4
- package/dist/logger.d.ts.map +1 -1
- package/dist/logger.js +5 -5
- package/dist/logger.js.map +1 -1
- package/dist/media/index.d.ts +7 -7
- package/dist/media/index.d.ts.map +1 -1
- package/dist/media/index.js +2 -2
- package/dist/profile/cipher.d.ts +1 -1
- package/dist/profile/cipher.js +1 -1
- package/dist/profile/contact-state.d.ts +1 -1
- package/dist/profile/contact-state.d.ts.map +1 -1
- package/dist/profile/contact-state.js +3 -3
- package/dist/profile/contact-state.js.map +1 -1
- package/dist/profile/crypto.d.ts +1 -1
- package/dist/profile/crypto.js +1 -1
- package/dist/profile/profile-key.d.ts.map +1 -1
- package/dist/profile/profile-key.js +3 -3
- package/dist/profile/profile-key.js.map +1 -1
- package/dist/profile/update-service.d.ts +2 -2
- package/dist/profile/update-service.d.ts.map +1 -1
- package/dist/profile/update-service.js +2 -2
- package/dist/profile/update-service.js.map +1 -1
- package/dist/remote/object-store/convex-r2/server.d.ts +1 -1
- package/dist/remote/object-store/convex-r2/storage.d.ts +2 -2
- package/dist/remote/object-store/convex-r2/storage.d.ts.map +1 -1
- package/dist/remote/object-store/index.d.ts +1 -1
- package/dist/remote/object-store/index.d.ts.map +1 -1
- package/dist/remote/object-store/s3/storage.d.ts +3 -3
- package/dist/remote/object-store/s3/storage.d.ts.map +1 -1
- package/dist/remote/object-store/s3/storage.js +1 -1
- package/dist/remote/object-store/types.d.ts +1 -1
- package/dist/remote/object-store/types.d.ts.map +1 -1
- package/dist/remote/relay/convex/index.d.ts +10 -10
- package/dist/remote/relay/convex/index.d.ts.map +1 -1
- package/dist/remote/relay/convex/index.js +6 -6
- package/dist/remote/relay/convex/index.js.map +1 -1
- package/dist/remote/relay/convex/relay.d.ts +13 -13
- package/dist/remote/relay/convex/relay.d.ts.map +1 -1
- package/dist/remote/relay/convex/relay.js +12 -12
- package/dist/remote/relay/convex/relay.js.map +1 -1
- package/dist/remote/relay/convex/types.d.ts +7 -7
- package/dist/remote/relay/convex/types.js +1 -1
- package/dist/remote/relay/index.d.ts +7 -7
- package/dist/remote/relay/index.d.ts.map +1 -1
- package/dist/remote/relay/index.js +6 -6
- package/dist/remote/relay/index.js.map +1 -1
- package/dist/remote/relay/mock/adapter.d.ts +17 -6
- package/dist/remote/relay/mock/adapter.d.ts.map +1 -1
- package/dist/remote/relay/mock/adapter.js +173 -54
- package/dist/remote/relay/mock/adapter.js.map +1 -1
- package/dist/remote/relay/mock/failures.d.ts +58 -0
- package/dist/remote/relay/mock/failures.d.ts.map +1 -0
- package/dist/remote/relay/mock/failures.js +123 -0
- package/dist/remote/relay/mock/failures.js.map +1 -0
- package/dist/remote/relay/mock/index.d.ts +4 -3
- package/dist/remote/relay/mock/index.d.ts.map +1 -1
- package/dist/remote/relay/mock/index.js +5 -4
- package/dist/remote/relay/mock/index.js.map +1 -1
- package/dist/remote/relay/types.d.ts +12 -12
- package/dist/remote/relay/types.d.ts.map +1 -1
- package/dist/remote/relay/types.js +3 -3
- package/dist/safety/protobuf.d.ts +1 -1
- package/dist/safety/protobuf.d.ts.map +1 -1
- package/dist/types/api.d.ts +8 -8
- package/dist/types/api.d.ts.map +1 -1
- package/dist/types/errors.d.ts +2 -2
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +2 -2
- package/dist/types/errors.js.map +1 -1
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/protocol-config.d.ts +20 -4
- package/dist/types/protocol-config.d.ts.map +1 -1
- package/dist/types/protocol-config.js +17 -2
- package/dist/types/protocol-config.js.map +1 -1
- package/dist/types/protocol-constants.d.ts +1 -1
- package/dist/types/protocol-constants.js +1 -1
- package/dist/utils/binary-transfer.d.ts +1 -1
- package/dist/utils/errors.d.ts +2 -2
- package/dist/utils/errors.js +2 -2
- package/dist/utils/retry.d.ts +4 -3
- package/dist/utils/retry.d.ts.map +1 -1
- package/dist/utils/retry.js +20 -1
- package/dist/utils/retry.js.map +1 -1
- package/dist/zk/groups.d.ts +1 -1
- package/dist/zk/groups.js +1 -1
- package/docs/CLIENT_COMPOSITION.md +7 -5
- package/docs/DEVIATIONS.md +97 -80
- package/docs/GETTING_STARTED.md +12 -8
- package/docs/INTERFACES.md +22 -22
- package/docs/PACKAGE_SURFACE.md +12 -12
- package/docs/PROTOCOL_POLICY.md +2 -2
- package/docs/RECIPES.md +6 -2
- package/docs/api/classes/EndorsementManager.md +1 -1
- package/docs/api/classes/{SignalBlockingManager.md → SignalProtocolBlockingManager.md} +5 -5
- package/docs/api/classes/SignalProtocolClient.md +4 -4
- package/docs/api/functions/createDefaultSignalProtocolContentAdapter.md +13 -0
- package/docs/api/functions/{createDefaultSignalLogger.md → createDefaultSignalProtocolLogger.md} +5 -5
- package/docs/api/functions/{resolveSignalLogger.md → resolveSignalProtocolLogger.md} +5 -5
- package/docs/api/interfaces/BlockedRecipientEntry.md +1 -1
- package/docs/api/interfaces/ILogger.md +1 -1
- package/docs/api/interfaces/IProtocolStore.md +1 -1
- package/docs/api/interfaces/ISenderKeyStore.md +1 -1
- package/docs/api/interfaces/ISesameStore.md +1 -1
- package/docs/api/interfaces/ISignalProtocolClient.md +2 -2
- package/docs/api/interfaces/{ISignalLocalSecretVault.md → ISignalProtocolLocalSecretVault.md} +4 -4
- package/docs/api/interfaces/{ISignalLocalStore.md → ISignalProtocolLocalStore.md} +4 -4
- package/docs/api/interfaces/{ISignalRelayServer.md → ISignalProtocolRelayServer.md} +3 -3
- package/docs/api/interfaces/{InspectedSignalContent.md → InspectedSignalProtocolContent.md} +2 -2
- package/docs/api/interfaces/MLKEMBraidAgentState.md +1 -1
- package/docs/api/interfaces/MessageHeader.md +1 -1
- package/docs/api/interfaces/PreKeyMaintenanceStore.md +2 -1
- package/docs/api/interfaces/SealedSenderConfig.md +1 -1
- package/docs/api/interfaces/{SignalBlockingHooks.md → SignalProtocolBlockingHooks.md} +2 -2
- package/docs/api/interfaces/SignalProtocolBlockingManagerOptions.md +31 -0
- package/docs/api/interfaces/{SignalBlockingMirror.md → SignalProtocolBlockingMirror.md} +2 -2
- package/docs/api/interfaces/{SignalBlockingStore.md → SignalProtocolBlockingStore.md} +2 -2
- package/docs/api/interfaces/SignalProtocolClientAdapterConfig.md +3 -3
- package/docs/api/interfaces/SignalProtocolClientCompositionOptions.md +2 -2
- package/docs/api/interfaces/SignalProtocolClientConfig.md +10 -10
- package/docs/api/interfaces/SignalProtocolClientHooks.md +1 -1
- package/docs/api/interfaces/SignalProtocolClientIdentityConfig.md +1 -1
- package/docs/api/interfaces/SignalProtocolClientMediaConfig.md +2 -2
- package/docs/api/interfaces/SignalProtocolConfig.md +1 -1
- package/docs/api/interfaces/{SignalContentAdapter.md → SignalProtocolContentAdapter.md} +4 -4
- package/docs/api/interfaces/{SignalRemoteObjectStore.md → SignalProtocolRemoteObjectStore.md} +2 -2
- package/docs/api/namespaces/blocking/README.md +10 -10
- package/docs/api/namespaces/encoding/functions/bytesToUrlSafeBase64.md +2 -2
- package/docs/api/namespaces/keys/functions/generateKemOneTimePreKeys.md +1 -1
- package/docs/api/namespaces/media/functions/prepareMediaAttachmentUpload.md +1 -1
- package/docs/api/namespaces/media/functions/resolveMediaAttachment.md +1 -1
- package/docs/api/namespaces/media/interfaces/DeleteMediaAttachmentOptions.md +1 -1
- package/docs/api/namespaces/media/interfaces/ExecuteMediaAttachmentJobOptions.md +1 -1
- package/docs/api/namespaces/media/interfaces/PrepareMediaAttachmentUploadOptions.md +1 -1
- package/docs/api/namespaces/media/interfaces/ResolveMediaAttachmentOptions.md +1 -1
- package/docs/api/namespaces/media/variables/downloadMediaAttachment.md +1 -1
- package/docs/api/type-aliases/GroupId.md +1 -1
- package/docs/api/variables/MAX_RECEIVER_CHAINS.md +1 -1
- package/docs/api/variables/ONE_TIME_PREKEY_BATCH_SIZE.md +1 -1
- package/docs/api/variables/{defaultSignalLogger.md → defaultSignalProtocolLogger.md} +5 -5
- package/files/README.md +1 -1
- package/local/store/README.md +10 -10
- package/local/store/expo/README.md +5 -5
- package/local/store/mock/README.md +32 -1
- package/local/store/node/README.md +1 -1
- package/local/store/react-native/README.md +1 -1
- package/local/store/web/README.md +1 -1
- package/local/vault/README.md +3 -3
- package/package.json +1 -1
- package/remote/README.md +19 -19
- package/remote/object-store/README.md +3 -3
- package/remote/object-store/convex-r2/README.md +1 -1
- package/remote/object-store/s3/README.md +1 -1
- package/remote/relay/README.md +2 -2
- package/remote/relay/convex/README.md +4 -4
- package/remote/relay/mock/README.md +38 -1
- package/types/README.md +1 -1
- package/docs/api/functions/createDefaultSignalContentAdapter.md +0 -13
- package/docs/api/interfaces/SignalBlockingManagerOptions.md +0 -31
package/ADAPTERS.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
## Adapter Roles
|
|
8
8
|
|
|
9
|
-
### Relay: `
|
|
9
|
+
### Relay: `ISignalProtocolRelayServer`
|
|
10
10
|
|
|
11
11
|
The relay interface handles server-owned Signal Protocol state:
|
|
12
12
|
|
|
@@ -17,11 +17,11 @@ The relay interface handles server-owned Signal Protocol state:
|
|
|
17
17
|
|
|
18
18
|
Use:
|
|
19
19
|
|
|
20
|
-
- `
|
|
21
|
-
- `
|
|
20
|
+
- `ConvexSignalProtocolRelayServer` from `@open-e2ee/signal-protocol-sdk/remote/relay/convex`
|
|
21
|
+
- `MockSignalProtocolRelayServer` from `@open-e2ee/signal-protocol-sdk/remote/relay/mock`
|
|
22
22
|
- or a custom implementation
|
|
23
23
|
|
|
24
|
-
### Storage: `
|
|
24
|
+
### Storage: `ISignalProtocolLocalStore`
|
|
25
25
|
|
|
26
26
|
The storage interface handles client-owned Signal Protocol state:
|
|
27
27
|
|
|
@@ -33,15 +33,15 @@ The storage interface handles client-owned Signal Protocol state:
|
|
|
33
33
|
|
|
34
34
|
Use:
|
|
35
35
|
|
|
36
|
-
- `
|
|
36
|
+
- `ExpoSignalProtocolStore` from `@open-e2ee/signal-protocol-sdk/local/store/expo`
|
|
37
37
|
- Expo integration helpers like `getKeyStorage`, `getDatabaseKeyManager`, `clearDatabaseKeyCache`, and `createPreKeyMaintenanceStore` from `@open-e2ee/signal-protocol-sdk/local/store/expo`
|
|
38
|
-
- `
|
|
39
|
-
- `
|
|
40
|
-
- `
|
|
41
|
-
- `
|
|
38
|
+
- `IndexedDbSignalProtocolStore` from `@open-e2ee/signal-protocol-sdk/local/store/web` (experimental)
|
|
39
|
+
- `ReactNativeSignalProtocolStore` from `@open-e2ee/signal-protocol-sdk/local/store/react-native` (experimental; use `await ReactNativeSignalProtocolStore.create({ storage })` with a caller-provided key-value backend)
|
|
40
|
+
- `NodeSignalProtocolStore` from `@open-e2ee/signal-protocol-sdk/local/store/node`
|
|
41
|
+
- `MockSignalProtocolStore` from `@open-e2ee/signal-protocol-sdk/local/store/mock`
|
|
42
42
|
- or a custom implementation
|
|
43
43
|
|
|
44
|
-
### Remote object storage: `
|
|
44
|
+
### Remote object storage: `SignalProtocolRemoteObjectStore`
|
|
45
45
|
|
|
46
46
|
Optional encrypted file upload/download support for two-layer attachment encryption.
|
|
47
47
|
|
|
@@ -83,12 +83,12 @@ const signal = await createSignalProtocolClient({
|
|
|
83
83
|
import { createSignalProtocolClient } from "@open-e2ee/signal-protocol-sdk";
|
|
84
84
|
import {
|
|
85
85
|
convexRelay,
|
|
86
|
-
type
|
|
86
|
+
type ConvexSignalProtocolRelayApi,
|
|
87
87
|
} from "@open-e2ee/signal-protocol-sdk/remote/relay/convex";
|
|
88
88
|
import { expoStore } from "@open-e2ee/signal-protocol-sdk/local/store/expo";
|
|
89
89
|
import { api } from "../convex/_generated/api";
|
|
90
90
|
|
|
91
|
-
const signalApi = api.signal satisfies
|
|
91
|
+
const signalApi = api.signal satisfies ConvexSignalProtocolRelayApi;
|
|
92
92
|
const relay = convexRelay({
|
|
93
93
|
convex,
|
|
94
94
|
api: signalApi,
|
|
@@ -162,9 +162,9 @@ Use the public interfaces:
|
|
|
162
162
|
|
|
163
163
|
```ts
|
|
164
164
|
import { createSignalProtocolClient } from "@open-e2ee/signal-protocol-sdk";
|
|
165
|
-
import type {
|
|
166
|
-
import type {
|
|
167
|
-
import type {
|
|
165
|
+
import type { ISignalProtocolRelayServer } from "@open-e2ee/signal-protocol-sdk/remote/relay";
|
|
166
|
+
import type { SignalProtocolRemoteObjectStore } from "@open-e2ee/signal-protocol-sdk/remote/object-store";
|
|
167
|
+
import type { ISignalProtocolLocalStore } from "@open-e2ee/signal-protocol-sdk/local/store";
|
|
168
168
|
```
|
|
169
169
|
|
|
170
170
|
Then compose them through `createSignalProtocolClient()`:
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,114 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.6
|
|
4
|
+
|
|
5
|
+
- **Breaking (key derivation): the X3DH and PQXDH info strings now name this
|
|
6
|
+
application and this KEM.** `X3DH_INFO_DEFAULT` becomes `OpenE2EE` and
|
|
7
|
+
`PQXDH_INFO_DEFAULT` becomes `OpenE2EE_X25519_SHA-256_ML-KEM-1024`; they were
|
|
8
|
+
`WhisperText` and `WhisperText_X25519_SHA-256_CRYSTALS-KYBER-1024`. Both
|
|
9
|
+
parameters were wrong. PQXDH §2.2 requires the info string to name the
|
|
10
|
+
`pqkem` actually in use, and the SDK runs ML-KEM-1024 (FIPS 203), not
|
|
11
|
+
round-3 CRYSTALS-Kyber — so two implementations feeding an identical label
|
|
12
|
+
derived *different* shared secrets, which is precisely what the info string
|
|
13
|
+
exists to prevent. And §2.1 defines `info` as an identifier of the
|
|
14
|
+
application deriving the key; this SDK is not Signal Messenger. **Sessions
|
|
15
|
+
established under the old labels derive a different `SK` and cannot be
|
|
16
|
+
continued** — clear session state or re-establish. Nothing else about the
|
|
17
|
+
derivation changed. An application that needs `libsignal`'s known-answer
|
|
18
|
+
vectors can still set `protocolStrategy.keyExchangeInfoString` to the old
|
|
19
|
+
label explicitly. `docs/DEVIATIONS.md` §2.1 recorded this as an open
|
|
20
|
+
specification violation and now records it as fixed.
|
|
21
|
+
- **Breaking (naming): every remaining exported identifier spelled `Signal`
|
|
22
|
+
now spells `SignalProtocol`.** "Signal" alone names a product and an
|
|
23
|
+
organization this project has no affiliation with; the specifications it
|
|
24
|
+
implements are the Signal Protocol, and the exported names now say so. This
|
|
25
|
+
renames roughly ninety exports — `MockSignalStore` to
|
|
26
|
+
`MockSignalProtocolStore`, `ISignalLocalStore` to `ISignalProtocolLocalStore`,
|
|
27
|
+
`SignalServiceCipher` to `SignalProtocolServiceCipher`, `defaultSignalLogger`
|
|
28
|
+
to `defaultSignalProtocolLogger`, `SignalMessage` and `PreKeySignalMessage` to
|
|
29
|
+
`SignalProtocolMessage` and `PreKeySignalProtocolMessage`, and so on
|
|
30
|
+
throughout. No aliases are provided. Nothing on the wire changes: the message
|
|
31
|
+
type names were protobuf type labels, which protobuf does not serialize, and
|
|
32
|
+
every domain-separation and key-derivation constant is untouched — including
|
|
33
|
+
the `Signal_ZKGroup_*`, `Signal_ZKCredential_*`, and `Signal_PQCKA_*`
|
|
34
|
+
families, which are byte inputs to key derivation rather than names.
|
|
35
|
+
- The public-surface guard now asserts that each retired name stays absent, and
|
|
36
|
+
is typechecked in CI. It is entirely type-level, so running it under jest —
|
|
37
|
+
which transpiles without typechecking — could never have failed; only `tsc`
|
|
38
|
+
can catch a reintroduced name.
|
|
39
|
+
- **Breaking (`SessionEstablisher`): `failedDeviceErrors` is now required.** The
|
|
40
|
+
exported `SessionEstablisher` type declared it optional, so an implementation
|
|
41
|
+
could return a result that said nothing about which devices failed and why.
|
|
42
|
+
Every implementation must now return the array; return `[]` when nothing
|
|
43
|
+
failed. Implementations that already populate it need no change.
|
|
44
|
+
- Changed device establishment to surface a failing device's own error instead
|
|
45
|
+
of a generic wrapper, and to route it through the retry classifier so a
|
|
46
|
+
transient failure is retried rather than failing the whole send on the first
|
|
47
|
+
attempt.
|
|
48
|
+
- Fixed the retry classifier treating permanent session-establishment failures
|
|
49
|
+
as retryable. `UNTRUSTED_IDENTITY`, `SIGNATURE_VERIFICATION_FAILED`,
|
|
50
|
+
`RECIPIENT_NOT_REGISTERED`, and `PREKEY_FETCH_RATE_LIMITED` now fail
|
|
51
|
+
immediately. They reach the classifier only because of the change above;
|
|
52
|
+
retrying a security event delays it reaching the caller, and retrying a
|
|
53
|
+
prekey-drainage rate limit aggravates the condition it reports.
|
|
54
|
+
- Fixed the exported in-memory relay delivering reorder-buffered envelopes to a
|
|
55
|
+
first subscriber, which duplicated messages that reordering had already held
|
|
56
|
+
back, and fixed reorder state being lost when a subscriber was replaced.
|
|
57
|
+
|
|
58
|
+
## 0.1.0-alpha.5
|
|
59
|
+
|
|
60
|
+
- **Breaking (wording and one error message): "Signal" is no longer used as a
|
|
61
|
+
loose shorthand.** Prose names the specifications "the Signal Protocol", the
|
|
62
|
+
product "Signal Messenger", and the reference implementation `libsignal`;
|
|
63
|
+
shipped source comments say "the reference implementation". Compatibility
|
|
64
|
+
shorthand such as "Signal-style", "Signal-aligned", and "Signal-grade" is
|
|
65
|
+
gone. Protocol domain-separation strings are untouched and remain
|
|
66
|
+
byte-identical. The Expo storage error message no longer carries a "Signal
|
|
67
|
+
Protocol " prefix; it now reads `Expo storage DB bindings not configured.
|
|
68
|
+
Configure them from the host app before using Expo storage.` Anything
|
|
69
|
+
matching on that text must be updated.
|
|
70
|
+
- Corrected GroupsV2 source comments that described the permission model as
|
|
71
|
+
server-enforced. The checks in `access-control.ts` run on the client over
|
|
72
|
+
already-decrypted state and bind an honest client, not a hostile one — the
|
|
73
|
+
server sees only opaque state and a version number. Change application order
|
|
74
|
+
is this SDK's own choice, taken from the proto field numbering for
|
|
75
|
+
determinism, not an order the specifications define; and the SDK does not
|
|
76
|
+
encrypt avatar content.
|
|
77
|
+
- Changed the exported in-memory relay to upsert EC and KEM one-time prekeys by
|
|
78
|
+
`keyId`. Re-uploading a batch is now idempotent; consumers that relied on
|
|
79
|
+
duplicate uploads inflating prekey counts will observe the corrected count.
|
|
80
|
+
- Changed the exported in-memory relay to enforce device IDs 1-5 and the
|
|
81
|
+
production-contract `Maximum devices limit reached` error. Removed and
|
|
82
|
+
disabled devices are excluded from active fanout, and unknown users now have
|
|
83
|
+
no invented device.
|
|
84
|
+
- Fixed `MockSignalProtocolRelayServer.clear()` retaining idempotency receipts, which
|
|
85
|
+
made a reused `clientMessageId` look already accepted after reset.
|
|
86
|
+
- Fixed the exported mock store and relay to structured-clone mutable values at
|
|
87
|
+
every persistence/API boundary, matching serialization ownership in durable
|
|
88
|
+
adapters for sessions, users, devices, prekeys, sender keys, and envelopes.
|
|
89
|
+
- Added opt-in, seeded mock failure controls for latency, disconnect/reconnect,
|
|
90
|
+
duplicate and reordered delivery, storage writes, authorization rejection,
|
|
91
|
+
and one-time-prekey exhaustion. Default construction is unchanged.
|
|
92
|
+
- Fixed duplicate relay delivery requesting a SESAME resend after the session
|
|
93
|
+
layer had already rejected the replay, which could surface plaintext twice.
|
|
94
|
+
Duplicate envelopes are now acknowledged without a retry request.
|
|
95
|
+
- Fixed session-establishment persistence failures being misreported as a
|
|
96
|
+
problem with the peer. An adapter failure at the atomic commit seam now
|
|
97
|
+
surfaces as `KEY_STORAGE_ERROR` with the adapter failure retained as the
|
|
98
|
+
cause, instead of `RECIPIENT_NOT_REGISTERED` or `INVALID_PREKEY_BUNDLE`, so
|
|
99
|
+
applications retry their own storage rather than refetching a bundle.
|
|
100
|
+
- Added shared storage contracts for Mock, Node, Web/IndexedDB, and Expo
|
|
101
|
+
adapters, plus an extensible relay contract. Fixed Web/IndexedDB `UserRecord`
|
|
102
|
+
decoding so `DeviceRecord.identityKey` remains an owned `Uint8Array`.
|
|
103
|
+
- Documentation now labels mock examples as real protocol and cryptography over
|
|
104
|
+
simulated in-memory infrastructure. CI executes every classified mock snippet
|
|
105
|
+
from the shipped onboarding, recipe, composition, and pricing docs against
|
|
106
|
+
the packed package.
|
|
107
|
+
- Fixed the npm publish workflow folding registry warnings into the value it
|
|
108
|
+
read as the current `latest` version. A warning containing a hyphen parsed as
|
|
109
|
+
a prerelease, which after a stable release would have routed a prerelease to
|
|
110
|
+
the `latest` dist-tag.
|
|
111
|
+
|
|
3
112
|
## 0.1.0-alpha.4
|
|
4
113
|
|
|
5
114
|
- **Security: a forged message header could force unbounded key derivation
|
package/README.md
CHANGED
|
@@ -50,7 +50,9 @@ Adapters declare their runtime requirements as optional peer dependencies, so in
|
|
|
50
50
|
|
|
51
51
|
Two clients, one process, no account and no server. The relay holds the envelope; only Bob's device turns it back into text.
|
|
52
52
|
|
|
53
|
+
<!-- mock-snippet:run readme-quick-start expect="alice: hello" -->
|
|
53
54
|
```ts
|
|
55
|
+
// Real protocol and cryptography; simulated in-memory infrastructure.
|
|
54
56
|
import { createSignalProtocolClient } from "@open-e2ee/signal-protocol-sdk";
|
|
55
57
|
import { mockStore } from "@open-e2ee/signal-protocol-sdk/local/store/mock";
|
|
56
58
|
import { mockRelay } from "@open-e2ee/signal-protocol-sdk/remote/relay/mock";
|
|
@@ -96,7 +98,7 @@ Measured from the GitHub and npm registry APIs on 2026-07-24. Every alternative
|
|
|
96
98
|
| [`@privacyresearch/libsignal-protocol-typescript`](https://github.com/privacyresearchgroup/libsignal-protocol-typescript) | No documented React Native path | Yes | No — last npm publish 2023-05-06, last repo push 2023-07-18 | No | Yes | No (GPL-3.0) |
|
|
97
99
|
| [`ts-mls`](https://github.com/LukaJCB/ts-mls) | Yes | Yes | Yes — very active | Yes | Yes | No (MIT) |
|
|
98
100
|
|
|
99
|
-
`ts-mls` implements [MLS (RFC 9420)](https://www.rfc-editor.org/rfc/rfc9420.html), a different protocol with different properties — if MLS suits your product, it is a good library and this table is not an argument against it. `@signalapp/libsignal-client` is the implementation Signal Messenger itself uses; its README states that use outside Signal is unsupported.
|
|
101
|
+
`ts-mls` implements [MLS (RFC 9420)](https://www.rfc-editor.org/rfc/rfc9420.html), a different protocol with different properties — if MLS suits your product, it is a good library and this table is not an argument against it. `@signalapp/libsignal-client` is the implementation Signal Messenger itself uses; its README states that use outside Signal Messenger is unsupported.
|
|
100
102
|
|
|
101
103
|
## Trust and verification
|
|
102
104
|
|
|
@@ -118,7 +120,7 @@ Cryptography deserves evidence rather than adjectives, so here is what there is
|
|
|
118
120
|
| [FIPS 203 (ML-KEM)](https://csrc.nist.gov/pubs/fips/203/final) | Final, 2024-08-13 |
|
|
119
121
|
| [RFC 8032 (Ed25519)](https://www.rfc-editor.org/rfc/rfc8032.html) | — |
|
|
120
122
|
|
|
121
|
-
**Not wire-compatible, and specific about why.** This SDK cannot exchange messages with Signal Messenger or `libsignal`, cannot exchange identities with them, and its safety numbers will never match the ones a Signal client displays for the same two users. The cryptographic core is the same; the wire profile is deliberately its own. Identities are a versioned composite of separate X25519 and Ed25519 keys rather than one Curve25519 key, so signatures are ordinary RFC 8032 Ed25519 rather than XEdDSA; ML-KEM-1024 keys and ciphertexts are tagged `0x0A`, distinct from the round-3 Kyber1024 `0x08` tag. [DEVIATIONS](https://github.com/open-e2ee/signal-protocol-js/blob/main/docs/DEVIATIONS.md) is the complete account — every difference from the specifications and from `libsignal`, with the reason, the cost, and the file that implements it. The threat model boundary is in the [security model](https://github.com/open-e2ee/signal-protocol-js/blob/main/docs/SECURITY.md).
|
|
123
|
+
**Not wire-compatible, and specific about why.** This SDK cannot exchange messages with Signal Messenger or `libsignal`, cannot exchange identities with them, and its safety numbers will never match the ones a Signal Messenger client displays for the same two users. The cryptographic core is the same; the wire profile is deliberately its own. Identities are a versioned composite of separate X25519 and Ed25519 keys rather than one Curve25519 key, so signatures are ordinary RFC 8032 Ed25519 rather than XEdDSA; ML-KEM-1024 keys and ciphertexts are tagged `0x0A`, distinct from the round-3 Kyber1024 `0x08` tag. [DEVIATIONS](https://github.com/open-e2ee/signal-protocol-js/blob/main/docs/DEVIATIONS.md) is the complete account — every difference from the specifications and from `libsignal`, with the reason, the cost, and the file that implements it. The threat model boundary is in the [security model](https://github.com/open-e2ee/signal-protocol-js/blob/main/docs/SECURITY.md).
|
|
122
124
|
|
|
123
125
|
**Dependencies: 7.** Seven direct production dependencies — `@noble/ciphers`, `@noble/curves`, `@noble/hashes`, `@noble/post-quantum`, `async-lock`, `protobufjs`, `unique-names-generator` — resolving to 8 packages in total, the eighth being `long` by way of `protobufjs`. Everything else in the tree is a development or optional peer dependency.
|
|
124
126
|
|
package/blocking/README.md
CHANGED
|
@@ -7,19 +7,19 @@ and optionally projects a snapshot to an application-owned mirror.
|
|
|
7
7
|
|
|
8
8
|
Blocking is a product decision with protocol consequences: blocked recipients
|
|
9
9
|
must be rejected consistently without making a remote mirror a second,
|
|
10
|
-
conflicting source of truth. `
|
|
10
|
+
conflicting source of truth. `SignalProtocolBlockingManager` centralizes that ordering.
|
|
11
11
|
|
|
12
12
|
## Usage
|
|
13
13
|
|
|
14
14
|
```ts
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
type
|
|
16
|
+
SignalProtocolBlockingManager,
|
|
17
|
+
type SignalProtocolBlockingStore,
|
|
18
18
|
} from "@open-e2ee/signal-protocol-sdk/blocking";
|
|
19
19
|
|
|
20
|
-
const store:
|
|
20
|
+
const store: SignalProtocolBlockingStore = appBlockingStore;
|
|
21
21
|
|
|
22
|
-
const blocking = new
|
|
22
|
+
const blocking = new SignalProtocolBlockingManager({
|
|
23
23
|
store,
|
|
24
24
|
mirror: {
|
|
25
25
|
syncBlockedRecipients: (entries) =>
|
package/client/README.md
CHANGED
|
@@ -34,11 +34,11 @@ await signal.encryptMessage(bob, 'hello');
|
|
|
34
34
|
|
|
35
35
|
```ts
|
|
36
36
|
import { createSignalProtocolClient } from '@open-e2ee/signal-protocol-sdk';
|
|
37
|
-
import { convexRelay, type
|
|
37
|
+
import { convexRelay, type ConvexSignalProtocolRelayApi } from '@open-e2ee/signal-protocol-sdk/remote/relay/convex';
|
|
38
38
|
import { expoStore } from '@open-e2ee/signal-protocol-sdk/local/store/expo';
|
|
39
39
|
import { api } from '../convex/_generated/api';
|
|
40
40
|
|
|
41
|
-
const signalApi = api.signal satisfies
|
|
41
|
+
const signalApi = api.signal satisfies ConvexSignalProtocolRelayApi;
|
|
42
42
|
|
|
43
43
|
// The relay handles server-side device lists, public prekeys, and envelopes.
|
|
44
44
|
const relay = convexRelay({
|
package/dist/blocking/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
export {
|
|
3
|
-
export type { BlockedRecipientEntry,
|
|
2
|
+
export { SignalProtocolBlockingManager, type SignalProtocolBlockingManagerOptions } from './manager.js';
|
|
3
|
+
export type { BlockedRecipientEntry, SignalProtocolBlockingStore, SignalProtocolBlockingMirror, SignalProtocolBlockingHooks, } from './types.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../blocking/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AACV,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../blocking/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AACV,OAAO,EAAE,6BAA6B,EAAE,KAAK,oCAAoC,EAAE,MAAM,WAAW,CAAC;AACrG,YAAY,EACV,qBAAqB,EACrB,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,GAC5B,MAAM,SAAS,CAAC"}
|
package/dist/blocking/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { SignalProtocolBlockingManager } from './manager.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../blocking/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../blocking/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAA6C,MAAM,WAAW,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type ILogger } from '../logger.js';
|
|
2
|
-
import type { BlockedRecipientEntry,
|
|
3
|
-
export interface
|
|
4
|
-
store:
|
|
5
|
-
mirror?:
|
|
6
|
-
hooks?:
|
|
2
|
+
import type { BlockedRecipientEntry, SignalProtocolBlockingHooks, SignalProtocolBlockingMirror, SignalProtocolBlockingStore } from './types.js';
|
|
3
|
+
export interface SignalProtocolBlockingManagerOptions {
|
|
4
|
+
store: SignalProtocolBlockingStore;
|
|
5
|
+
mirror?: SignalProtocolBlockingMirror;
|
|
6
|
+
hooks?: SignalProtocolBlockingHooks;
|
|
7
7
|
logger?: ILogger;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
@@ -12,12 +12,12 @@ export interface SignalBlockingManagerOptions {
|
|
|
12
12
|
* The local store is authoritative for the current device. Optional mirrors can
|
|
13
13
|
* project that state elsewhere without becoming a second mutation path.
|
|
14
14
|
*/
|
|
15
|
-
export declare class
|
|
15
|
+
export declare class SignalProtocolBlockingManager {
|
|
16
16
|
private readonly store;
|
|
17
17
|
private readonly mirror?;
|
|
18
18
|
private readonly hooks?;
|
|
19
19
|
private readonly logger;
|
|
20
|
-
constructor(options:
|
|
20
|
+
constructor(options: SignalProtocolBlockingManagerOptions);
|
|
21
21
|
isBlocked(recipientId: string): Promise<boolean>;
|
|
22
22
|
listBlockedRecipients(): Promise<BlockedRecipientEntry[]>;
|
|
23
23
|
blockRecipient(recipientId: string, blockedAt?: number): Promise<BlockedRecipientEntry>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../blocking/manager.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../blocking/manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AACtE,OAAO,KAAK,EACV,qBAAqB,EACrB,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,EAC5B,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,oCAAoC;IACnD,KAAK,EAAE,2BAA2B,CAAC;IACnC,MAAM,CAAC,EAAE,4BAA4B,CAAC;IACtC,KAAK,CAAC,EAAE,2BAA2B,CAAC;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;;GAKG;AACH,qBAAa,6BAA6B;IACxC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA8B;IACpD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAA+B;IACvD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAA8B;IACrD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoB;IAE3C,YAAY,OAAO,EAAE,oCAAoC,EAKxD;IAEK,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAErD;IAEK,qBAAqB,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAE9D;IAEK,cAAc,CAClB,WAAW,EAAE,MAAM,EACnB,SAAS,GAAE,MAAmB,GAC7B,OAAO,CAAC,qBAAqB,CAAC,CAkBhC;IAEK,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAczD;IAEK,iBAAiB,CAAC,OAAO,EAAE,SAAS,qBAAqB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAEhF;CACF"}
|
package/dist/blocking/manager.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resolveSignalProtocolLogger } from '../logger.js';
|
|
2
2
|
/**
|
|
3
3
|
* SDK blocking orchestration.
|
|
4
4
|
*
|
|
5
5
|
* The local store is authoritative for the current device. Optional mirrors can
|
|
6
6
|
* project that state elsewhere without becoming a second mutation path.
|
|
7
7
|
*/
|
|
8
|
-
export class
|
|
8
|
+
export class SignalProtocolBlockingManager {
|
|
9
9
|
store;
|
|
10
10
|
mirror;
|
|
11
11
|
hooks;
|
|
@@ -14,7 +14,7 @@ export class SignalBlockingManager {
|
|
|
14
14
|
this.store = options.store;
|
|
15
15
|
this.mirror = options.mirror;
|
|
16
16
|
this.hooks = options.hooks;
|
|
17
|
-
this.logger =
|
|
17
|
+
this.logger = resolveSignalProtocolLogger(options.logger);
|
|
18
18
|
}
|
|
19
19
|
async isBlocked(recipientId) {
|
|
20
20
|
return await this.store.isBlocked(recipientId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.js","sourceRoot":"","sources":["../../blocking/manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"manager.js","sourceRoot":"","sources":["../../blocking/manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAgB,MAAM,WAAW,CAAC;AAetE;;;;;GAKG;AACH,MAAM,OAAO,6BAA6B;IACvB,KAAK,CAA8B;IACnC,MAAM,CAAgC;IACtC,KAAK,CAA+B;IACpC,MAAM,CAAoB;IAE3C,YAAY,OAA6C;QACvD,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,2BAA2B,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5D,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,WAAmB;QACjC,OAAO,MAAM,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACjD,CAAC;IAED,KAAK,CAAC,qBAAqB;QACzB,OAAO,MAAM,IAAI,CAAC,KAAK,CAAC,qBAAqB,EAAE,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,WAAmB,EACnB,SAAS,GAAW,IAAI,CAAC,GAAG,EAAE;QAE9B,MAAM,KAAK,GAA0B,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;QAEhE,MAAM,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;QAC/C,MAAM,IAAI,CAAC,KAAK,EAAE,kBAAkB,EAAE,CAAC,KAAK,CAAC,CAAC;QAE9C,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,qBAAqB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
/**
|
|
2
|
-
* Signal blocking contracts.
|
|
2
|
+
* Signal Protocol blocking contracts.
|
|
3
3
|
*
|
|
4
4
|
* Blocking is account/contact state, not message content. The core package owns
|
|
5
5
|
* the local blocking workflow and lets each app choose whether blocked state is
|
|
@@ -12,7 +12,7 @@ export interface BlockedRecipientEntry {
|
|
|
12
12
|
/**
|
|
13
13
|
* Durable local store for blocked recipients.
|
|
14
14
|
*/
|
|
15
|
-
export interface
|
|
15
|
+
export interface SignalProtocolBlockingStore {
|
|
16
16
|
isBlocked(recipientId: string): Promise<boolean>;
|
|
17
17
|
listBlockedRecipients(): Promise<BlockedRecipientEntry[]>;
|
|
18
18
|
upsertBlockedRecipient(entry: BlockedRecipientEntry): Promise<void>;
|
|
@@ -27,7 +27,7 @@ export interface SignalBlockingStore {
|
|
|
27
27
|
* - A platform projection into another local runtime (for example, an NSE cache)
|
|
28
28
|
* - No-op for a fully local-only app
|
|
29
29
|
*/
|
|
30
|
-
export interface
|
|
30
|
+
export interface SignalProtocolBlockingMirror {
|
|
31
31
|
syncBlockedRecipients(entries: readonly BlockedRecipientEntry[]): Promise<void>;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
@@ -36,7 +36,7 @@ export interface SignalBlockingMirror {
|
|
|
36
36
|
* Example:
|
|
37
37
|
* - Rotate the local profile key after a recipient loses profile access
|
|
38
38
|
*/
|
|
39
|
-
export interface
|
|
39
|
+
export interface SignalProtocolBlockingHooks {
|
|
40
40
|
onRecipientBlocked?(entry: BlockedRecipientEntry): Promise<void>;
|
|
41
41
|
onRecipientUnblocked?(recipientId: string): Promise<void>;
|
|
42
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../blocking/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../blocking/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACjD,qBAAqB,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAC1D,sBAAsB,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpE,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3D,wBAAwB,CAAC,OAAO,EAAE,SAAS,qBAAqB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACpF;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,4BAA4B;IAC3C,qBAAqB,CAAC,OAAO,EAAE,SAAS,qBAAqB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACjF;AAED;;;;;GAKG;AACH,MAAM,WAAW,2BAA2B;IAC1C,kBAAkB,CAAC,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACjE,oBAAoB,CAAC,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3D"}
|
package/dist/blocking/types.js
CHANGED
package/dist/client/client.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ export declare class SignalProtocolClient implements ISignalProtocolClient {
|
|
|
99
99
|
private groupsV2Manager?;
|
|
100
100
|
private readonly cipher;
|
|
101
101
|
/**
|
|
102
|
-
* Durable media job facade backed by the configured Signal local store.
|
|
102
|
+
* Durable media job facade backed by the configured Signal Protocol local store.
|
|
103
103
|
*
|
|
104
104
|
* Use this for background-safe attachment uploads, downloads, and cleanup
|
|
105
105
|
* when the app provides media lifecycle callbacks in `config.media`.
|
|
@@ -551,7 +551,7 @@ export declare class SignalProtocolClient implements ISignalProtocolClient {
|
|
|
551
551
|
*
|
|
552
552
|
* All inputs are normalized to Uint8Array before reaching the cipher layer.
|
|
553
553
|
*
|
|
554
|
-
* @param recipientId - User ID or group ID (groups use
|
|
554
|
+
* @param recipientId - User ID or group ID (groups use the V2 group ID prefix)
|
|
555
555
|
* @param content - DataMessageInput, string, or Uint8Array to encrypt and send
|
|
556
556
|
* @param options - Optional send options (isBinary for blob encryption, etc.)
|
|
557
557
|
* @returns SendResult with messageId, timestamp, and device count
|
|
@@ -998,7 +998,7 @@ export declare class SignalProtocolClient implements ISignalProtocolClient {
|
|
|
998
998
|
* | Member ADDED | Distribute current key to new member (no rotation needed) |
|
|
999
999
|
* | Group metadata changed | Rotate recommended |
|
|
1000
1000
|
*
|
|
1001
|
-
* **Important**:
|
|
1001
|
+
* **Important**: The reference implementation does NOT use periodic or message-count-based rotation.
|
|
1002
1002
|
* Only rotate when membership changes to maintain forward secrecy.
|
|
1003
1003
|
*
|
|
1004
1004
|
* ## Why Rotate on Member Removal?
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../client/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAOH,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEjF,OAAO,KAAK,EACV,qBAAqB,EAItB,MAAM,UAAU,CAAC;AAIlB,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAGL,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAChC,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAkB,aAAa,E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AkB,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE9F;IAED;;OAEG;IACG,wBAAwB,CAC5B,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,UAAU,EACrB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,IAAI,CAAC,CAQf;IAED;;OAEG;IACG,0BAA0B,CAC9B,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,UAAU,EACrB,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,GAC9B,OAAO,CAAC,IAAI,CAAC,CAQf;IAED;;OAEG;IACG,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAEtF;IAED;;OAEG;IACG,wBAAwB,CAC5B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,UAAU,EACnB,cAAc,EAAE,UAAU,GACzB,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,QAAQ,GAAG,kBAAkB,CAAA;KAAE,CAAC,CAEtE;IAMD;;OAEG;IACH,OAAO,CAAC,cAAc;CAQvB"}
|
package/dist/client/client.js
CHANGED
|
@@ -51,11 +51,11 @@ import { EncryptionError, EncryptionErrorCode } from '../types/index.js';
|
|
|
51
51
|
import { base64ToBytes } from '../internal/crypto/index.js';
|
|
52
52
|
import { ProtocolAddress } from '../types/address.js';
|
|
53
53
|
import { getActiveIdentityTypes, resolveSignalProtocolStrategy, } from './config.js';
|
|
54
|
-
import {
|
|
54
|
+
import { resolveSignalProtocolLogger } from '../logger.js';
|
|
55
55
|
import { SenderKeyManager, } from '../internal/protocol/sender-keys/index.js';
|
|
56
|
-
import {
|
|
57
|
-
// Note: group utilities (isGroupId, extractGroupId, createGroupId) are used by
|
|
58
|
-
import {
|
|
56
|
+
import { createDefaultSignalProtocolContentAdapter, } from './content-adapter.js';
|
|
57
|
+
// Note: group utilities (isGroupId, extractGroupId, createGroupId) are used by SignalProtocolServiceCipher
|
|
58
|
+
import { SignalProtocolServiceCipher, sortEnvelopesForDecryption } from './signal-service-cipher.js';
|
|
59
59
|
import { establishMultiDeviceSessions } from '../internal/sesame/device-registry.js';
|
|
60
60
|
import { isRetryableDecryptionError } from './retry-utils.js';
|
|
61
61
|
import { MESSAGE_RECORD_TTL_MS } from './constants.js';
|
|
@@ -137,7 +137,7 @@ export class SignalProtocolClient {
|
|
|
137
137
|
// Cipher coordination (encrypts/decrypts, routes to appropriate cipher)
|
|
138
138
|
cipher;
|
|
139
139
|
/**
|
|
140
|
-
* Durable media job facade backed by the configured Signal local store.
|
|
140
|
+
* Durable media job facade backed by the configured Signal Protocol local store.
|
|
141
141
|
*
|
|
142
142
|
* Use this for background-safe attachment uploads, downloads, and cleanup
|
|
143
143
|
* when the app provides media lifecycle callbacks in `config.media`.
|
|
@@ -183,9 +183,9 @@ export class SignalProtocolClient {
|
|
|
183
183
|
this._userId = userId;
|
|
184
184
|
this.deviceId = deviceId;
|
|
185
185
|
this.config = config;
|
|
186
|
-
this.logger =
|
|
186
|
+
this.logger = resolveSignalProtocolLogger(config.logger);
|
|
187
187
|
this.hooks = config.hooks || {};
|
|
188
|
-
this.contentAdapter = config.contentAdapter ??
|
|
188
|
+
this.contentAdapter = config.contentAdapter ?? createDefaultSignalProtocolContentAdapter();
|
|
189
189
|
// Dependency injection: use the provided relay adapter when configured.
|
|
190
190
|
this.relay = config.relay;
|
|
191
191
|
// Dependency injection: use the remote object store for encrypted attachments.
|
|
@@ -241,7 +241,7 @@ export class SignalProtocolClient {
|
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
243
|
// Initialize cipher for encrypt/decrypt coordination
|
|
244
|
-
this.cipher = new
|
|
244
|
+
this.cipher = new SignalProtocolServiceCipher(this._userId, deviceId, this.sesameManager, this.senderKeyManager, this._storage, this.relay, this.remoteObjectStore, this.contentAdapter, this.logger);
|
|
245
245
|
// Set up auto-session establishment callback
|
|
246
246
|
// This enables lazy session creation when sending to users without established sessions
|
|
247
247
|
if (this.relay) {
|
|
@@ -617,7 +617,7 @@ export class SignalProtocolClient {
|
|
|
617
617
|
await client.initialize();
|
|
618
618
|
await client.hydratePersistedState();
|
|
619
619
|
// Cleanup expired sessions and message records on startup.
|
|
620
|
-
//
|
|
620
|
+
// The reference implementation relies on event-driven cleanup (identity change, retry, end-session);
|
|
621
621
|
// we additionally enforce our maxRecv TTL here to prevent unbounded session growth.
|
|
622
622
|
try {
|
|
623
623
|
await client.sesameManager.cleanupExpiredSessions();
|
|
@@ -1179,7 +1179,7 @@ export class SignalProtocolClient {
|
|
|
1179
1179
|
*
|
|
1180
1180
|
* All inputs are normalized to Uint8Array before reaching the cipher layer.
|
|
1181
1181
|
*
|
|
1182
|
-
* @param recipientId - User ID or group ID (groups use
|
|
1182
|
+
* @param recipientId - User ID or group ID (groups use the V2 group ID prefix)
|
|
1183
1183
|
* @param content - DataMessageInput, string, or Uint8Array to encrypt and send
|
|
1184
1184
|
* @param options - Optional send options (isBinary for blob encryption, etc.)
|
|
1185
1185
|
* @returns SendResult with messageId, timestamp, and device count
|
|
@@ -1927,7 +1927,7 @@ export class SignalProtocolClient {
|
|
|
1927
1927
|
* | Member ADDED | Distribute current key to new member (no rotation needed) |
|
|
1928
1928
|
* | Group metadata changed | Rotate recommended |
|
|
1929
1929
|
*
|
|
1930
|
-
* **Important**:
|
|
1930
|
+
* **Important**: The reference implementation does NOT use periodic or message-count-based rotation.
|
|
1931
1931
|
* Only rotate when membership changes to maintain forward secrecy.
|
|
1932
1932
|
*
|
|
1933
1933
|
* ## Why Rotate on Member Removal?
|