@open-e2ee/signal-protocol-sdk 10.1.0 → 12.0.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 +4 -4
- package/ARCHITECTURE.md +6 -8
- package/CHANGELOG.md +1413 -0
- package/README.md +1 -1
- package/SECURITY.md +2 -2
- package/TROUBLESHOOTING.md +1 -1
- package/client/README.md +84 -37
- package/device/README.md +39 -85
- package/dist/client/client.d.ts +342 -62
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/client.js +1195 -179
- package/dist/client/client.js.map +1 -1
- package/dist/client/config.d.ts +40 -32
- package/dist/client/config.d.ts.map +1 -1
- package/dist/client/config.js +1 -1
- package/dist/client/config.js.map +1 -1
- package/dist/client/constants.d.ts +42 -8
- package/dist/client/constants.d.ts.map +1 -1
- package/dist/client/constants.js +48 -3
- package/dist/client/constants.js.map +1 -1
- package/dist/client/content-adapter.d.ts +80 -0
- package/dist/client/content-adapter.d.ts.map +1 -1
- package/dist/client/content-adapter.js +225 -12
- package/dist/client/content-adapter.js.map +1 -1
- package/dist/client/delivery-error.d.ts +150 -0
- package/dist/client/delivery-error.d.ts.map +1 -0
- package/dist/client/delivery-error.js +226 -0
- package/dist/client/delivery-error.js.map +1 -0
- package/dist/client/delivery-status.d.ts +32 -6
- package/dist/client/delivery-status.d.ts.map +1 -1
- package/dist/client/delivery-status.js +61 -13
- package/dist/client/delivery-status.js.map +1 -1
- package/dist/client/device-set-reconciliation.d.ts +196 -0
- package/dist/client/device-set-reconciliation.d.ts.map +1 -0
- package/dist/client/device-set-reconciliation.js +282 -0
- package/dist/client/device-set-reconciliation.js.map +1 -0
- package/dist/client/distribution-records.d.ts +29 -0
- package/dist/client/distribution-records.d.ts.map +1 -0
- package/dist/client/distribution-records.js +33 -0
- package/dist/client/distribution-records.js.map +1 -0
- package/dist/client/event-hooks.d.ts +308 -6
- package/dist/client/event-hooks.d.ts.map +1 -1
- package/dist/client/event-hooks.js +9 -0
- package/dist/client/event-hooks.js.map +1 -1
- package/dist/client/group-device-set.d.ts +47 -0
- package/dist/client/group-device-set.d.ts.map +1 -0
- package/dist/client/group-device-set.js +65 -0
- package/dist/client/group-device-set.js.map +1 -0
- package/dist/client/group-fetcher.d.ts +116 -0
- package/dist/client/group-fetcher.d.ts.map +1 -0
- package/dist/client/group-fetcher.js +598 -0
- package/dist/client/group-fetcher.js.map +1 -0
- package/dist/client/group-outbox.d.ts +172 -10
- package/dist/client/group-outbox.d.ts.map +1 -1
- package/dist/client/group-outbox.js +915 -74
- package/dist/client/group-outbox.js.map +1 -1
- package/dist/client/group-receive-authorization.d.ts +127 -4
- package/dist/client/group-receive-authorization.d.ts.map +1 -1
- package/dist/client/group-receive-authorization.js +270 -20
- package/dist/client/group-receive-authorization.js.map +1 -1
- package/dist/client/group-sealed-sender.d.ts +3 -0
- package/dist/client/group-sealed-sender.d.ts.map +1 -1
- package/dist/client/group-sealed-sender.js +1 -0
- package/dist/client/group-sealed-sender.js.map +1 -1
- package/dist/client/group-sender-key-operations.d.ts +14 -3
- package/dist/client/group-sender-key-operations.d.ts.map +1 -1
- package/dist/client/group-sender-key-operations.js +26 -5
- package/dist/client/group-sender-key-operations.js.map +1 -1
- package/dist/client/groups.d.ts +5 -5
- package/dist/client/groups.d.ts.map +1 -1
- package/dist/client/groups.js +5 -4
- package/dist/client/groups.js.map +1 -1
- package/dist/client/hosted-anonymous-delivery.d.ts +61 -9
- package/dist/client/hosted-anonymous-delivery.d.ts.map +1 -1
- package/dist/client/hosted-anonymous-delivery.js +242 -48
- package/dist/client/hosted-anonymous-delivery.js.map +1 -1
- package/dist/client/hosted-assertion-id.d.ts +7 -0
- package/dist/client/hosted-assertion-id.d.ts.map +1 -0
- package/dist/client/hosted-assertion-id.js +51 -0
- package/dist/client/hosted-assertion-id.js.map +1 -0
- package/dist/client/hosted-device-standing.d.ts +52 -0
- package/dist/client/hosted-device-standing.d.ts.map +1 -0
- package/dist/client/hosted-device-standing.js +74 -0
- package/dist/client/hosted-device-standing.js.map +1 -0
- package/dist/client/hosted-mailbox-subscription.d.ts +48 -3
- package/dist/client/hosted-mailbox-subscription.d.ts.map +1 -1
- package/dist/client/hosted-mailbox-subscription.js +288 -74
- package/dist/client/hosted-mailbox-subscription.js.map +1 -1
- package/dist/client/hosted-push.d.ts +22 -4
- package/dist/client/hosted-push.d.ts.map +1 -1
- package/dist/client/hosted-push.js +75 -22
- package/dist/client/hosted-push.js.map +1 -1
- package/dist/client/hosted-transport.d.ts +22 -28
- package/dist/client/hosted-transport.d.ts.map +1 -1
- package/dist/client/hosted-transport.js +167 -69
- package/dist/client/hosted-transport.js.map +1 -1
- package/dist/client/hosted.d.ts +22 -5
- package/dist/client/hosted.d.ts.map +1 -1
- package/dist/client/hosted.js +122 -45
- package/dist/client/hosted.js.map +1 -1
- package/dist/client/index.d.ts +6 -4
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +3 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/messages.d.ts +25 -3
- package/dist/client/messages.d.ts.map +1 -1
- package/dist/client/messages.js +118 -17
- package/dist/client/messages.js.map +1 -1
- package/dist/client/one-time-prekey-refill.d.ts +7 -0
- package/dist/client/one-time-prekey-refill.d.ts.map +1 -1
- package/dist/client/one-time-prekey-refill.js +5 -1
- package/dist/client/one-time-prekey-refill.js.map +1 -1
- package/dist/client/receive-admission.d.ts +58 -0
- package/dist/client/receive-admission.d.ts.map +1 -0
- package/dist/client/receive-admission.js +78 -0
- package/dist/client/receive-admission.js.map +1 -0
- package/dist/client/receive-expiry.d.ts +31 -0
- package/dist/client/receive-expiry.d.ts.map +1 -0
- package/dist/client/receive-expiry.js +35 -0
- package/dist/client/receive-expiry.js.map +1 -0
- package/dist/client/receive-hook-bound.d.ts +50 -0
- package/dist/client/receive-hook-bound.d.ts.map +1 -0
- package/dist/client/receive-hook-bound.js +115 -0
- package/dist/client/receive-hook-bound.js.map +1 -0
- package/dist/client/receive-queue.d.ts +299 -0
- package/dist/client/receive-queue.d.ts.map +1 -0
- package/dist/client/receive-queue.js +1420 -0
- package/dist/client/receive-queue.js.map +1 -0
- package/dist/client/receive-work-seed.d.ts +54 -0
- package/dist/client/receive-work-seed.d.ts.map +1 -0
- package/dist/client/receive-work-seed.js +116 -0
- package/dist/client/receive-work-seed.js.map +1 -0
- package/dist/client/recovery-driver.d.ts +25 -0
- package/dist/client/recovery-driver.d.ts.map +1 -0
- package/dist/client/recovery-driver.js +121 -0
- package/dist/client/recovery-driver.js.map +1 -0
- package/dist/client/relay-acceptance.d.ts +30 -0
- package/dist/client/relay-acceptance.d.ts.map +1 -1
- package/dist/client/relay-acceptance.js +55 -0
- package/dist/client/relay-acceptance.js.map +1 -1
- package/dist/client/relay-device-refusal.d.ts +18 -0
- package/dist/client/relay-device-refusal.d.ts.map +1 -1
- package/dist/client/relay-device-refusal.js +31 -0
- package/dist/client/relay-device-refusal.js.map +1 -1
- package/dist/client/relay-sealed-route.d.ts +36 -0
- package/dist/client/relay-sealed-route.d.ts.map +1 -0
- package/dist/client/relay-sealed-route.js +45 -0
- package/dist/client/relay-sealed-route.js.map +1 -0
- package/dist/client/relay-subscription.d.ts +56 -13
- package/dist/client/relay-subscription.d.ts.map +1 -1
- package/dist/client/relay-subscription.js +220 -150
- package/dist/client/relay-subscription.js.map +1 -1
- package/dist/client/resendable-content.d.ts +98 -0
- package/dist/client/resendable-content.d.ts.map +1 -0
- package/dist/client/resendable-content.js +136 -0
- package/dist/client/resendable-content.js.map +1 -0
- package/dist/client/retry-family.d.ts +68 -19
- package/dist/client/retry-family.d.ts.map +1 -1
- package/dist/client/retry-family.js +59 -17
- package/dist/client/retry-family.js.map +1 -1
- package/dist/client/retry-request-envelope.d.ts +145 -18
- package/dist/client/retry-request-envelope.d.ts.map +1 -1
- package/dist/client/retry-request-envelope.js +301 -64
- package/dist/client/retry-request-envelope.js.map +1 -1
- package/dist/client/retry-request-lifecycle.d.ts +157 -0
- package/dist/client/retry-request-lifecycle.d.ts.map +1 -0
- package/dist/client/retry-request-lifecycle.js +437 -0
- package/dist/client/retry-request-lifecycle.js.map +1 -0
- package/dist/client/retry-terminal-recovery.d.ts +100 -0
- package/dist/client/retry-terminal-recovery.d.ts.map +1 -0
- package/dist/client/retry-terminal-recovery.js +164 -0
- package/dist/client/retry-terminal-recovery.js.map +1 -0
- package/dist/client/retry-utils.d.ts +27 -0
- package/dist/client/retry-utils.d.ts.map +1 -1
- package/dist/client/retry-utils.js +46 -0
- package/dist/client/retry-utils.js.map +1 -1
- package/dist/client/retry.d.ts +106 -18
- package/dist/client/retry.d.ts.map +1 -1
- package/dist/client/retry.js +687 -139
- package/dist/client/retry.js.map +1 -1
- package/dist/client/sealed-sender.d.ts +23 -6
- package/dist/client/sealed-sender.d.ts.map +1 -1
- package/dist/client/sealed-sender.js +30 -6
- package/dist/client/sealed-sender.js.map +1 -1
- package/dist/client/sessions.d.ts +2 -2
- package/dist/client/sessions.js +2 -2
- package/dist/client/signal-service-cipher.d.ts +726 -19
- package/dist/client/signal-service-cipher.d.ts.map +1 -1
- package/dist/client/signal-service-cipher.js +2265 -343
- package/dist/client/signal-service-cipher.js.map +1 -1
- package/dist/client/state.d.ts +5 -0
- package/dist/client/state.d.ts.map +1 -1
- package/dist/client/state.js +11 -1
- package/dist/client/state.js.map +1 -1
- package/dist/client/storage-protection.d.ts +64 -0
- package/dist/client/storage-protection.d.ts.map +1 -0
- package/dist/client/storage-protection.js +150 -0
- package/dist/client/storage-protection.js.map +1 -0
- package/dist/client/types.d.ts +149 -15
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/types.js +1 -1
- package/dist/client/types.js.map +1 -1
- package/dist/device/constants.d.ts +0 -5
- package/dist/device/constants.d.ts.map +1 -1
- package/dist/device/constants.js +0 -5
- package/dist/device/constants.js.map +1 -1
- package/dist/device/expo/index.d.ts +4 -17
- package/dist/device/expo/index.d.ts.map +1 -1
- package/dist/device/expo/index.js +4 -23
- package/dist/device/expo/index.js.map +1 -1
- package/dist/device/index.d.ts +0 -2
- package/dist/device/index.d.ts.map +1 -1
- package/dist/device/index.js +0 -7
- package/dist/device/index.js.map +1 -1
- package/dist/device/lifecycle/manager.d.ts +5 -4
- package/dist/device/lifecycle/manager.d.ts.map +1 -1
- package/dist/device/lifecycle/manager.js +16 -16
- package/dist/device/lifecycle/manager.js.map +1 -1
- package/dist/device/lifecycle/types.d.ts +2 -2
- package/dist/device/lifecycle/types.d.ts.map +1 -1
- package/dist/device/react-native/index.d.ts +4 -15
- package/dist/device/react-native/index.d.ts.map +1 -1
- package/dist/device/react-native/index.js +4 -21
- package/dist/device/react-native/index.js.map +1 -1
- package/dist/device/types.d.ts +1 -1
- package/dist/groups/index.d.ts +1 -1
- package/dist/groups/index.d.ts.map +1 -1
- package/dist/index.d.ts +8 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/crypto/ec/x25519-validation.d.ts +0 -1
- package/dist/internal/crypto/ec/x25519-validation.d.ts.map +1 -1
- package/dist/internal/crypto/ec/x25519-validation.js +0 -1
- package/dist/internal/crypto/ec/x25519-validation.js.map +1 -1
- package/dist/internal/crypto/validation.d.ts +2 -2
- package/dist/internal/groups/index.d.ts +1 -0
- package/dist/internal/groups/index.d.ts.map +1 -1
- package/dist/internal/groups/index.js +1 -0
- package/dist/internal/groups/index.js.map +1 -1
- package/dist/internal/groups/manager.d.ts +37 -16
- package/dist/internal/groups/manager.d.ts.map +1 -1
- package/dist/internal/groups/manager.js +46 -1
- package/dist/internal/groups/manager.js.map +1 -1
- package/dist/internal/groups/receive-record.d.ts +78 -0
- package/dist/internal/groups/receive-record.d.ts.map +1 -0
- package/dist/internal/groups/receive-record.js +43 -0
- package/dist/internal/groups/receive-record.js.map +1 -0
- package/dist/internal/groups/sdk-store.d.ts +27 -3
- package/dist/internal/groups/sdk-store.d.ts.map +1 -1
- package/dist/internal/groups/sdk-store.js +151 -19
- package/dist/internal/groups/sdk-store.js.map +1 -1
- package/dist/internal/groups/wire.d.ts +12 -1
- package/dist/internal/groups/wire.d.ts.map +1 -1
- package/dist/internal/groups/wire.js +36 -0
- package/dist/internal/groups/wire.js.map +1 -1
- package/dist/internal/manager/index.d.ts +1 -1
- package/dist/internal/manager/manager.d.ts +20 -19
- package/dist/internal/manager/manager.d.ts.map +1 -1
- package/dist/internal/manager/manager.js +56 -39
- package/dist/internal/manager/manager.js.map +1 -1
- package/dist/internal/protocol/double-ratchet/chains.d.ts +4 -18
- package/dist/internal/protocol/double-ratchet/chains.d.ts.map +1 -1
- package/dist/internal/protocol/double-ratchet/chains.js +23 -74
- package/dist/internal/protocol/double-ratchet/chains.js.map +1 -1
- package/dist/internal/protocol/double-ratchet/index.d.ts +1 -1
- package/dist/internal/protocol/double-ratchet/index.d.ts.map +1 -1
- package/dist/internal/protocol/double-ratchet/index.js +1 -1
- package/dist/internal/protocol/double-ratchet/index.js.map +1 -1
- package/dist/internal/protocol/double-ratchet/ratchet.d.ts +5 -7
- package/dist/internal/protocol/double-ratchet/ratchet.d.ts.map +1 -1
- package/dist/internal/protocol/double-ratchet/ratchet.js +4 -6
- 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 +2 -1
- package/dist/internal/protocol/pqxdh/pqxdh.js.map +1 -1
- package/dist/internal/protocol/sealed-sender/types.d.ts +6 -8
- package/dist/internal/protocol/sealed-sender/types.d.ts.map +1 -1
- package/dist/internal/protocol/sealed-sender/types.js +8 -9
- package/dist/internal/protocol/sealed-sender/types.js.map +1 -1
- package/dist/internal/protocol/sender-keys/handoff-ledger.d.ts +110 -0
- package/dist/internal/protocol/sender-keys/handoff-ledger.d.ts.map +1 -0
- package/dist/internal/protocol/sender-keys/handoff-ledger.js +124 -0
- package/dist/internal/protocol/sender-keys/handoff-ledger.js.map +1 -0
- package/dist/internal/protocol/sender-keys/manager.d.ts +71 -62
- package/dist/internal/protocol/sender-keys/manager.d.ts.map +1 -1
- package/dist/internal/protocol/sender-keys/manager.js +228 -175
- package/dist/internal/protocol/sender-keys/manager.js.map +1 -1
- package/dist/internal/protocol/spqr/index.d.ts +2 -2
- package/dist/internal/protocol/spqr/index.d.ts.map +1 -1
- package/dist/internal/protocol/spqr/index.js +2 -2
- package/dist/internal/protocol/spqr/index.js.map +1 -1
- package/dist/internal/protocol/spqr/serialize.d.ts +9 -1
- package/dist/internal/protocol/spqr/serialize.d.ts.map +1 -1
- package/dist/internal/protocol/spqr/serialize.js +56 -16
- package/dist/internal/protocol/spqr/serialize.js.map +1 -1
- package/dist/internal/protocol/spqr/spqr.d.ts +1 -14
- package/dist/internal/protocol/spqr/spqr.d.ts.map +1 -1
- package/dist/internal/protocol/spqr/spqr.js +54 -42
- package/dist/internal/protocol/spqr/spqr.js.map +1 -1
- package/dist/internal/protocol/spqr/validate.d.ts +26 -6
- package/dist/internal/protocol/spqr/validate.d.ts.map +1 -1
- package/dist/internal/protocol/spqr/validate.js +49 -21
- package/dist/internal/protocol/spqr/validate.js.map +1 -1
- package/dist/internal/sesame/index.d.ts +1 -1
- package/dist/internal/sesame/index.d.ts.map +1 -1
- package/dist/internal/sesame/index.js.map +1 -1
- package/dist/internal/sesame/manager.d.ts +66 -13
- package/dist/internal/sesame/manager.d.ts.map +1 -1
- package/dist/internal/sesame/manager.js +221 -87
- package/dist/internal/sesame/manager.js.map +1 -1
- package/dist/internal/sesame/types.d.ts +95 -17
- package/dist/internal/sesame/types.d.ts.map +1 -1
- package/dist/internal/sesame/types.js +17 -0
- package/dist/internal/sesame/types.js.map +1 -1
- package/dist/internal/session/builder.d.ts +5 -5
- package/dist/internal/session/builder.d.ts.map +1 -1
- package/dist/internal/session/builder.js +12 -17
- package/dist/internal/session/builder.js.map +1 -1
- package/dist/internal/session/cipher.d.ts +13 -11
- package/dist/internal/session/cipher.d.ts.map +1 -1
- package/dist/internal/session/cipher.js +40 -22
- package/dist/internal/session/cipher.js.map +1 -1
- package/dist/internal/session/factory.d.ts +5 -5
- package/dist/internal/session/factory.d.ts.map +1 -1
- package/dist/internal/session/factory.js +4 -4
- package/dist/internal/session/factory.js.map +1 -1
- package/dist/internal/session/handshake.d.ts +14 -16
- package/dist/internal/session/handshake.d.ts.map +1 -1
- package/dist/internal/session/handshake.js +18 -75
- package/dist/internal/session/handshake.js.map +1 -1
- package/dist/internal/session/index.d.ts +1 -1
- package/dist/internal/session/index.js +1 -1
- package/dist/internal/session/record-locks.d.ts +17 -6
- package/dist/internal/session/record-locks.d.ts.map +1 -1
- package/dist/internal/session/record-locks.js +43 -7
- package/dist/internal/session/record-locks.js.map +1 -1
- package/dist/internal/session/session-resolver.d.ts +1 -1
- package/dist/internal/session/session-resolver.js +1 -1
- package/dist/internal/session/state.d.ts +2 -2
- package/dist/internal/session/state.js +1 -1
- package/dist/internal/session/types.d.ts +4 -12
- package/dist/internal/session/types.d.ts.map +1 -1
- package/dist/internal/session/types.js +1 -1
- package/dist/keys/generation.d.ts +2 -2
- package/dist/keys/generation.js +2 -2
- package/dist/keys/types.d.ts +5 -5
- package/dist/keys/types.d.ts.map +1 -1
- package/dist/keys/types.js +1 -1
- package/dist/layers.d.ts +1 -1
- package/dist/layers.js +2 -2
- package/dist/layers.js.map +1 -1
- package/dist/local/store/expo/adapter.d.ts.map +1 -1
- package/dist/local/store/expo/adapter.js +12 -8
- package/dist/local/store/expo/adapter.js.map +1 -1
- package/dist/local/store/key-value/adapter.d.ts +76 -10
- package/dist/local/store/key-value/adapter.d.ts.map +1 -1
- package/dist/local/store/key-value/adapter.js +367 -61
- 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 +74 -0
- package/dist/local/store/key-value/backend-conformance.js.map +1 -1
- package/dist/local/store/key-value/batch.d.ts +2 -0
- package/dist/local/store/key-value/batch.d.ts.map +1 -1
- package/dist/local/store/key-value/batch.js +26 -0
- package/dist/local/store/key-value/batch.js.map +1 -1
- package/dist/local/store/key-value/receive-work.d.ts +55 -0
- package/dist/local/store/key-value/receive-work.d.ts.map +1 -0
- package/dist/local/store/key-value/receive-work.js +162 -0
- package/dist/local/store/key-value/receive-work.js.map +1 -0
- package/dist/local/store/key-value/send-log.d.ts +61 -0
- package/dist/local/store/key-value/send-log.d.ts.map +1 -0
- package/dist/local/store/key-value/send-log.js +430 -0
- package/dist/local/store/key-value/send-log.js.map +1 -0
- package/dist/local/store/key-value/sender-key-handoff.d.ts +68 -0
- package/dist/local/store/key-value/sender-key-handoff.d.ts.map +1 -0
- package/dist/local/store/key-value/sender-key-handoff.js +189 -0
- package/dist/local/store/key-value/sender-key-handoff.js.map +1 -0
- package/dist/local/store/key-value/storage.d.ts +15 -0
- package/dist/local/store/key-value/storage.d.ts.map +1 -1
- package/dist/local/store/keyed-index.d.ts +23 -0
- package/dist/local/store/keyed-index.d.ts.map +1 -0
- package/dist/local/store/keyed-index.js +41 -0
- package/dist/local/store/keyed-index.js.map +1 -0
- package/dist/local/store/memory/adapter.d.ts +44 -12
- package/dist/local/store/memory/adapter.d.ts.map +1 -1
- package/dist/local/store/memory/adapter.js +197 -46
- package/dist/local/store/memory/adapter.js.map +1 -1
- package/dist/local/store/memory/send-log.d.ts +42 -0
- package/dist/local/store/memory/send-log.d.ts.map +1 -0
- package/dist/local/store/memory/send-log.js +190 -0
- package/dist/local/store/memory/send-log.js.map +1 -0
- package/dist/local/store/node/adapter.d.ts.map +1 -1
- package/dist/local/store/node/adapter.js +8 -6
- package/dist/local/store/node/adapter.js.map +1 -1
- package/dist/local/store/react-native/adapter.d.ts.map +1 -1
- package/dist/local/store/react-native/adapter.js +12 -8
- package/dist/local/store/react-native/adapter.js.map +1 -1
- package/dist/local/store/receive-work.d.ts +87 -0
- package/dist/local/store/receive-work.d.ts.map +1 -0
- package/dist/local/store/receive-work.js +204 -0
- package/dist/local/store/receive-work.js.map +1 -0
- package/dist/local/store/received-content.d.ts +3 -3
- package/dist/local/store/received-content.d.ts.map +1 -1
- package/dist/local/store/received-content.js +2 -11
- package/dist/local/store/received-content.js.map +1 -1
- package/dist/local/store/reliability.d.ts +411 -14
- package/dist/local/store/reliability.d.ts.map +1 -1
- package/dist/local/store/reliability.js +532 -58
- package/dist/local/store/reliability.js.map +1 -1
- package/dist/local/store/send-log-order.d.ts +15 -0
- package/dist/local/store/send-log-order.d.ts.map +1 -0
- package/dist/local/store/send-log-order.js +24 -0
- package/dist/local/store/send-log-order.js.map +1 -0
- package/dist/local/store/sender-key-handoff-index.d.ts +38 -0
- package/dist/local/store/sender-key-handoff-index.d.ts.map +1 -0
- package/dist/local/store/sender-key-handoff-index.js +101 -0
- package/dist/local/store/sender-key-handoff-index.js.map +1 -0
- package/dist/local/store/sender-key-handoff-table.d.ts +29 -0
- package/dist/local/store/sender-key-handoff-table.d.ts.map +1 -0
- package/dist/local/store/sender-key-handoff-table.js +97 -0
- package/dist/local/store/sender-key-handoff-table.js.map +1 -0
- package/dist/local/store/sqlite/encryption.d.ts +8 -1
- package/dist/local/store/sqlite/encryption.d.ts.map +1 -1
- package/dist/local/store/sqlite/encryption.js +9 -0
- package/dist/local/store/sqlite/encryption.js.map +1 -1
- package/dist/local/store/sqlite/key-storage/index.d.ts +25 -4
- package/dist/local/store/sqlite/key-storage/index.d.ts.map +1 -1
- package/dist/local/store/sqlite/key-storage/index.js +68 -7
- package/dist/local/store/sqlite/key-storage/index.js.map +1 -1
- package/dist/local/store/sqlite/key-storage/message-records.d.ts +16 -4
- package/dist/local/store/sqlite/key-storage/message-records.d.ts.map +1 -1
- package/dist/local/store/sqlite/key-storage/message-records.js +49 -6
- package/dist/local/store/sqlite/key-storage/message-records.js.map +1 -1
- package/dist/local/store/sqlite/key-storage/metadata.d.ts +8 -7
- package/dist/local/store/sqlite/key-storage/metadata.d.ts.map +1 -1
- package/dist/local/store/sqlite/key-storage/metadata.js +17 -15
- package/dist/local/store/sqlite/key-storage/metadata.js.map +1 -1
- package/dist/local/store/sqlite/key-storage/receive-work.d.ts +27 -0
- package/dist/local/store/sqlite/key-storage/receive-work.d.ts.map +1 -0
- package/dist/local/store/sqlite/key-storage/receive-work.js +98 -0
- package/dist/local/store/sqlite/key-storage/receive-work.js.map +1 -0
- package/dist/local/store/sqlite/key-storage/send-log.d.ts +27 -0
- package/dist/local/store/sqlite/key-storage/send-log.d.ts.map +1 -0
- package/dist/local/store/sqlite/key-storage/send-log.js +178 -0
- package/dist/local/store/sqlite/key-storage/send-log.js.map +1 -0
- package/dist/local/store/sqlite/key-storage/sender-key-handoff.d.ts +27 -0
- package/dist/local/store/sqlite/key-storage/sender-key-handoff.d.ts.map +1 -0
- package/dist/local/store/sqlite/key-storage/sender-key-handoff.js +75 -0
- package/dist/local/store/sqlite/key-storage/sender-key-handoff.js.map +1 -0
- package/dist/local/store/sqlite/key-storage/session-trust.d.ts +2 -2
- package/dist/local/store/sqlite/key-storage/session-trust.js +5 -5
- package/dist/local/store/sqlite/key-storage/session-trust.js.map +1 -1
- package/dist/local/store/sqlite/migrations.d.ts.map +1 -1
- package/dist/local/store/sqlite/migrations.js +101 -0
- package/dist/local/store/sqlite/migrations.js.map +1 -1
- package/dist/local/store/sqlite/models/index.d.ts +2 -1
- package/dist/local/store/sqlite/models/index.d.ts.map +1 -1
- package/dist/local/store/sqlite/models/index.js +5 -1
- package/dist/local/store/sqlite/models/index.js.map +1 -1
- package/dist/local/store/sqlite/models/message-record.d.ts +15 -0
- package/dist/local/store/sqlite/models/message-record.d.ts.map +1 -1
- package/dist/local/store/sqlite/models/message-record.js +24 -0
- package/dist/local/store/sqlite/models/message-record.js.map +1 -1
- package/dist/local/store/sqlite/models/send-log.d.ts +51 -0
- package/dist/local/store/sqlite/models/send-log.d.ts.map +1 -0
- package/dist/local/store/sqlite/models/send-log.js +206 -0
- package/dist/local/store/sqlite/models/send-log.js.map +1 -0
- package/dist/local/store/sqlite/open-store.d.ts +9 -1
- package/dist/local/store/sqlite/open-store.d.ts.map +1 -1
- package/dist/local/store/sqlite/open-store.js +20 -1
- package/dist/local/store/sqlite/open-store.js.map +1 -1
- package/dist/local/store/sqlite/schema.d.ts +34 -1
- package/dist/local/store/sqlite/schema.d.ts.map +1 -1
- package/dist/local/store/sqlite/schema.js +14 -0
- package/dist/local/store/sqlite/schema.js.map +1 -1
- package/dist/local/store/sqlite/store.d.ts +61 -11
- package/dist/local/store/sqlite/store.d.ts.map +1 -1
- package/dist/local/store/sqlite/store.js +191 -27
- package/dist/local/store/sqlite/store.js.map +1 -1
- package/dist/local/store/web/adapter.d.ts +76 -8
- package/dist/local/store/web/adapter.d.ts.map +1 -1
- package/dist/local/store/web/adapter.js +579 -127
- package/dist/local/store/web/adapter.js.map +1 -1
- package/dist/local/store/web/receive-work.d.ts +57 -0
- package/dist/local/store/web/receive-work.d.ts.map +1 -0
- package/dist/local/store/web/receive-work.js +99 -0
- package/dist/local/store/web/receive-work.js.map +1 -0
- package/dist/local/store/web/send-log.d.ts +92 -0
- package/dist/local/store/web/send-log.d.ts.map +1 -0
- package/dist/local/store/web/send-log.js +267 -0
- package/dist/local/store/web/send-log.js.map +1 -0
- package/dist/local/store/web/sender-key-handoff.d.ts +81 -0
- package/dist/local/store/web/sender-key-handoff.d.ts.map +1 -0
- package/dist/local/store/web/sender-key-handoff.js +156 -0
- package/dist/local/store/web/sender-key-handoff.js.map +1 -0
- package/dist/local/store/web-sqlite/adapter.d.ts +2 -0
- package/dist/local/store/web-sqlite/adapter.d.ts.map +1 -1
- package/dist/local/store/web-sqlite/adapter.js +12 -6
- package/dist/local/store/web-sqlite/adapter.js.map +1 -1
- package/dist/local/vault/custody.d.ts +8 -0
- package/dist/local/vault/custody.d.ts.map +1 -0
- package/dist/local/vault/custody.js +9 -0
- package/dist/local/vault/custody.js.map +1 -0
- package/dist/local/vault/electron-safe-storage.d.ts +3 -1
- package/dist/local/vault/electron-safe-storage.d.ts.map +1 -1
- package/dist/local/vault/electron-safe-storage.js +2 -0
- package/dist/local/vault/electron-safe-storage.js.map +1 -1
- package/dist/local/vault/expo-secure-store.d.ts +3 -1
- package/dist/local/vault/expo-secure-store.d.ts.map +1 -1
- package/dist/local/vault/expo-secure-store.js +2 -0
- package/dist/local/vault/expo-secure-store.js.map +1 -1
- package/dist/local/vault/indexed-db.d.ts +3 -1
- package/dist/local/vault/indexed-db.d.ts.map +1 -1
- package/dist/local/vault/indexed-db.js +2 -0
- package/dist/local/vault/indexed-db.js.map +1 -1
- package/dist/local/vault/react-native-keychain.d.ts +3 -1
- package/dist/local/vault/react-native-keychain.d.ts.map +1 -1
- package/dist/local/vault/react-native-keychain.js +2 -0
- package/dist/local/vault/react-native-keychain.js.map +1 -1
- package/dist/remote/relay/device-set.d.ts +94 -0
- package/dist/remote/relay/device-set.d.ts.map +1 -0
- package/dist/remote/relay/device-set.js +156 -0
- package/dist/remote/relay/device-set.js.map +1 -0
- package/dist/remote/relay/types.d.ts +104 -110
- package/dist/remote/relay/types.d.ts.map +1 -1
- package/dist/safety/core.d.ts +15 -6
- package/dist/safety/core.d.ts.map +1 -1
- package/dist/safety/core.js +41 -27
- package/dist/safety/core.js.map +1 -1
- package/dist/safety/index.d.ts +2 -1
- package/dist/safety/index.d.ts.map +1 -1
- package/dist/safety/index.js +12 -18
- package/dist/safety/index.js.map +1 -1
- package/dist/types/api.d.ts +707 -62
- package/dist/types/api.d.ts.map +1 -1
- package/dist/types/errors.d.ts +14 -33
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +14 -24
- package/dist/types/errors.js.map +1 -1
- package/dist/types/messages.d.ts +2 -2
- package/dist/types/messages.js +1 -1
- package/dist/types/protocol-config.d.ts +175 -42
- package/dist/types/protocol-config.d.ts.map +1 -1
- package/dist/types/protocol-config.js +19 -38
- package/dist/types/protocol-config.js.map +1 -1
- package/dist/types/protocol-constants.d.ts +6 -6
- package/dist/types/protocol-constants.js +6 -6
- package/dist/types/session.d.ts +7 -7
- package/dist/types/session.d.ts.map +1 -1
- package/dist/types/session.js +39 -21
- package/dist/types/session.js.map +1 -1
- package/dist/username/link.d.ts +2 -2
- package/dist/username/link.js +2 -2
- package/dist/utils/origin-lock.d.ts +45 -0
- package/dist/utils/origin-lock.d.ts.map +1 -0
- package/dist/utils/origin-lock.js +80 -0
- package/dist/utils/origin-lock.js.map +1 -0
- package/dist/utils/retry.d.ts +2 -0
- package/dist/utils/retry.d.ts.map +1 -1
- package/dist/utils/retry.js +7 -0
- package/dist/utils/retry.js.map +1 -1
- package/docs/ASSURANCE.md +6 -6
- package/docs/CLIENT_COMPOSITION.md +2 -2
- package/docs/DEVIATIONS.md +677 -182
- package/docs/E2EE.md +1 -1
- package/docs/ERROR_HANDLING.md +235 -2
- package/docs/GETTING_STARTED.md +7 -4
- package/docs/INTERFACES.md +1 -1
- package/docs/PACKAGE_SURFACE.md +6 -5
- package/docs/PROTOCOL_POLICY.md +102 -22
- package/docs/RECIPES.md +3 -15
- package/docs/SECURITY.md +90 -5
- package/keys/README.md +3 -3
- package/local/store/README.md +78 -14
- package/local/store/key-value/README.md +14 -3
- package/local/store/node/README.md +8 -3
- package/local/store/web/README.md +9 -0
- package/local/store/web-sqlite/README.md +14 -2
- package/local/vault/README.md +21 -0
- package/package.json +1 -6
- package/remote/README.md +0 -1
- package/remote/relay/README.md +2 -2
- package/dist/device/provisioning.d.ts +0 -242
- package/dist/device/provisioning.d.ts.map +0 -1
- package/dist/device/provisioning.js +0 -421
- package/dist/device/provisioning.js.map +0 -1
- package/dist/internal/protocol/x3dh/index.d.ts +0 -15
- package/dist/internal/protocol/x3dh/index.d.ts.map +0 -1
- package/dist/internal/protocol/x3dh/index.js +0 -13
- package/dist/internal/protocol/x3dh/index.js.map +0 -1
- package/dist/internal/protocol/x3dh/x3dh.d.ts +0 -131
- package/dist/internal/protocol/x3dh/x3dh.d.ts.map +0 -1
- package/dist/internal/protocol/x3dh/x3dh.js +0 -261
- package/dist/internal/protocol/x3dh/x3dh.js.map +0 -1
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The sender-key handoff ledger: which recipient devices already got the
|
|
3
|
+
* local device's current sender key for a group.
|
|
4
|
+
*
|
|
5
|
+
* A row records that the Relay accepted a distribution of the key for one
|
|
6
|
+
* recipient device. A row is a handoff, never proof of install. The ledger
|
|
7
|
+
* owns the policy: which devices need the key, when a row is written, and
|
|
8
|
+
* which rows an event or the sweep removes. The store owns the rows and the
|
|
9
|
+
* deletes that happen in the same transaction as a session, device, identity,
|
|
10
|
+
* or sender-key write.
|
|
11
|
+
*
|
|
12
|
+
* The ledger has the role of the sender-key shared-with record of the Signal
|
|
13
|
+
* clients: the devices that got the current sender key of a group. These
|
|
14
|
+
* events delete rows, as in one Signal client:
|
|
15
|
+
* - a session archive or a new PreKey session deletes the rows of the device
|
|
16
|
+
* in every group, as the session archive and the PreKey decrypt of that
|
|
17
|
+
* client do
|
|
18
|
+
* - an identity change deletes the rows of the account
|
|
19
|
+
* - a retry request for a group message deletes the rows of the device in the
|
|
20
|
+
* group of the message only, as the sender-key retry receipt does
|
|
21
|
+
* - a rotation, a new own key, or a delete of the own key deletes the rows of
|
|
22
|
+
* the group in the same write as the key
|
|
23
|
+
*
|
|
24
|
+
* The SDK has no handler for a device-set mismatch from the Relay. Signal
|
|
25
|
+
* clears the rows of the devices in a 409 or a 410 answer. Here a session
|
|
26
|
+
* archive and the listed devices of each send do that work.
|
|
27
|
+
*/
|
|
28
|
+
import type { SenderKeyHandoffDevice, SenderKeyHandoffStore } from '../../../types/api.js';
|
|
29
|
+
/** The own sender key that a distribution carries. */
|
|
30
|
+
export interface SenderKeyHandoffKey {
|
|
31
|
+
readonly senderKeyId: string;
|
|
32
|
+
readonly generation: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* One listed recipient device of another member. The registration ID is
|
|
36
|
+
* the `remoteRegistrationId` of the current session with the device, or
|
|
37
|
+
* undefined when there is no current session.
|
|
38
|
+
*/
|
|
39
|
+
export interface SenderKeyHandoffTarget extends SenderKeyHandoffDevice {
|
|
40
|
+
readonly registrationId: number | undefined;
|
|
41
|
+
}
|
|
42
|
+
/** What the sweep reads and locks for each group that holds rows. */
|
|
43
|
+
export interface SenderKeyHandoffSweepGroups {
|
|
44
|
+
/** The senderKeyId of the own sender key of the group, or null when there is none. */
|
|
45
|
+
currentSenderKeyId(groupId: string): Promise<string | null>;
|
|
46
|
+
/** Run the task in the sender-key turn of the group. */
|
|
47
|
+
inTurn(groupId: string, task: () => Promise<number>): Promise<number>;
|
|
48
|
+
}
|
|
49
|
+
export declare class SenderKeyHandoffLedger {
|
|
50
|
+
private readonly store;
|
|
51
|
+
private readonly now;
|
|
52
|
+
constructor(store: SenderKeyHandoffStore, now?: () => number);
|
|
53
|
+
/**
|
|
54
|
+
* The targets that need the key, in input order. A target needs the key
|
|
55
|
+
* when no row of the group matches the key's generation and senderKeyId,
|
|
56
|
+
* the user, the device, and the registration ID of the current session.
|
|
57
|
+
* A target with no current session always needs the key, as in one Signal
|
|
58
|
+
* client.
|
|
59
|
+
*
|
|
60
|
+
* Two parts of the match are not in the shared-with table of that client,
|
|
61
|
+
* which keys a row by distribution and device only:
|
|
62
|
+
* - The senderKeyId. A delete and then a create of the own key start again
|
|
63
|
+
* at generation 1 with a new senderKeyId, so a row of the earlier key
|
|
64
|
+
* has the same generation. The built-in stores delete the rows in the
|
|
65
|
+
* rotation write. A custom store can write the key and delete the rows
|
|
66
|
+
* in two writes, and a crash between them leaves a row.
|
|
67
|
+
* The own key rotation of that client has the same crash window between its
|
|
68
|
+
* key delete and its row delete. With the senderKeyId in
|
|
69
|
+
* the match, such a row never stops a device from getting the current
|
|
70
|
+
* key.
|
|
71
|
+
* - The registration ID. Another Signal client compares the registration
|
|
72
|
+
* IDs of the member devices of a group before a send. A new install of a
|
|
73
|
+
* device with the same device ID gets the key from this match. A peer
|
|
74
|
+
* that holds the earlier key installs the new key, because the receiver
|
|
75
|
+
* matches a sender key by its ID and not by its generation.
|
|
76
|
+
*/
|
|
77
|
+
devicesNeedingKey<T extends SenderKeyHandoffTarget>(groupId: string, key: SenderKeyHandoffKey, targets: readonly T[]): Promise<T[]>;
|
|
78
|
+
/**
|
|
79
|
+
* Record that the Relay accepted a distribution of the key for one device.
|
|
80
|
+
* The caller records only after the acceptance, and before it confirms the
|
|
81
|
+
* pre-message in its intent.
|
|
82
|
+
*/
|
|
83
|
+
record(groupId: string, key: SenderKeyHandoffKey, device: SenderKeyHandoffDevice, registrationId: number): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Delete the rows of one device in one group, so the next send gives the
|
|
86
|
+
* current key to that device. True when a row was deleted.
|
|
87
|
+
*/
|
|
88
|
+
invalidate(groupId: string, device: SenderKeyHandoffDevice): Promise<boolean>;
|
|
89
|
+
/**
|
|
90
|
+
* Delete the rows of every device of one account in every group, as one
|
|
91
|
+
* Signal client does at an automatic session reset. The store deletes them as it does at
|
|
92
|
+
* an identity rotation of the account. True when a row
|
|
93
|
+
* was deleted.
|
|
94
|
+
*/
|
|
95
|
+
invalidateAccount(userId: string): Promise<boolean>;
|
|
96
|
+
/**
|
|
97
|
+
* Delete the rows that no current own key covers: every row of a group
|
|
98
|
+
* with no own sender key, and each row whose senderKeyId is not the
|
|
99
|
+
* current one. Each group runs in its own sender-key turn, so no send or
|
|
100
|
+
* rotation of the group runs between the key read and the delete.
|
|
101
|
+
*
|
|
102
|
+
* Signal has no sweep, because its row delete and its key delete share one
|
|
103
|
+
* lock. The match above already ignores such rows, so the sweep only
|
|
104
|
+
* removes storage that a crash or a custom store left.
|
|
105
|
+
*
|
|
106
|
+
* @returns The count of deleted rows.
|
|
107
|
+
*/
|
|
108
|
+
sweep(groups: SenderKeyHandoffSweepGroups): Promise<number>;
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=handoff-ledger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handoff-ledger.d.ts","sourceRoot":"","sources":["../../../../internal/protocol/sender-keys/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G;IACH,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,OAAO,CAAC,CAE5E;IAED;;;;;OAKG;IACH,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAElD;IAED;;;;;;;;;;;OAWG;IACG,KAAK,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,MAAM,CAAC,CAQhE;CACF"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The sender-key handoff ledger: which recipient devices already got the
|
|
3
|
+
* local device's current sender key for a group.
|
|
4
|
+
*
|
|
5
|
+
* A row records that the Relay accepted a distribution of the key for one
|
|
6
|
+
* recipient device. A row is a handoff, never proof of install. The ledger
|
|
7
|
+
* owns the policy: which devices need the key, when a row is written, and
|
|
8
|
+
* which rows an event or the sweep removes. The store owns the rows and the
|
|
9
|
+
* deletes that happen in the same transaction as a session, device, identity,
|
|
10
|
+
* or sender-key write.
|
|
11
|
+
*
|
|
12
|
+
* The ledger has the role of the sender-key shared-with record of the Signal
|
|
13
|
+
* clients: the devices that got the current sender key of a group. These
|
|
14
|
+
* events delete rows, as in one Signal client:
|
|
15
|
+
* - a session archive or a new PreKey session deletes the rows of the device
|
|
16
|
+
* in every group, as the session archive and the PreKey decrypt of that
|
|
17
|
+
* client do
|
|
18
|
+
* - an identity change deletes the rows of the account
|
|
19
|
+
* - a retry request for a group message deletes the rows of the device in the
|
|
20
|
+
* group of the message only, as the sender-key retry receipt does
|
|
21
|
+
* - a rotation, a new own key, or a delete of the own key deletes the rows of
|
|
22
|
+
* the group in the same write as the key
|
|
23
|
+
*
|
|
24
|
+
* The SDK has no handler for a device-set mismatch from the Relay. Signal
|
|
25
|
+
* clears the rows of the devices in a 409 or a 410 answer. Here a session
|
|
26
|
+
* archive and the listed devices of each send do that work.
|
|
27
|
+
*/
|
|
28
|
+
function targetKey(userId, deviceId, registrationId) {
|
|
29
|
+
return JSON.stringify([userId, deviceId, registrationId]);
|
|
30
|
+
}
|
|
31
|
+
export class SenderKeyHandoffLedger {
|
|
32
|
+
store;
|
|
33
|
+
now;
|
|
34
|
+
constructor(store, now = Date.now) {
|
|
35
|
+
this.store = store;
|
|
36
|
+
this.now = now;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The targets that need the key, in input order. A target needs the key
|
|
40
|
+
* when no row of the group matches the key's generation and senderKeyId,
|
|
41
|
+
* the user, the device, and the registration ID of the current session.
|
|
42
|
+
* A target with no current session always needs the key, as in one Signal
|
|
43
|
+
* client.
|
|
44
|
+
*
|
|
45
|
+
* Two parts of the match are not in the shared-with table of that client,
|
|
46
|
+
* which keys a row by distribution and device only:
|
|
47
|
+
* - The senderKeyId. A delete and then a create of the own key start again
|
|
48
|
+
* at generation 1 with a new senderKeyId, so a row of the earlier key
|
|
49
|
+
* has the same generation. The built-in stores delete the rows in the
|
|
50
|
+
* rotation write. A custom store can write the key and delete the rows
|
|
51
|
+
* in two writes, and a crash between them leaves a row.
|
|
52
|
+
* The own key rotation of that client has the same crash window between its
|
|
53
|
+
* key delete and its row delete. With the senderKeyId in
|
|
54
|
+
* the match, such a row never stops a device from getting the current
|
|
55
|
+
* key.
|
|
56
|
+
* - The registration ID. Another Signal client compares the registration
|
|
57
|
+
* IDs of the member devices of a group before a send. A new install of a
|
|
58
|
+
* device with the same device ID gets the key from this match. A peer
|
|
59
|
+
* that holds the earlier key installs the new key, because the receiver
|
|
60
|
+
* matches a sender key by its ID and not by its generation.
|
|
61
|
+
*/
|
|
62
|
+
async devicesNeedingKey(groupId, key, targets) {
|
|
63
|
+
if (targets.length === 0)
|
|
64
|
+
return [];
|
|
65
|
+
const rows = await this.store.listSenderKeyHandoffs(groupId, key.generation);
|
|
66
|
+
const handedOff = new Set(rows
|
|
67
|
+
.filter((row) => row.senderKeyId === key.senderKeyId && row.generation === key.generation)
|
|
68
|
+
.map((row) => targetKey(row.recipientUserId, row.recipientDeviceId, row.recipientRegistrationId)));
|
|
69
|
+
return targets.filter((target) => target.registrationId === undefined ||
|
|
70
|
+
!handedOff.has(targetKey(target.userId, target.deviceId, target.registrationId)));
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Record that the Relay accepted a distribution of the key for one device.
|
|
74
|
+
* The caller records only after the acceptance, and before it confirms the
|
|
75
|
+
* pre-message in its intent.
|
|
76
|
+
*/
|
|
77
|
+
async record(groupId, key, device, registrationId) {
|
|
78
|
+
await this.store.recordSenderKeyHandoff({
|
|
79
|
+
groupId,
|
|
80
|
+
senderKeyId: key.senderKeyId,
|
|
81
|
+
generation: key.generation,
|
|
82
|
+
recipientUserId: device.userId,
|
|
83
|
+
recipientDeviceId: device.deviceId,
|
|
84
|
+
recipientRegistrationId: registrationId,
|
|
85
|
+
acceptedAt: this.now(),
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Delete the rows of one device in one group, so the next send gives the
|
|
90
|
+
* current key to that device. True when a row was deleted.
|
|
91
|
+
*/
|
|
92
|
+
invalidate(groupId, device) {
|
|
93
|
+
return this.store.invalidateSenderKeyHandoff(groupId, device);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Delete the rows of every device of one account in every group, as one
|
|
97
|
+
* Signal client does at an automatic session reset. The store deletes them as it does at
|
|
98
|
+
* an identity rotation of the account. True when a row
|
|
99
|
+
* was deleted.
|
|
100
|
+
*/
|
|
101
|
+
invalidateAccount(userId) {
|
|
102
|
+
return this.store.invalidateAccountSenderKeyHandoffs(userId);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Delete the rows that no current own key covers: every row of a group
|
|
106
|
+
* with no own sender key, and each row whose senderKeyId is not the
|
|
107
|
+
* current one. Each group runs in its own sender-key turn, so no send or
|
|
108
|
+
* rotation of the group runs between the key read and the delete.
|
|
109
|
+
*
|
|
110
|
+
* Signal has no sweep, because its row delete and its key delete share one
|
|
111
|
+
* lock. The match above already ignores such rows, so the sweep only
|
|
112
|
+
* removes storage that a crash or a custom store left.
|
|
113
|
+
*
|
|
114
|
+
* @returns The count of deleted rows.
|
|
115
|
+
*/
|
|
116
|
+
async sweep(groups) {
|
|
117
|
+
let deleted = 0;
|
|
118
|
+
for (const groupId of await this.store.listSenderKeyHandoffGroupIds()) {
|
|
119
|
+
deleted += await groups.inTurn(groupId, async () => this.store.retainSenderKeyHandoffs(groupId, await groups.currentSenderKeyId(groupId)));
|
|
120
|
+
}
|
|
121
|
+
return deleted;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=handoff-ledger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handoff-ledger.js","sourceRoot":"","sources":["../../../../internal/protocol/sender-keys/handoff-ledger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AA2BH,SAAS,SAAS,CAAC,MAAc,EAAE,QAAgB,EAAE,cAAsB;IACzE,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,OAAO,sBAAsB;IAEd,KAAK;IACL,GAAG;IAFtB,YACmB,KAA4B,EAC5B,GAAG,GAAiB,IAAI,CAAC,GAAG;qBAD5B,KAAK;mBACL,GAAG;IACnB,CAAC;IAEJ;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAAe,EACf,GAAwB,EACxB,OAAqB;QAErB,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QACpC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,OAAO,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;QAC7E,MAAM,SAAS,GAAG,IAAI,GAAG,CACvB,IAAI;aACD,MAAM,CAAC,CAAC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CAAC,MAAmC;QAC7C,IAAI,OAAO,GAAG,CAAC,CAAC;QAChB,KAAK,MAAM,OAAO,IAAI,MAAM,IAAI,CAAC,KAAK,CAAC,4BAA4B,EAAE,EAAE,CAAC;YACtE,OAAO,IAAI,MAAM,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,IAAI,EAAE,CACjD,IAAI,CAAC,KAAK,CAAC,uBAAuB,CAAC,OAAO,EAAE,MAAM,MAAM,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CACtF,CAAC;QACJ,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF"}
|
|
@@ -16,9 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* @see https://signal.org/docs/specifications/doubleratchet/ (Section 7.2 for KDF)
|
|
18
18
|
*/
|
|
19
|
-
import type { SignalProtocolLocalStore } from '../../../types/api.js';
|
|
19
|
+
import type { SenderKeyStore, SignalProtocolLocalStore } from '../../../types/api.js';
|
|
20
20
|
import { type Logger } from '../../../logger.js';
|
|
21
21
|
import { type SenderKeysConfig } from '../../../types/protocol-config.js';
|
|
22
|
+
import type { ReceiveWorkSeed } from '../../../types/api.js';
|
|
22
23
|
export {};
|
|
23
24
|
export interface SenderKeyState {
|
|
24
25
|
/**
|
|
@@ -62,14 +63,6 @@ export interface SenderKeyState {
|
|
|
62
63
|
* decryption keys remain usable for delayed messages.
|
|
63
64
|
*/
|
|
64
65
|
createdAt: number;
|
|
65
|
-
/**
|
|
66
|
-
* True while an automatic rotation still needs a durable distribution send.
|
|
67
|
-
*
|
|
68
|
-
* The exact-outbox path clears this only after every prepared distribution
|
|
69
|
-
* message reaches the Relay. If outbox persistence fails first, the next
|
|
70
|
-
* attempt can reconstruct a distribution from the current ratchet state.
|
|
71
|
-
*/
|
|
72
|
-
distributionPending?: boolean;
|
|
73
66
|
}
|
|
74
67
|
export interface SenderKeyDistributionMessage {
|
|
75
68
|
senderKeyVersion: string;
|
|
@@ -91,6 +84,30 @@ export interface EncryptedGroupMessage {
|
|
|
91
84
|
export declare function assertSenderKeyVersion(state: {
|
|
92
85
|
senderKeyVersion: string;
|
|
93
86
|
}): void;
|
|
87
|
+
/**
|
|
88
|
+
* Resolve the group a framed SenderKeyMessage belongs to.
|
|
89
|
+
*
|
|
90
|
+
* A group envelope names no group. It carries the sender's identity and an
|
|
91
|
+
* opaque distribution identifier inside the frame. The receiver maps that
|
|
92
|
+
* identifier back to a group through its own sender key store. The store is
|
|
93
|
+
* the only thing that knows the association, which is why the relay cannot
|
|
94
|
+
* learn it.
|
|
95
|
+
*
|
|
96
|
+
* Parsing here reads unauthenticated bytes: the signature is not checked
|
|
97
|
+
* until `decryptGroupMessage`. That is safe because the only thing taken
|
|
98
|
+
* from them is an identifier used as a lookup key. A forged identifier
|
|
99
|
+
* either matches no record, or matches one. Matching one is not an
|
|
100
|
+
* escalation. The caller's own state already binds that identifier to a
|
|
101
|
+
* public signature key, and the subsequent verification rejects the forgery
|
|
102
|
+
* against it.
|
|
103
|
+
*
|
|
104
|
+
* @param store - The sender key store of the receiving device
|
|
105
|
+
* @param framedMessage - Framed SenderKeyMessage bytes from the envelope
|
|
106
|
+
* @param senderId - Sender user identifier, from the envelope
|
|
107
|
+
* @param senderDeviceId - Sender device identifier, from the envelope
|
|
108
|
+
* @returns The group identifier, or null if no sender key matches
|
|
109
|
+
*/
|
|
110
|
+
export declare function resolveGroupForFramedMessage(store: Pick<SenderKeyStore, 'resolveGroupForSenderKeyId'>, framedMessage: Uint8Array, senderId: string, senderDeviceId: number): Promise<string | null>;
|
|
94
111
|
export declare class SenderKeyManager {
|
|
95
112
|
private storage;
|
|
96
113
|
/** Resolved configuration values */
|
|
@@ -98,25 +115,8 @@ export declare class SenderKeyManager {
|
|
|
98
115
|
private readonly maxChainAdvance;
|
|
99
116
|
private readonly maxSkippedKeys;
|
|
100
117
|
private readonly maxSenderKeyAge;
|
|
101
|
-
/**
|
|
102
|
-
* In-memory cache of previous sender key states for rotation transitions.
|
|
103
|
-
*
|
|
104
|
-
* Keep up to MAX_SENDER_KEY_STATES per sender to decrypt in-flight
|
|
105
|
-
* messages encrypted with a previous key during the rotation window.
|
|
106
|
-
*
|
|
107
|
-
* This cache is backed by persistent storage via storeSenderKeyRecord/
|
|
108
|
-
* getSenderKeyRecord (when available). On cache miss, previous states
|
|
109
|
-
* are loaded from storage.
|
|
110
|
-
*
|
|
111
|
-
* Key format: JSON tuple [groupId, userId, deviceId].
|
|
112
|
-
* Value: Array of previous states (most recent first), capped at MAX_SENDER_KEY_STATES - 1
|
|
113
|
-
* (the current state is in storage, previous states are here)
|
|
114
|
-
*/
|
|
115
|
-
private readonly previousStates;
|
|
116
118
|
private readonly logger;
|
|
117
119
|
constructor(storage: SignalProtocolLocalStore, config?: SenderKeysConfig, logger?: Required<Logger>);
|
|
118
|
-
/** Encode each cache address component separately, including delimiters in names. */
|
|
119
|
-
private stateKey;
|
|
120
120
|
/**
|
|
121
121
|
* Convert decrypted bytes into a lossless string representation.
|
|
122
122
|
*
|
|
@@ -138,10 +138,9 @@ export declare class SenderKeyManager {
|
|
|
138
138
|
*/
|
|
139
139
|
private persistSenderKeyRecord;
|
|
140
140
|
/**
|
|
141
|
-
* Load previous states
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
* Uses getSenderKeyRecord if available, otherwise returns empty array.
|
|
141
|
+
* Load the previous states of a sender from the stored record, most recent
|
|
142
|
+
* first. The manager keeps no copy: each call reads the store, so a
|
|
143
|
+
* rotation or a receive that another tab or manager wrote is kept.
|
|
145
144
|
*/
|
|
146
145
|
private loadPreviousStates;
|
|
147
146
|
/**
|
|
@@ -161,10 +160,22 @@ export declare class SenderKeyManager {
|
|
|
161
160
|
* Process received sender key distribution message
|
|
162
161
|
* Store sender key for another member
|
|
163
162
|
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
163
|
+
* The receiver matches a key by its identity, the senderKeyId, as
|
|
164
|
+
* Signal's published implementation matches a state by its chain ID and
|
|
165
|
+
* signing key. A sender that creates a key again starts at generation 1
|
|
166
|
+
* with a new senderKeyId, so the generation does not order two different
|
|
167
|
+
* keys.
|
|
168
|
+
* - The same key as the current state: the generation rules of spec
|
|
169
|
+
* Section 3.4 apply. A lower generation changes nothing. The same
|
|
170
|
+
* generation changes nothing at any chainIndex, because the existing
|
|
171
|
+
* state can be ahead through decryption. A higher generation replaces
|
|
172
|
+
* the current state in place, and the previous states do not change.
|
|
173
|
+
* - The key of a previous state: a late copy changes nothing, and the
|
|
174
|
+
* state stays in its place.
|
|
175
|
+
* - Another key: it becomes the current state, and the existing state
|
|
176
|
+
* moves to the front of the previous states, so a message in flight
|
|
177
|
+
* under it still decrypts. When the record already holds
|
|
178
|
+
* MAX_SENDER_KEY_STATES states, the oldest state goes.
|
|
168
179
|
*
|
|
169
180
|
* @param groupId - Group identifier
|
|
170
181
|
* @param senderId - Sender user identifier
|
|
@@ -172,6 +183,15 @@ export declare class SenderKeyManager {
|
|
|
172
183
|
* @param message - Distribution message with key material
|
|
173
184
|
*/
|
|
174
185
|
processSenderKeyDistribution(groupId: string, senderId: string, senderDeviceId: number, message: SenderKeyDistributionMessage): Promise<void>;
|
|
186
|
+
/**
|
|
187
|
+
* Report whether the local sender key of a group is past the age bound,
|
|
188
|
+
* by the same rule that makes {@link encryptGroupMessage} refuse it with
|
|
189
|
+
* `SENDER_KEY_EXPIRED`. A send reads it before it distributes a pending
|
|
190
|
+
* key, so it rotates instead of distributing a key that it cannot use.
|
|
191
|
+
*
|
|
192
|
+
* @returns False when there is no sender key for the group.
|
|
193
|
+
*/
|
|
194
|
+
isOwnSenderKeyExpired(groupId: string, userId: string, deviceId: number): Promise<boolean>;
|
|
175
195
|
/**
|
|
176
196
|
* Encrypt message for group using sender key
|
|
177
197
|
* Returns ciphertext + signature (O(1) encryption)
|
|
@@ -195,21 +215,8 @@ export declare class SenderKeyManager {
|
|
|
195
215
|
* @returns Decrypted plaintext
|
|
196
216
|
*/
|
|
197
217
|
/**
|
|
198
|
-
* Resolve the group a framed SenderKeyMessage belongs to
|
|
199
|
-
*
|
|
200
|
-
* A group envelope names no group. It carries the sender's identity and an
|
|
201
|
-
* opaque distribution identifier inside the frame. The receiver maps that
|
|
202
|
-
* identifier back to a group through its own sender key store. The store is
|
|
203
|
-
* the only thing that knows the association, which is why the relay cannot
|
|
204
|
-
* learn it.
|
|
205
|
-
*
|
|
206
|
-
* Parsing here reads unauthenticated bytes: the signature is not checked
|
|
207
|
-
* until `decryptGroupMessage`. That is safe because the only thing taken
|
|
208
|
-
* from them is an identifier used as a lookup key. A forged identifier
|
|
209
|
-
* either matches no record, or matches one. Matching one is not an
|
|
210
|
-
* escalation. The caller's own state already binds that identifier to a
|
|
211
|
-
* public signature key, and the subsequent verification rejects the forgery
|
|
212
|
-
* against it.
|
|
218
|
+
* Resolve the group a framed SenderKeyMessage belongs to, from the store
|
|
219
|
+
* of this manager, as `resolveGroupForFramedMessage` tells.
|
|
213
220
|
*
|
|
214
221
|
* @param framedMessage - Framed SenderKeyMessage bytes from the envelope
|
|
215
222
|
* @param senderId - Sender user identifier, from the envelope
|
|
@@ -217,7 +224,7 @@ export declare class SenderKeyManager {
|
|
|
217
224
|
* @returns The group identifier, or null if no sender key matches
|
|
218
225
|
*/
|
|
219
226
|
resolveGroupForFramedMessage(framedMessage: Uint8Array, senderId: string, senderDeviceId: number): Promise<string | null>;
|
|
220
|
-
decryptGroupMessage(groupId: string, senderId: string, senderDeviceId: number, framedMessage: Uint8Array,
|
|
227
|
+
decryptGroupMessage(groupId: string, senderId: string, senderDeviceId: number, framedMessage: Uint8Array, receiveWork?: ReceiveWorkSeed): Promise<string>;
|
|
221
228
|
/**
|
|
222
229
|
* Decrypt message using stored skipped key (out-of-order delivery).
|
|
223
230
|
*
|
|
@@ -256,26 +263,24 @@ export declare class SenderKeyManager {
|
|
|
256
263
|
* @param deviceId - Device identifier
|
|
257
264
|
* @returns New sender key ID and distribution message
|
|
258
265
|
*/
|
|
259
|
-
rotateSenderKey(groupId: string, userId: string, deviceId: number
|
|
260
|
-
distributionPending?: boolean;
|
|
261
|
-
}): Promise<{
|
|
266
|
+
rotateSenderKey(groupId: string, userId: string, deviceId: number): Promise<{
|
|
262
267
|
senderKeyId: string;
|
|
263
268
|
distributionMessage: SenderKeyDistributionMessage;
|
|
264
269
|
}>;
|
|
265
270
|
/**
|
|
266
|
-
*
|
|
267
|
-
*
|
|
268
|
-
*
|
|
271
|
+
* The distribution of the current sender key at its current chain index,
|
|
272
|
+
* or null when the device has no sender key for the group. A receiver that
|
|
273
|
+
* installs it decrypts the later group messages of the sender, but no
|
|
274
|
+
* earlier one.
|
|
269
275
|
*/
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* Clear a pending automatic distribution only for the generation whose
|
|
273
|
-
* prepared messages have reached the Relay. A later rotation wins.
|
|
274
|
-
*/
|
|
275
|
-
confirmSenderKeyDistributionSent(groupId: string, userId: string, deviceId: number, senderKeyId: string): Promise<void>;
|
|
276
|
+
getCurrentSenderKeyDistribution(groupId: string, userId: string, deviceId: number): Promise<SenderKeyDistributionMessage | null>;
|
|
276
277
|
/**
|
|
277
278
|
* Delete sender key (when leaving group or revoking device)
|
|
278
279
|
*
|
|
280
|
+
* The delete of an own sender key, which holds a private signature key,
|
|
281
|
+
* also deletes the handoff rows of the group in the same write. The delete
|
|
282
|
+
* of a received key keeps them.
|
|
283
|
+
*
|
|
279
284
|
* @param groupId - Group identifier
|
|
280
285
|
* @param userId - User identifier
|
|
281
286
|
* @param deviceId - Device identifier
|
|
@@ -296,6 +301,10 @@ export declare class SenderKeyManager {
|
|
|
296
301
|
generation: number;
|
|
297
302
|
skippedKeysCount: number;
|
|
298
303
|
}>;
|
|
304
|
+
/** Load the current sender key state, with no retired fields. */
|
|
305
|
+
private loadSenderKey;
|
|
306
|
+
/** Load every stored sender key state, with no retired fields. */
|
|
307
|
+
private loadSenderKeyRecord;
|
|
299
308
|
/**
|
|
300
309
|
* Derive a message key from the Sender Keys chain key.
|
|
301
310
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../../internal/protocol/sender-keys/manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../../internal/protocol/sender-keys/manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,OAAO,KAAK,EAGV,cAAc,EACd,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAA+B,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE3E,OAAO,EACL,KAAK,gBAAgB,EAKtB,MAAM,gCAAgC,CAAC;AAExC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAY1D,OAAO,EAAE,CAAC;AACV,MAAM,WAAW,cAAc;IAC7B;;;;;;;;;;;;;OAaG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAKD,MAAM,WAAW,4BAA4B;IAC3C,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,M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