@blockcast/mmt-container 0.3.0 → 0.4.0-main.d6f2737828fc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -8
- package/dist/browser-runtime.js +1185 -1049
- package/dist/browser-runtime.js.map +4 -4
- package/dist/carp-catalog.d.ts +24 -8
- package/dist/carp-catalog.d.ts.map +1 -1
- package/dist/carp-catalog.js +21 -8
- package/dist/carp-catalog.js.map +2 -2
- package/dist/catalog-fec-params.d.ts +88 -28
- package/dist/catalog-fec-params.d.ts.map +1 -1
- package/dist/catalog-fec-params.js +59 -17
- package/dist/catalog-fec-params.js.map +3 -3
- package/dist/catalog-network-source.js +0 -1
- package/dist/catalog-network-source.js.map +2 -2
- package/dist/cmaf-block-assembler.d.ts +0 -2
- package/dist/cmaf-block-assembler.d.ts.map +1 -1
- package/dist/cmaf-block-assembler.js +0 -1
- package/dist/cmaf-block-assembler.js.map +2 -2
- package/dist/delta-fallback-config.d.ts +42 -0
- package/dist/delta-fallback-config.d.ts.map +1 -0
- package/dist/delta-fallback-config.js +59 -0
- package/dist/delta-fallback-config.js.map +7 -0
- package/dist/fec-manager.d.ts +35 -26
- package/dist/fec-manager.d.ts.map +1 -1
- package/dist/fec-manager.js +300 -273
- package/dist/fec-manager.js.map +2 -2
- package/dist/fec-state.d.ts +19 -31
- package/dist/fec-state.d.ts.map +1 -1
- package/dist/fec-state.js +3 -4
- package/dist/fec-state.js.map +2 -2
- package/dist/fec-worker-setup.d.ts +16 -6
- package/dist/fec-worker-setup.d.ts.map +1 -1
- package/dist/fec-worker-setup.js +72 -34
- package/dist/fec-worker-setup.js.map +2 -2
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +2 -2
- package/dist/iso-block-locator.js +0 -1
- package/dist/iso-block-locator.js.map +2 -2
- package/dist/media-router.d.ts +20 -8
- package/dist/media-router.d.ts.map +1 -1
- package/dist/media-router.js +46 -21
- package/dist/media-router.js.map +2 -2
- package/dist/mfu-reassembler.js +0 -1
- package/dist/mfu-reassembler.js.map +2 -2
- package/dist/mmtp-container-parser.d.ts +5 -0
- package/dist/mmtp-container-parser.d.ts.map +1 -1
- package/dist/mmtp-container-parser.js +22 -1
- package/dist/mmtp-container-parser.js.map +2 -2
- package/dist/mmtp-container-parser.no-modules.js +37 -9
- package/dist/mmtp-container-parser.no-modules.js.map +2 -2
- package/dist/mmtp-decode-pipeline.js +22 -1
- package/dist/mmtp-decode-pipeline.js.map +2 -2
- package/dist/mmtp-router.d.ts +36 -16
- package/dist/mmtp-router.d.ts.map +1 -1
- package/dist/mmtp-router.js +126 -213
- package/dist/mmtp-router.js.map +2 -2
- package/dist/multicast-input.js +0 -1
- package/dist/multicast-input.js.map +2 -2
- package/dist/multicast-manager.d.ts +33 -3
- package/dist/multicast-manager.d.ts.map +1 -1
- package/dist/multicast-manager.js +660 -529
- package/dist/multicast-manager.js.map +4 -4
- package/dist/multicast-transport.d.ts +1 -1
- package/dist/multicast-transport.d.ts.map +1 -1
- package/dist/multicast-transport.js +42 -14
- package/dist/multicast-transport.js.map +3 -3
- package/dist/multicast-unwrap.js +0 -1
- package/dist/multicast-unwrap.js.map +2 -2
- package/dist/no-modules.js +36 -8
- package/dist/no-modules.js.map +2 -2
- package/dist/repair-fetch.d.ts +30 -19
- package/dist/repair-fetch.d.ts.map +1 -1
- package/dist/repair-fetch.js +32 -18
- package/dist/repair-fetch.js.map +3 -3
- package/dist/repair-layers.d.ts +18 -7
- package/dist/repair-layers.d.ts.map +1 -1
- package/dist/repair-layers.js +11 -4
- package/dist/repair-layers.js.map +2 -2
- package/dist/signaling.js +0 -4
- package/dist/signaling.js.map +2 -2
- package/dist/timestamp-codec.js +0 -1
- package/dist/timestamp-codec.js.map +2 -2
- package/dist/track-session.d.ts +7 -0
- package/dist/track-session.d.ts.map +1 -1
- package/dist/track-session.js +15 -8
- package/dist/track-session.js.map +2 -2
- package/dist/wasm-mfu-reassembler.js +0 -1
- package/dist/wasm-mfu-reassembler.js.map +2 -2
- package/dist/wasm-mmtp-container-parser.js +22 -1
- package/dist/wasm-mmtp-container-parser.js.map +2 -2
- package/package.json +8 -14
- package/schemas/catalog.schema.json +3 -3
- package/src/carp-catalog.ts +35 -13
- package/src/catalog-fec-params.ts +173 -64
- package/src/cmaf-block-assembler.ts +1 -4
- package/src/delta-fallback-config.ts +72 -0
- package/src/fec-manager.ts +413 -317
- package/src/fec-state.ts +20 -32
- package/src/fec-worker-setup.ts +105 -55
- package/src/index.ts +10 -0
- package/src/media-router.ts +59 -21
- package/src/mmtp-container-parser.ts +26 -0
- package/src/mmtp-router.ts +145 -303
- package/src/multicast-manager.ts +172 -60
- package/src/multicast-transport.ts +16 -9
- package/src/repair-fetch.ts +46 -27
- package/src/repair-layers.ts +28 -8
- package/src/track-session.ts +28 -9
- package/test-vectors/catalog/README.md +34 -17
- package/test-vectors/catalog/negative/fec-block-profile-retired.json +52 -0
- package/test-vectors/catalog/negative/fec-enhancement-repair-removed.json +1 -1
- package/test-vectors/catalog/negative/fec-repair-layer-geometry.json +1 -1
- package/test-vectors/catalog/negative/fec-repair-layer-missing-symbols.json +1 -1
- package/test-vectors/catalog/negative/fec-repair-multiple-depends.json +1 -1
- package/test-vectors/catalog/negative/fec-repair-overlay-with-layer.json +1 -1
- package/test-vectors/catalog/negative/fec-repair-priority-out-of-band.json +1 -1
- package/test-vectors/catalog/negative/fec-repair-source-symbols-without-scope.json +1 -1
- package/test-vectors/catalog/negative/multicast-network-source-empty.json +1 -1
- package/test-vectors/catalog/negative/raptorq-source-symbols-over-max.json +1 -1
- package/test-vectors/catalog/negative/raptorq-unaligned-symbol.json +1 -1
- package/test-vectors/catalog/positive/fec-layered-repair.json +2 -2
- package/test-vectors/catalog/positive/fec-multicast.json +2 -1
- package/test-vectors/catalog/positive/multicast-native-ssm-no-network-source.json +2 -1
- package/test-vectors/catalog-timing.json +356 -0
- package/test-vectors/catalog-validation.json +40 -5
- package/node_modules/@blockcast/fec-worker/README.md +0 -223
- package/node_modules/@blockcast/fec-worker/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/fec-worker/dist/block-order.d.ts +0 -38
- package/node_modules/@blockcast/fec-worker/dist/block-order.d.ts.map +0 -1
- package/node_modules/@blockcast/fec-worker/dist/block-order.js +0 -78
- package/node_modules/@blockcast/fec-worker/dist/block-order.js.map +0 -1
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.d.ts +0 -93
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.d.ts.map +0 -1
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.js +0 -346
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.js.map +0 -1
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-types.d.ts +0 -380
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-types.d.ts.map +0 -1
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-types.js +0 -11
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-types.js.map +0 -1
- package/node_modules/@blockcast/fec-worker/dist/fec-worker.d.ts +0 -14
- package/node_modules/@blockcast/fec-worker/dist/fec-worker.d.ts.map +0 -1
- package/node_modules/@blockcast/fec-worker/dist/fec-worker.js +0 -859
- package/node_modules/@blockcast/fec-worker/dist/fec-worker.js.map +0 -7
- package/node_modules/@blockcast/fec-worker/dist/index.d.ts +0 -10
- package/node_modules/@blockcast/fec-worker/dist/index.d.ts.map +0 -1
- package/node_modules/@blockcast/fec-worker/dist/index.js +0 -8
- package/node_modules/@blockcast/fec-worker/dist/index.js.map +0 -1
- package/node_modules/@blockcast/fec-worker/dist/shred-fec-worker.d.ts +0 -20
- package/node_modules/@blockcast/fec-worker/dist/shred-fec-worker.d.ts.map +0 -1
- package/node_modules/@blockcast/fec-worker/dist/shred-fec-worker.js +0 -370
- package/node_modules/@blockcast/fec-worker/dist/shred-fec-worker.js.map +0 -7
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-client.d.ts +0 -104
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-client.d.ts.map +0 -1
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-client.js +0 -181
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-client.js.map +0 -1
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-types.d.ts +0 -194
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-types.d.ts.map +0 -1
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-types.js +0 -62
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-types.js.map +0 -1
- package/node_modules/@blockcast/fec-worker/dist/transfer.d.ts +0 -9
- package/node_modules/@blockcast/fec-worker/dist/transfer.d.ts.map +0 -1
- package/node_modules/@blockcast/fec-worker/dist/transfer.js +0 -13
- package/node_modules/@blockcast/fec-worker/dist/transfer.js.map +0 -1
- package/node_modules/@blockcast/fec-worker/package.json +0 -59
- package/node_modules/@blockcast/fec-worker/src/block-order.ts +0 -93
- package/node_modules/@blockcast/fec-worker/src/fec-worker-client.ts +0 -392
- package/node_modules/@blockcast/fec-worker/src/fec-worker-types.ts +0 -399
- package/node_modules/@blockcast/fec-worker/src/fec-worker.ts +0 -1502
- package/node_modules/@blockcast/fec-worker/src/index.ts +0 -35
- package/node_modules/@blockcast/fec-worker/src/shred-fec-worker.ts +0 -589
- package/node_modules/@blockcast/fec-worker/src/shred-worker-client.ts +0 -222
- package/node_modules/@blockcast/fec-worker/src/shred-worker-types.ts +0 -209
- package/node_modules/@blockcast/fec-worker/src/transfer.ts +0 -12
- package/node_modules/@blockcast/mmt-alta-parse/README.md +0 -181
- package/node_modules/@blockcast/mmt-alta-parse/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/mmt-alta-parse/dist/index.d.ts +0 -57
- package/node_modules/@blockcast/mmt-alta-parse/dist/index.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-alta-parse/dist/index.js +0 -115
- package/node_modules/@blockcast/mmt-alta-parse/dist/index.js.map +0 -1
- package/node_modules/@blockcast/mmt-alta-parse/package.json +0 -50
- package/node_modules/@blockcast/mmt-alta-parse/src/index.ts +0 -136
- package/node_modules/@blockcast/mmt-base/README.md +0 -134
- package/node_modules/@blockcast/mmt-base/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/mmt-base/dist/fec-block-profile.d.ts +0 -55
- package/node_modules/@blockcast/mmt-base/dist/fec-block-profile.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-base/dist/fec-block-profile.js +0 -128
- package/node_modules/@blockcast/mmt-base/dist/fec-block-profile.js.map +0 -1
- package/node_modules/@blockcast/mmt-base/dist/index.d.ts +0 -7
- package/node_modules/@blockcast/mmt-base/dist/index.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-base/dist/index.js +0 -7
- package/node_modules/@blockcast/mmt-base/dist/index.js.map +0 -1
- package/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts +0 -292
- package/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-base/dist/mmtp.js +0 -612
- package/node_modules/@blockcast/mmt-base/dist/mmtp.js.map +0 -1
- package/node_modules/@blockcast/mmt-base/dist/net-constants.d.ts +0 -18
- package/node_modules/@blockcast/mmt-base/dist/net-constants.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-base/dist/net-constants.js +0 -18
- package/node_modules/@blockcast/mmt-base/dist/net-constants.js.map +0 -1
- package/node_modules/@blockcast/mmt-base/dist/ntp-short.d.ts +0 -47
- package/node_modules/@blockcast/mmt-base/dist/ntp-short.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-base/dist/ntp-short.js +0 -54
- package/node_modules/@blockcast/mmt-base/dist/ntp-short.js.map +0 -1
- package/node_modules/@blockcast/mmt-base/dist/serial-number.d.ts +0 -57
- package/node_modules/@blockcast/mmt-base/dist/serial-number.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-base/dist/serial-number.js +0 -98
- package/node_modules/@blockcast/mmt-base/dist/serial-number.js.map +0 -1
- package/node_modules/@blockcast/mmt-base/dist/signalling.d.ts +0 -312
- package/node_modules/@blockcast/mmt-base/dist/signalling.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-base/dist/signalling.js +0 -637
- package/node_modules/@blockcast/mmt-base/dist/signalling.js.map +0 -1
- package/node_modules/@blockcast/mmt-base/package.json +0 -49
- package/node_modules/@blockcast/mmt-base/src/fec-block-profile.ts +0 -145
- package/node_modules/@blockcast/mmt-base/src/index.ts +0 -6
- package/node_modules/@blockcast/mmt-base/src/mmtp.ts +0 -892
- package/node_modules/@blockcast/mmt-base/src/net-constants.ts +0 -17
- package/node_modules/@blockcast/mmt-base/src/ntp-short.ts +0 -67
- package/node_modules/@blockcast/mmt-base/src/serial-number.ts +0 -107
- package/node_modules/@blockcast/mmt-base/src/signalling.ts +0 -862
- package/node_modules/@blockcast/mmt-fec/README.md +0 -271
- package/node_modules/@blockcast/mmt-fec/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/mmt-fec/dist/block-manager.d.ts +0 -82
- package/node_modules/@blockcast/mmt-fec/dist/block-manager.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-fec/dist/block-manager.js +0 -296
- package/node_modules/@blockcast/mmt-fec/dist/block-manager.js.map +0 -1
- package/node_modules/@blockcast/mmt-fec/dist/block-processor.d.ts +0 -106
- package/node_modules/@blockcast/mmt-fec/dist/block-processor.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-fec/dist/block-processor.js +0 -288
- package/node_modules/@blockcast/mmt-fec/dist/block-processor.js.map +0 -1
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-recovery.d.ts +0 -46
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-recovery.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-recovery.js +0 -96
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-recovery.js.map +0 -1
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-symbols.d.ts +0 -33
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-symbols.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-symbols.js +0 -57
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-symbols.js.map +0 -1
- package/node_modules/@blockcast/mmt-fec/dist/fec-block-mapper.d.ts +0 -205
- package/node_modules/@blockcast/mmt-fec/dist/fec-block-mapper.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-fec/dist/fec-block-mapper.js +0 -240
- package/node_modules/@blockcast/mmt-fec/dist/fec-block-mapper.js.map +0 -1
- package/node_modules/@blockcast/mmt-fec/dist/index.d.ts +0 -28
- package/node_modules/@blockcast/mmt-fec/dist/index.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-fec/dist/index.js +0 -28
- package/node_modules/@blockcast/mmt-fec/dist/index.js.map +0 -1
- package/node_modules/@blockcast/mmt-fec/dist/loc-symbols.d.ts +0 -20
- package/node_modules/@blockcast/mmt-fec/dist/loc-symbols.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-fec/dist/loc-symbols.js +0 -28
- package/node_modules/@blockcast/mmt-fec/dist/loc-symbols.js.map +0 -1
- package/node_modules/@blockcast/mmt-fec/dist/oti.d.ts +0 -258
- package/node_modules/@blockcast/mmt-fec/dist/oti.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-fec/dist/oti.js +0 -382
- package/node_modules/@blockcast/mmt-fec/dist/oti.js.map +0 -1
- package/node_modules/@blockcast/mmt-fec/dist/reorder-buffer.d.ts +0 -41
- package/node_modules/@blockcast/mmt-fec/dist/reorder-buffer.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-fec/dist/reorder-buffer.js +0 -81
- package/node_modules/@blockcast/mmt-fec/dist/reorder-buffer.js.map +0 -1
- package/node_modules/@blockcast/mmt-fec/dist/repair-group.d.ts +0 -82
- package/node_modules/@blockcast/mmt-fec/dist/repair-group.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-fec/dist/repair-group.js +0 -170
- package/node_modules/@blockcast/mmt-fec/dist/repair-group.js.map +0 -1
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/README.md +0 -181
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/index.d.ts +0 -57
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/index.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/index.js +0 -115
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/index.js.map +0 -1
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/package.json +0 -50
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/src/index.ts +0 -136
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/README.md +0 -134
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/fec-block-profile.d.ts +0 -55
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/fec-block-profile.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/fec-block-profile.js +0 -128
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/fec-block-profile.js.map +0 -1
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.d.ts +0 -7
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.js +0 -7
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.js.map +0 -1
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts +0 -292
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/mmtp.js +0 -612
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/mmtp.js.map +0 -1
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/net-constants.d.ts +0 -18
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/net-constants.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/net-constants.js +0 -18
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/net-constants.js.map +0 -1
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/ntp-short.d.ts +0 -47
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/ntp-short.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/ntp-short.js +0 -54
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/ntp-short.js.map +0 -1
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/serial-number.d.ts +0 -57
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/serial-number.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/serial-number.js +0 -98
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/serial-number.js.map +0 -1
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/signalling.d.ts +0 -312
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/signalling.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/signalling.js +0 -637
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/signalling.js.map +0 -1
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/package.json +0 -49
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/fec-block-profile.ts +0 -145
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/index.ts +0 -6
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/mmtp.ts +0 -892
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/net-constants.ts +0 -17
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/ntp-short.ts +0 -67
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/serial-number.ts +0 -107
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/signalling.ts +0 -862
- package/node_modules/@blockcast/mmt-fec/package.json +0 -79
- package/node_modules/@blockcast/mmt-fec/src/block-manager.ts +0 -371
- package/node_modules/@blockcast/mmt-fec/src/block-processor.ts +0 -439
- package/node_modules/@blockcast/mmt-fec/src/cmaf-recovery.ts +0 -127
- package/node_modules/@blockcast/mmt-fec/src/cmaf-symbols.ts +0 -68
- package/node_modules/@blockcast/mmt-fec/src/fec-block-mapper.ts +0 -310
- package/node_modules/@blockcast/mmt-fec/src/index.ts +0 -94
- package/node_modules/@blockcast/mmt-fec/src/loc-symbols.ts +0 -34
- package/node_modules/@blockcast/mmt-fec/src/oti.ts +0 -463
- package/node_modules/@blockcast/mmt-fec/src/reorder-buffer.ts +0 -101
- package/node_modules/@blockcast/mmt-fec/src/repair-group.ts +0 -195
- package/node_modules/@blockcast/mmt-manifest-verify/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/admission.d.ts +0 -28
- package/node_modules/@blockcast/mmt-manifest-verify/dist/admission.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-manifest-verify/dist/admission.js +0 -128
- package/node_modules/@blockcast/mmt-manifest-verify/dist/admission.js.map +0 -1
- package/node_modules/@blockcast/mmt-manifest-verify/dist/index.d.ts +0 -4
- package/node_modules/@blockcast/mmt-manifest-verify/dist/index.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-manifest-verify/dist/index.js +0 -4
- package/node_modules/@blockcast/mmt-manifest-verify/dist/index.js.map +0 -1
- package/node_modules/@blockcast/mmt-manifest-verify/dist/source-auth.d.ts +0 -37
- package/node_modules/@blockcast/mmt-manifest-verify/dist/source-auth.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-manifest-verify/dist/source-auth.js +0 -179
- package/node_modules/@blockcast/mmt-manifest-verify/dist/source-auth.js.map +0 -1
- package/node_modules/@blockcast/mmt-manifest-verify/dist/verifier.d.ts +0 -99
- package/node_modules/@blockcast/mmt-manifest-verify/dist/verifier.d.ts.map +0 -1
- package/node_modules/@blockcast/mmt-manifest-verify/dist/verifier.js +0 -492
- package/node_modules/@blockcast/mmt-manifest-verify/dist/verifier.js.map +0 -1
- package/node_modules/@blockcast/mmt-manifest-verify/package.json +0 -45
- package/node_modules/@blockcast/mmt-manifest-verify/src/admission.ts +0 -171
- package/node_modules/@blockcast/mmt-manifest-verify/src/index.ts +0 -3
- package/node_modules/@blockcast/mmt-manifest-verify/src/source-auth.ts +0 -230
- package/node_modules/@blockcast/mmt-manifest-verify/src/verifier.ts +0 -669
- package/node_modules/@noble/hashes/LICENSE +0 -21
- package/node_modules/@noble/hashes/README.md +0 -521
- package/node_modules/@noble/hashes/_assert.d.ts +0 -17
- package/node_modules/@noble/hashes/_assert.d.ts.map +0 -1
- package/node_modules/@noble/hashes/_assert.js +0 -18
- package/node_modules/@noble/hashes/_assert.js.map +0 -1
- package/node_modules/@noble/hashes/_blake.d.ts +0 -14
- package/node_modules/@noble/hashes/_blake.d.ts.map +0 -1
- package/node_modules/@noble/hashes/_blake.js +0 -50
- package/node_modules/@noble/hashes/_blake.js.map +0 -1
- package/node_modules/@noble/hashes/_md.d.ts +0 -51
- package/node_modules/@noble/hashes/_md.d.ts.map +0 -1
- package/node_modules/@noble/hashes/_md.js +0 -162
- package/node_modules/@noble/hashes/_md.js.map +0 -1
- package/node_modules/@noble/hashes/_u64.d.ts +0 -55
- package/node_modules/@noble/hashes/_u64.d.ts.map +0 -1
- package/node_modules/@noble/hashes/_u64.js +0 -90
- package/node_modules/@noble/hashes/_u64.js.map +0 -1
- package/node_modules/@noble/hashes/argon2.d.ts +0 -32
- package/node_modules/@noble/hashes/argon2.d.ts.map +0 -1
- package/node_modules/@noble/hashes/argon2.js +0 -401
- package/node_modules/@noble/hashes/argon2.js.map +0 -1
- package/node_modules/@noble/hashes/blake1.d.ts +0 -106
- package/node_modules/@noble/hashes/blake1.d.ts.map +0 -1
- package/node_modules/@noble/hashes/blake1.js +0 -459
- package/node_modules/@noble/hashes/blake1.js.map +0 -1
- package/node_modules/@noble/hashes/blake2.d.ts +0 -116
- package/node_modules/@noble/hashes/blake2.d.ts.map +0 -1
- package/node_modules/@noble/hashes/blake2.js +0 -420
- package/node_modules/@noble/hashes/blake2.js.map +0 -1
- package/node_modules/@noble/hashes/blake2b.d.ts +0 -11
- package/node_modules/@noble/hashes/blake2b.d.ts.map +0 -1
- package/node_modules/@noble/hashes/blake2b.js +0 -14
- package/node_modules/@noble/hashes/blake2b.js.map +0 -1
- package/node_modules/@noble/hashes/blake2s.d.ts +0 -20
- package/node_modules/@noble/hashes/blake2s.d.ts.map +0 -1
- package/node_modules/@noble/hashes/blake2s.js +0 -24
- package/node_modules/@noble/hashes/blake2s.js.map +0 -1
- package/node_modules/@noble/hashes/blake3.d.ts +0 -54
- package/node_modules/@noble/hashes/blake3.d.ts.map +0 -1
- package/node_modules/@noble/hashes/blake3.js +0 -255
- package/node_modules/@noble/hashes/blake3.js.map +0 -1
- package/node_modules/@noble/hashes/crypto.d.ts +0 -2
- package/node_modules/@noble/hashes/crypto.d.ts.map +0 -1
- package/node_modules/@noble/hashes/crypto.js +0 -5
- package/node_modules/@noble/hashes/crypto.js.map +0 -1
- package/node_modules/@noble/hashes/cryptoNode.d.ts +0 -2
- package/node_modules/@noble/hashes/cryptoNode.d.ts.map +0 -1
- package/node_modules/@noble/hashes/cryptoNode.js +0 -18
- package/node_modules/@noble/hashes/cryptoNode.js.map +0 -1
- package/node_modules/@noble/hashes/eskdf.d.ts +0 -47
- package/node_modules/@noble/hashes/eskdf.d.ts.map +0 -1
- package/node_modules/@noble/hashes/eskdf.js +0 -166
- package/node_modules/@noble/hashes/eskdf.js.map +0 -1
- package/node_modules/@noble/hashes/esm/_assert.d.ts +0 -17
- package/node_modules/@noble/hashes/esm/_assert.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/_assert.js +0 -15
- package/node_modules/@noble/hashes/esm/_assert.js.map +0 -1
- package/node_modules/@noble/hashes/esm/_blake.d.ts +0 -14
- package/node_modules/@noble/hashes/esm/_blake.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/_blake.js +0 -45
- package/node_modules/@noble/hashes/esm/_blake.js.map +0 -1
- package/node_modules/@noble/hashes/esm/_md.d.ts +0 -51
- package/node_modules/@noble/hashes/esm/_md.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/_md.js +0 -155
- package/node_modules/@noble/hashes/esm/_md.js.map +0 -1
- package/node_modules/@noble/hashes/esm/_u64.d.ts +0 -55
- package/node_modules/@noble/hashes/esm/_u64.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/_u64.js +0 -67
- package/node_modules/@noble/hashes/esm/_u64.js.map +0 -1
- package/node_modules/@noble/hashes/esm/argon2.d.ts +0 -32
- package/node_modules/@noble/hashes/esm/argon2.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/argon2.js +0 -392
- package/node_modules/@noble/hashes/esm/argon2.js.map +0 -1
- package/node_modules/@noble/hashes/esm/blake1.d.ts +0 -106
- package/node_modules/@noble/hashes/esm/blake1.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/blake1.js +0 -452
- package/node_modules/@noble/hashes/esm/blake1.js.map +0 -1
- package/node_modules/@noble/hashes/esm/blake2.d.ts +0 -116
- package/node_modules/@noble/hashes/esm/blake2.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/blake2.js +0 -413
- package/node_modules/@noble/hashes/esm/blake2.js.map +0 -1
- package/node_modules/@noble/hashes/esm/blake2b.d.ts +0 -11
- package/node_modules/@noble/hashes/esm/blake2b.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/blake2b.js +0 -11
- package/node_modules/@noble/hashes/esm/blake2b.js.map +0 -1
- package/node_modules/@noble/hashes/esm/blake2s.d.ts +0 -20
- package/node_modules/@noble/hashes/esm/blake2s.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/blake2s.js +0 -21
- package/node_modules/@noble/hashes/esm/blake2s.js.map +0 -1
- package/node_modules/@noble/hashes/esm/blake3.d.ts +0 -54
- package/node_modules/@noble/hashes/esm/blake3.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/blake3.js +0 -251
- package/node_modules/@noble/hashes/esm/blake3.js.map +0 -1
- package/node_modules/@noble/hashes/esm/crypto.d.ts +0 -2
- package/node_modules/@noble/hashes/esm/crypto.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/crypto.js +0 -2
- package/node_modules/@noble/hashes/esm/crypto.js.map +0 -1
- package/node_modules/@noble/hashes/esm/cryptoNode.d.ts +0 -2
- package/node_modules/@noble/hashes/esm/cryptoNode.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/cryptoNode.js +0 -15
- package/node_modules/@noble/hashes/esm/cryptoNode.js.map +0 -1
- package/node_modules/@noble/hashes/esm/eskdf.d.ts +0 -47
- package/node_modules/@noble/hashes/esm/eskdf.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/eskdf.js +0 -160
- package/node_modules/@noble/hashes/esm/eskdf.js.map +0 -1
- package/node_modules/@noble/hashes/esm/hkdf.d.ts +0 -36
- package/node_modules/@noble/hashes/esm/hkdf.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/hkdf.js +0 -82
- package/node_modules/@noble/hashes/esm/hkdf.js.map +0 -1
- package/node_modules/@noble/hashes/esm/hmac.d.ts +0 -35
- package/node_modules/@noble/hashes/esm/hmac.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/hmac.js +0 -86
- package/node_modules/@noble/hashes/esm/hmac.js.map +0 -1
- package/node_modules/@noble/hashes/esm/index.d.ts +0 -2
- package/node_modules/@noble/hashes/esm/index.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/index.js +0 -33
- package/node_modules/@noble/hashes/esm/index.js.map +0 -1
- package/node_modules/@noble/hashes/esm/legacy.d.ts +0 -71
- package/node_modules/@noble/hashes/esm/legacy.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/legacy.js +0 -281
- package/node_modules/@noble/hashes/esm/legacy.js.map +0 -1
- package/node_modules/@noble/hashes/esm/package.json +0 -10
- package/node_modules/@noble/hashes/esm/pbkdf2.d.ts +0 -23
- package/node_modules/@noble/hashes/esm/pbkdf2.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/pbkdf2.js +0 -97
- package/node_modules/@noble/hashes/esm/pbkdf2.js.map +0 -1
- package/node_modules/@noble/hashes/esm/ripemd160.d.ts +0 -13
- package/node_modules/@noble/hashes/esm/ripemd160.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/ripemd160.js +0 -13
- package/node_modules/@noble/hashes/esm/ripemd160.js.map +0 -1
- package/node_modules/@noble/hashes/esm/scrypt.d.ts +0 -34
- package/node_modules/@noble/hashes/esm/scrypt.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/scrypt.js +0 -228
- package/node_modules/@noble/hashes/esm/scrypt.js.map +0 -1
- package/node_modules/@noble/hashes/esm/sha1.d.ts +0 -11
- package/node_modules/@noble/hashes/esm/sha1.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/sha1.js +0 -11
- package/node_modules/@noble/hashes/esm/sha1.js.map +0 -1
- package/node_modules/@noble/hashes/esm/sha2.d.ts +0 -159
- package/node_modules/@noble/hashes/esm/sha2.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/sha2.js +0 -375
- package/node_modules/@noble/hashes/esm/sha2.js.map +0 -1
- package/node_modules/@noble/hashes/esm/sha256.d.ts +0 -20
- package/node_modules/@noble/hashes/esm/sha256.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/sha256.js +0 -20
- package/node_modules/@noble/hashes/esm/sha256.js.map +0 -1
- package/node_modules/@noble/hashes/esm/sha3-addons.d.ts +0 -142
- package/node_modules/@noble/hashes/esm/sha3-addons.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/sha3-addons.js +0 -393
- package/node_modules/@noble/hashes/esm/sha3-addons.js.map +0 -1
- package/node_modules/@noble/hashes/esm/sha3.d.ts +0 -53
- package/node_modules/@noble/hashes/esm/sha3.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/sha3.js +0 -234
- package/node_modules/@noble/hashes/esm/sha3.js.map +0 -1
- package/node_modules/@noble/hashes/esm/sha512.d.ts +0 -26
- package/node_modules/@noble/hashes/esm/sha512.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/sha512.js +0 -26
- package/node_modules/@noble/hashes/esm/sha512.js.map +0 -1
- package/node_modules/@noble/hashes/esm/utils.d.ts +0 -161
- package/node_modules/@noble/hashes/esm/utils.d.ts.map +0 -1
- package/node_modules/@noble/hashes/esm/utils.js +0 -281
- package/node_modules/@noble/hashes/esm/utils.js.map +0 -1
- package/node_modules/@noble/hashes/hkdf.d.ts +0 -36
- package/node_modules/@noble/hashes/hkdf.d.ts.map +0 -1
- package/node_modules/@noble/hashes/hkdf.js +0 -88
- package/node_modules/@noble/hashes/hkdf.js.map +0 -1
- package/node_modules/@noble/hashes/hmac.d.ts +0 -35
- package/node_modules/@noble/hashes/hmac.d.ts.map +0 -1
- package/node_modules/@noble/hashes/hmac.js +0 -91
- package/node_modules/@noble/hashes/hmac.js.map +0 -1
- package/node_modules/@noble/hashes/index.d.ts +0 -1
- package/node_modules/@noble/hashes/index.d.ts.map +0 -1
- package/node_modules/@noble/hashes/index.js +0 -33
- package/node_modules/@noble/hashes/index.js.map +0 -1
- package/node_modules/@noble/hashes/legacy.d.ts +0 -71
- package/node_modules/@noble/hashes/legacy.d.ts.map +0 -1
- package/node_modules/@noble/hashes/legacy.js +0 -287
- package/node_modules/@noble/hashes/legacy.js.map +0 -1
- package/node_modules/@noble/hashes/package.json +0 -266
- package/node_modules/@noble/hashes/pbkdf2.d.ts +0 -23
- package/node_modules/@noble/hashes/pbkdf2.d.ts.map +0 -1
- package/node_modules/@noble/hashes/pbkdf2.js +0 -101
- package/node_modules/@noble/hashes/pbkdf2.js.map +0 -1
- package/node_modules/@noble/hashes/ripemd160.d.ts +0 -13
- package/node_modules/@noble/hashes/ripemd160.d.ts.map +0 -1
- package/node_modules/@noble/hashes/ripemd160.js +0 -16
- package/node_modules/@noble/hashes/ripemd160.js.map +0 -1
- package/node_modules/@noble/hashes/scrypt.d.ts +0 -34
- package/node_modules/@noble/hashes/scrypt.d.ts.map +0 -1
- package/node_modules/@noble/hashes/scrypt.js +0 -232
- package/node_modules/@noble/hashes/scrypt.js.map +0 -1
- package/node_modules/@noble/hashes/sha1.d.ts +0 -11
- package/node_modules/@noble/hashes/sha1.d.ts.map +0 -1
- package/node_modules/@noble/hashes/sha1.js +0 -14
- package/node_modules/@noble/hashes/sha1.js.map +0 -1
- package/node_modules/@noble/hashes/sha2.d.ts +0 -159
- package/node_modules/@noble/hashes/sha2.d.ts.map +0 -1
- package/node_modules/@noble/hashes/sha2.js +0 -384
- package/node_modules/@noble/hashes/sha2.js.map +0 -1
- package/node_modules/@noble/hashes/sha256.d.ts +0 -20
- package/node_modules/@noble/hashes/sha256.d.ts.map +0 -1
- package/node_modules/@noble/hashes/sha256.js +0 -23
- package/node_modules/@noble/hashes/sha256.js.map +0 -1
- package/node_modules/@noble/hashes/sha3-addons.d.ts +0 -142
- package/node_modules/@noble/hashes/sha3-addons.d.ts.map +0 -1
- package/node_modules/@noble/hashes/sha3-addons.js +0 -402
- package/node_modules/@noble/hashes/sha3-addons.js.map +0 -1
- package/node_modules/@noble/hashes/sha3.d.ts +0 -53
- package/node_modules/@noble/hashes/sha3.d.ts.map +0 -1
- package/node_modules/@noble/hashes/sha3.js +0 -239
- package/node_modules/@noble/hashes/sha3.js.map +0 -1
- package/node_modules/@noble/hashes/sha512.d.ts +0 -26
- package/node_modules/@noble/hashes/sha512.d.ts.map +0 -1
- package/node_modules/@noble/hashes/sha512.js +0 -29
- package/node_modules/@noble/hashes/sha512.js.map +0 -1
- package/node_modules/@noble/hashes/src/_assert.ts +0 -22
- package/node_modules/@noble/hashes/src/_blake.ts +0 -50
- package/node_modules/@noble/hashes/src/_md.ts +0 -176
- package/node_modules/@noble/hashes/src/_u64.ts +0 -91
- package/node_modules/@noble/hashes/src/argon2.ts +0 -497
- package/node_modules/@noble/hashes/src/blake1.ts +0 -534
- package/node_modules/@noble/hashes/src/blake2.ts +0 -486
- package/node_modules/@noble/hashes/src/blake2b.ts +0 -10
- package/node_modules/@noble/hashes/src/blake2s.ts +0 -20
- package/node_modules/@noble/hashes/src/blake3.ts +0 -272
- package/node_modules/@noble/hashes/src/crypto.ts +0 -9
- package/node_modules/@noble/hashes/src/cryptoNode.ts +0 -15
- package/node_modules/@noble/hashes/src/eskdf.ts +0 -187
- package/node_modules/@noble/hashes/src/hkdf.ts +0 -88
- package/node_modules/@noble/hashes/src/hmac.ts +0 -94
- package/node_modules/@noble/hashes/src/index.ts +0 -31
- package/node_modules/@noble/hashes/src/legacy.ts +0 -293
- package/node_modules/@noble/hashes/src/pbkdf2.ts +0 -122
- package/node_modules/@noble/hashes/src/ripemd160.ts +0 -12
- package/node_modules/@noble/hashes/src/scrypt.ts +0 -257
- package/node_modules/@noble/hashes/src/sha1.ts +0 -10
- package/node_modules/@noble/hashes/src/sha2.ts +0 -402
- package/node_modules/@noble/hashes/src/sha256.ts +0 -24
- package/node_modules/@noble/hashes/src/sha3-addons.ts +0 -499
- package/node_modules/@noble/hashes/src/sha3.ts +0 -258
- package/node_modules/@noble/hashes/src/sha512.ts +0 -34
- package/node_modules/@noble/hashes/src/utils.ts +0 -395
- package/node_modules/@noble/hashes/utils.d.ts +0 -161
- package/node_modules/@noble/hashes/utils.d.ts.map +0 -1
- package/node_modules/@noble/hashes/utils.js +0 -313
- package/node_modules/@noble/hashes/utils.js.map +0 -1
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
export type ManifestAuthMode = 'off' | 'shadow' | 'enforce';
|
|
2
|
-
export type MissingManifestPolicy = 'stall' | 'fallback-shadow';
|
|
3
|
-
export type ManifestFailureReason = 'sigInvalid' | 'digestMismatch' | 'manifestLate' | 'manifestAbsent' | 'verifierError';
|
|
4
|
-
export interface ManifestAuthConfig {
|
|
5
|
-
mode: ManifestAuthMode;
|
|
6
|
-
onMissingManifest: MissingManifestPolicy;
|
|
7
|
-
}
|
|
8
|
-
export interface ManifestObjectIdentity {
|
|
9
|
-
trackName: string;
|
|
10
|
-
/** Stable v2 auth binding. Defaults to trackName for legacy single-format callers. */
|
|
11
|
-
bindingId?: string;
|
|
12
|
-
/** MoQ group ids are u62; values above 2^53 must be passed as bigint. */
|
|
13
|
-
groupId: number | bigint;
|
|
14
|
-
objectId: number;
|
|
15
|
-
packetId?: number;
|
|
16
|
-
ssId?: number;
|
|
17
|
-
}
|
|
18
|
-
export interface ManifestFecBlockMapper {
|
|
19
|
-
readonly d: number;
|
|
20
|
-
derive(groupId: number, objectId: number): {
|
|
21
|
-
ssId: number;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export interface ManifestTrackContext {
|
|
25
|
-
broadcastNamespaceId: string;
|
|
26
|
-
trackName: string;
|
|
27
|
-
/** Stable v2 auth binding. Defaults to trackName for legacy single-format callers. */
|
|
28
|
-
bindingId?: string;
|
|
29
|
-
sourceSymbolFormat?: string;
|
|
30
|
-
keyEpoch: number;
|
|
31
|
-
codec: string;
|
|
32
|
-
timing: string;
|
|
33
|
-
fecGeometry: string;
|
|
34
|
-
manifestFormatVersion: number;
|
|
35
|
-
/** Authenticated-catalog binding for the namespace, track, epoch, codec,
|
|
36
|
-
* timing, FEC geometry, and manifest version fields above. */
|
|
37
|
-
authScope: Uint8Array;
|
|
38
|
-
publicKey: Uint8Array;
|
|
39
|
-
/** Current key first, followed by any catalog-advertised overlap keys. */
|
|
40
|
-
acceptedPublicKeys?: readonly Uint8Array[];
|
|
41
|
-
bitrate: number;
|
|
42
|
-
groupDurationMs: number;
|
|
43
|
-
mapper: ManifestFecBlockMapper;
|
|
44
|
-
manifestChannelAuthenticated: boolean;
|
|
45
|
-
}
|
|
46
|
-
export interface ManifestVerificationStats {
|
|
47
|
-
verified: number;
|
|
48
|
-
/** Terminal outcomes only: an object counted here will never be verified. */
|
|
49
|
-
failures: Record<ManifestFailureReason, number>;
|
|
50
|
-
/**
|
|
51
|
-
* Objects currently held in quarantine awaiting a manifest — pending, NOT
|
|
52
|
-
* failed, and deliberately disjoint from `failures`. An enforce-mode stall is
|
|
53
|
-
* accounted here first and moves into `failures` only once the verifier gives
|
|
54
|
-
* up on it, so a reason breakdown that ignores this gauge under-reports live
|
|
55
|
-
* stalls by whatever is still in flight (BLO-30007).
|
|
56
|
-
*/
|
|
57
|
-
quarantined: number;
|
|
58
|
-
quarantinedBytes: number;
|
|
59
|
-
}
|
|
60
|
-
export interface ManifestFailure {
|
|
61
|
-
trackName: string;
|
|
62
|
-
bindingId?: string;
|
|
63
|
-
groupId: number | bigint;
|
|
64
|
-
objectId: number;
|
|
65
|
-
reason: ManifestFailureReason;
|
|
66
|
-
}
|
|
67
|
-
export interface ManifestAdmission {
|
|
68
|
-
action: 'play' | 'stall' | 'drop';
|
|
69
|
-
verified: boolean;
|
|
70
|
-
reason?: ManifestFailureReason;
|
|
71
|
-
}
|
|
72
|
-
export type SignatureVerifier = (publicKey: Uint8Array, message: Uint8Array, signature: Uint8Array) => boolean | Promise<boolean>;
|
|
73
|
-
export declare function manifestBindingId(trackName: string, sourceSymbolFormat: string): string;
|
|
74
|
-
export declare function createWebCryptoEd25519Verifier(subtle?: SubtleCrypto): SignatureVerifier;
|
|
75
|
-
export declare class ManifestVerifier {
|
|
76
|
-
#private;
|
|
77
|
-
constructor(options: {
|
|
78
|
-
manifestAuth: ManifestAuthConfig;
|
|
79
|
-
verifySignature: SignatureVerifier;
|
|
80
|
-
onFailure?: (failure: ManifestFailure) => void;
|
|
81
|
-
});
|
|
82
|
-
get config(): Readonly<ManifestAuthConfig>;
|
|
83
|
-
get stats(): ManifestVerificationStats;
|
|
84
|
-
setMode(mode: ManifestAuthMode): void;
|
|
85
|
-
registerTrack(context: ManifestTrackContext): void;
|
|
86
|
-
ingestManifestFrame(bindingId: string, frameBytes: Uint8Array): void;
|
|
87
|
-
admitObject(identity: ManifestObjectIdentity, data: Uint8Array, release: () => void,
|
|
88
|
-
/**
|
|
89
|
-
* Called instead of `release` when a stalled object is terminally rejected
|
|
90
|
-
* rather than played. A caller that drives a sequence off `release` (the FEC
|
|
91
|
-
* symbol loop in `mmtp-router` does) must pass this, or an enforce-mode
|
|
92
|
-
* discard leaves the sequence waiting on a callback that will never fire.
|
|
93
|
-
* A `drop` returned from this call is the synchronous form of the same
|
|
94
|
-
* outcome and does NOT also invoke `discard`.
|
|
95
|
-
*/
|
|
96
|
-
discard?: () => void): ManifestAdmission;
|
|
97
|
-
dispose(): void;
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=verifier.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"verifier.d.ts","sourceRoot":"","sources":["../src/verifier.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAA;AAC3D,MAAM,MAAM,qBAAqB,GAAG,OAAO,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ED,OAAO,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI;IAKrC,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,IAAI;IAqClD,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,IAAI;IAuCpE,WAAW,CACT,QAAQ,EAAE,sBAAsB,EAChC,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,MAAM,IAAI;IACnB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,GACnB,iBAAiB;IAqCpB,OAAO,IAAI,IAAI;CAkVhB"}
|
|
@@ -1,492 +0,0 @@
|
|
|
1
|
-
import { decodeSourceAuthManifestFrame, sourceAuthMerkleRoot, sourceAuthObjectDigest, sourceAuthSignaturePreimage, } from './source-auth.js';
|
|
2
|
-
export function manifestBindingId(trackName, sourceSymbolFormat) {
|
|
3
|
-
return JSON.stringify([trackName, sourceSymbolFormat]);
|
|
4
|
-
}
|
|
5
|
-
export function createWebCryptoEd25519Verifier(subtle = globalThis.crypto.subtle) {
|
|
6
|
-
return async (publicKey, message, signature) => {
|
|
7
|
-
const keyBytes = Uint8Array.from(publicKey);
|
|
8
|
-
const messageBytes = Uint8Array.from(message);
|
|
9
|
-
const signatureBytes = Uint8Array.from(signature);
|
|
10
|
-
const key = await subtle.importKey('raw', keyBytes.buffer, 'Ed25519', false, ['verify']);
|
|
11
|
-
return subtle.verify('Ed25519', key, signatureBytes.buffer, messageBytes.buffer);
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
const FAILURE_REASONS = [
|
|
15
|
-
'sigInvalid',
|
|
16
|
-
'digestMismatch',
|
|
17
|
-
'manifestLate',
|
|
18
|
-
'manifestAbsent',
|
|
19
|
-
'verifierError',
|
|
20
|
-
];
|
|
21
|
-
const equalBytes = (left, right) => {
|
|
22
|
-
if (left.byteLength !== right.byteLength)
|
|
23
|
-
return false;
|
|
24
|
-
let diff = 0;
|
|
25
|
-
for (let index = 0; index < left.byteLength; index++)
|
|
26
|
-
diff |= left[index] ^ right[index];
|
|
27
|
-
return diff === 0;
|
|
28
|
-
};
|
|
29
|
-
const isPromiseLike = (value) => typeof value === 'object' && value !== null && typeof value.then === 'function';
|
|
30
|
-
export class ManifestVerifier {
|
|
31
|
-
#config;
|
|
32
|
-
#verifySignature;
|
|
33
|
-
#onFailure;
|
|
34
|
-
#tracks = new Map();
|
|
35
|
-
#stats = {
|
|
36
|
-
verified: 0,
|
|
37
|
-
failures: Object.fromEntries(FAILURE_REASONS.map((reason) => [reason, 0])),
|
|
38
|
-
quarantinedBytes: 0,
|
|
39
|
-
};
|
|
40
|
-
#disposed = false;
|
|
41
|
-
constructor(options) {
|
|
42
|
-
this.#config = { ...options.manifestAuth };
|
|
43
|
-
this.#verifySignature = options.verifySignature;
|
|
44
|
-
this.#onFailure = options.onFailure;
|
|
45
|
-
}
|
|
46
|
-
get config() {
|
|
47
|
-
return this.#config;
|
|
48
|
-
}
|
|
49
|
-
get stats() {
|
|
50
|
-
let quarantined = 0;
|
|
51
|
-
for (const track of this.#tracks.values())
|
|
52
|
-
quarantined += track.quarantine.length;
|
|
53
|
-
return {
|
|
54
|
-
verified: this.#stats.verified,
|
|
55
|
-
failures: { ...this.#stats.failures },
|
|
56
|
-
quarantined,
|
|
57
|
-
quarantinedBytes: this.#stats.quarantinedBytes,
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
setMode(mode) {
|
|
61
|
-
this.#config = { ...this.#config, mode };
|
|
62
|
-
if (mode !== 'enforce')
|
|
63
|
-
this.#releaseAllQuarantine(false);
|
|
64
|
-
}
|
|
65
|
-
registerTrack(context) {
|
|
66
|
-
const bindingId = context.bindingId ?? context.trackName;
|
|
67
|
-
if (this.#tracks.has(bindingId)) {
|
|
68
|
-
throw new Error(`manifest binding ${bindingId} is already registered`);
|
|
69
|
-
}
|
|
70
|
-
if (!Number.isFinite(context.bitrate) || context.bitrate <= 0) {
|
|
71
|
-
throw new Error('manifest track bitrate must be > 0');
|
|
72
|
-
}
|
|
73
|
-
if (!Number.isFinite(context.groupDurationMs) || context.groupDurationMs <= 0) {
|
|
74
|
-
throw new Error('manifest track groupDurationMs must be > 0');
|
|
75
|
-
}
|
|
76
|
-
if (context.authScope.byteLength !== 32)
|
|
77
|
-
throw new Error('manifest authScope must be 32 bytes');
|
|
78
|
-
if (context.publicKey.byteLength !== 32)
|
|
79
|
-
throw new Error('manifest publicKey must be 32 bytes');
|
|
80
|
-
for (const key of context.acceptedPublicKeys ?? []) {
|
|
81
|
-
if (key.byteLength !== 32)
|
|
82
|
-
throw new Error('manifest acceptedPublicKeys must contain 32-byte keys');
|
|
83
|
-
}
|
|
84
|
-
for (const [name, value] of Object.entries({
|
|
85
|
-
broadcastNamespaceId: context.broadcastNamespaceId,
|
|
86
|
-
trackName: context.trackName,
|
|
87
|
-
codec: context.codec,
|
|
88
|
-
timing: context.timing,
|
|
89
|
-
fecGeometry: context.fecGeometry,
|
|
90
|
-
})) {
|
|
91
|
-
if (value.length === 0)
|
|
92
|
-
throw new Error(`manifest ${name} must not be empty`);
|
|
93
|
-
}
|
|
94
|
-
this.#tracks.set(bindingId, {
|
|
95
|
-
context: { ...context, bindingId },
|
|
96
|
-
groups: new Map(),
|
|
97
|
-
quarantine: [],
|
|
98
|
-
quarantinedBytes: 0,
|
|
99
|
-
capBytes: Math.ceil((context.bitrate * context.groupDurationMs) / 8000),
|
|
100
|
-
manifestEntries: 0,
|
|
101
|
-
maxManifestEntries: Math.ceil((context.bitrate * context.groupDurationMs) / (8000 * 52)),
|
|
102
|
-
maxGroups: context.mapper.d + 1,
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
ingestManifestFrame(bindingId, frameBytes) {
|
|
106
|
-
const track = this.#requireTrack(bindingId);
|
|
107
|
-
try {
|
|
108
|
-
const frame = decodeSourceAuthManifestFrame(frameBytes);
|
|
109
|
-
const groupId = frame.groupId;
|
|
110
|
-
const group = this.#group(track, groupId);
|
|
111
|
-
if (frame.kind === 'object') {
|
|
112
|
-
if (group.close || group.signaturePending || group.failed) {
|
|
113
|
-
this.#failure({ trackName: track.context.trackName, bindingId, groupId, objectId: frame.objectId }, 'verifierError');
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
if (group.entries.has(frame.objectId)) {
|
|
117
|
-
this.#failure({ trackName: track.context.trackName, bindingId, groupId, objectId: frame.objectId }, 'verifierError');
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
if (group.entries.size >= 4096 || track.manifestEntries >= track.maxManifestEntries) {
|
|
121
|
-
this.#failure({ trackName: track.context.trackName, bindingId, groupId, objectId: frame.objectId }, 'verifierError');
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
124
|
-
group.entries.set(frame.objectId, frame);
|
|
125
|
-
track.manifestEntries++;
|
|
126
|
-
const pending = group.pending.get(frame.objectId);
|
|
127
|
-
if (pending) {
|
|
128
|
-
this.#failure(pending.identity, 'manifestLate');
|
|
129
|
-
this.#resolvePending(track, group, pending, frame);
|
|
130
|
-
}
|
|
131
|
-
if (group.pendingClose && group.entries.size === group.pendingClose.objectCount) {
|
|
132
|
-
const close = group.pendingClose;
|
|
133
|
-
group.pendingClose = undefined;
|
|
134
|
-
this.#closeGroup(track, groupId, group, close);
|
|
135
|
-
}
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
this.#closeGroup(track, groupId, group, frame);
|
|
139
|
-
}
|
|
140
|
-
catch {
|
|
141
|
-
this.#failure({ trackName: track.context.trackName, bindingId, groupId: 0, objectId: 0 }, 'verifierError');
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
admitObject(identity, data, release,
|
|
145
|
-
/**
|
|
146
|
-
* Called instead of `release` when a stalled object is terminally rejected
|
|
147
|
-
* rather than played. A caller that drives a sequence off `release` (the FEC
|
|
148
|
-
* symbol loop in `mmtp-router` does) must pass this, or an enforce-mode
|
|
149
|
-
* discard leaves the sequence waiting on a callback that will never fire.
|
|
150
|
-
* A `drop` returned from this call is the synchronous form of the same
|
|
151
|
-
* outcome and does NOT also invoke `discard`.
|
|
152
|
-
*/
|
|
153
|
-
discard) {
|
|
154
|
-
if (this.#config.mode === 'off') {
|
|
155
|
-
release();
|
|
156
|
-
return { action: 'play', verified: false };
|
|
157
|
-
}
|
|
158
|
-
const track = this.#tracks.get(identity.bindingId ?? identity.trackName);
|
|
159
|
-
if (!track) {
|
|
160
|
-
release();
|
|
161
|
-
this.#failure(identity, 'verifierError');
|
|
162
|
-
return { action: 'play', verified: false, reason: 'verifierError' };
|
|
163
|
-
}
|
|
164
|
-
try {
|
|
165
|
-
if (!this.#validateIdentity(track, identity)) {
|
|
166
|
-
return this.#rejectOrShadow(identity, release, 'digestMismatch');
|
|
167
|
-
}
|
|
168
|
-
const group = this.#group(track, BigInt(identity.groupId));
|
|
169
|
-
if (group.failed === 'sigInvalid' || group.failed === 'digestMismatch') {
|
|
170
|
-
return this.#rejectOrShadow(identity, release, group.failed);
|
|
171
|
-
}
|
|
172
|
-
const entry = group.entries.get(identity.objectId);
|
|
173
|
-
if (entry)
|
|
174
|
-
return this.#admitAgainstEntry(track, group, identity, data, release, entry, discard);
|
|
175
|
-
if (this.#config.mode === 'shadow' || this.#config.onMissingManifest === 'fallback-shadow') {
|
|
176
|
-
release();
|
|
177
|
-
this.#failure(identity, 'manifestAbsent');
|
|
178
|
-
return { action: 'play', verified: false, reason: 'manifestAbsent' };
|
|
179
|
-
}
|
|
180
|
-
if (!this.#quarantine(track, group, { identity, data, release, discard, bytes: data.byteLength })) {
|
|
181
|
-
return { action: 'drop', verified: false };
|
|
182
|
-
}
|
|
183
|
-
return { action: 'stall', verified: false };
|
|
184
|
-
}
|
|
185
|
-
catch {
|
|
186
|
-
release();
|
|
187
|
-
this.#failure(identity, 'verifierError');
|
|
188
|
-
return { action: 'play', verified: false, reason: 'verifierError' };
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
dispose() {
|
|
192
|
-
if (this.#disposed)
|
|
193
|
-
return;
|
|
194
|
-
this.#disposed = true;
|
|
195
|
-
this.#releaseAllQuarantine(false);
|
|
196
|
-
this.#tracks.clear();
|
|
197
|
-
}
|
|
198
|
-
#requireTrack(bindingId) {
|
|
199
|
-
const track = this.#tracks.get(bindingId);
|
|
200
|
-
if (!track)
|
|
201
|
-
throw new Error(`unknown manifest binding ${bindingId}`);
|
|
202
|
-
return track;
|
|
203
|
-
}
|
|
204
|
-
#group(track, groupId) {
|
|
205
|
-
let group = track.groups.get(groupId);
|
|
206
|
-
if (!group) {
|
|
207
|
-
group = { entries: new Map(), pending: new Map(), rootVerified: false };
|
|
208
|
-
track.groups.set(groupId, group);
|
|
209
|
-
while (track.groups.size > track.maxGroups) {
|
|
210
|
-
const oldest = track.groups.entries().next().value;
|
|
211
|
-
if (!oldest)
|
|
212
|
-
break;
|
|
213
|
-
const [oldestId, oldestGroup] = oldest;
|
|
214
|
-
for (const pending of [...oldestGroup.pending.values()]) {
|
|
215
|
-
this.#removePending(track, oldestGroup, pending);
|
|
216
|
-
this.#giveUpOnPending(pending);
|
|
217
|
-
// The group aged out with objects still waiting on a manifest that
|
|
218
|
-
// never arrived. That is an absent manifest, not a verifier fault:
|
|
219
|
-
// `verifierError` is reserved for an exception/crash in the verifier
|
|
220
|
-
// itself, so mislabelling here reads on the graduation dashboard as a
|
|
221
|
-
// software bug and hides a benign absent-manifest stall (BLO-30007).
|
|
222
|
-
this.#failure(pending.identity, 'manifestAbsent');
|
|
223
|
-
}
|
|
224
|
-
track.manifestEntries -= oldestGroup.entries.size;
|
|
225
|
-
track.groups.delete(oldestId);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
return group;
|
|
229
|
-
}
|
|
230
|
-
#validateIdentity(track, identity) {
|
|
231
|
-
const coordinates = track.context.mapper.derive(Number(identity.groupId), identity.objectId);
|
|
232
|
-
return identity.ssId === undefined || coordinates.ssId === identity.ssId;
|
|
233
|
-
}
|
|
234
|
-
#admitAgainstEntry(track, group, identity, data, release, entry, discard) {
|
|
235
|
-
if (entry.trueLength !== data.byteLength) {
|
|
236
|
-
return this.#rejectOrShadow(identity, release, 'digestMismatch');
|
|
237
|
-
}
|
|
238
|
-
const digestMatches = equalBytes(sourceAuthObjectDigest(data.subarray(0, entry.trueLength)), entry.digest);
|
|
239
|
-
if (!digestMatches)
|
|
240
|
-
return this.#rejectOrShadow(identity, release, 'digestMismatch');
|
|
241
|
-
if (!track.context.manifestChannelAuthenticated && !group.rootVerified) {
|
|
242
|
-
if (this.#config.mode === 'shadow') {
|
|
243
|
-
release();
|
|
244
|
-
return { action: 'play', verified: false };
|
|
245
|
-
}
|
|
246
|
-
if (!this.#quarantine(track, group, { identity, data, release, discard, bytes: data.byteLength })) {
|
|
247
|
-
return { action: 'drop', verified: false };
|
|
248
|
-
}
|
|
249
|
-
return { action: 'stall', verified: false };
|
|
250
|
-
}
|
|
251
|
-
release();
|
|
252
|
-
this.#stats.verified++;
|
|
253
|
-
return { action: 'play', verified: true };
|
|
254
|
-
}
|
|
255
|
-
#rejectOrShadow(identity, release, reason) {
|
|
256
|
-
this.#failure(identity, reason);
|
|
257
|
-
if (this.#config.mode === 'enforce') {
|
|
258
|
-
console.warn(JSON.stringify({ event: 'manifest-enforce-drop', track: identity.trackName, group: String(identity.groupId), object: identity.objectId, reason }));
|
|
259
|
-
return { action: 'drop', verified: false, reason };
|
|
260
|
-
}
|
|
261
|
-
release();
|
|
262
|
-
return { action: 'play', verified: false, reason };
|
|
263
|
-
}
|
|
264
|
-
#resolvePending(track, group, pending, entry) {
|
|
265
|
-
this.#removePending(track, group, pending);
|
|
266
|
-
this.#admitAgainstEntry(track, group, pending.identity, pending.data, pending.release, entry, pending.discard);
|
|
267
|
-
}
|
|
268
|
-
#closeGroup(track, groupId, group, close) {
|
|
269
|
-
if (group.close || group.signaturePending)
|
|
270
|
-
return;
|
|
271
|
-
const entries = [...group.entries.values()];
|
|
272
|
-
if (entries.length !== close.objectCount) {
|
|
273
|
-
// Manifest-channel reordering: the close frame beat some object entries.
|
|
274
|
-
// Stash it (latest-wins on duplicates) so the object-entry path can
|
|
275
|
-
// re-attempt the close once the count matches; quarantined objects stay
|
|
276
|
-
// quarantined, and manifestAbsent below is a signal, not an eviction.
|
|
277
|
-
group.pendingClose = close;
|
|
278
|
-
const hadPending = group.pending.size > 0;
|
|
279
|
-
if (this.#config.onMissingManifest === 'fallback-shadow' || this.#config.mode === 'shadow') {
|
|
280
|
-
for (const pending of [...group.pending.values()]) {
|
|
281
|
-
this.#removePending(track, group, pending);
|
|
282
|
-
pending.release();
|
|
283
|
-
this.#failure(pending.identity, 'manifestAbsent');
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
else {
|
|
287
|
-
for (const pending of group.pending.values()) {
|
|
288
|
-
this.#failure(pending.identity, 'manifestAbsent');
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
if (!hadPending) {
|
|
292
|
-
this.#failure({ trackName: track.context.trackName, groupId, objectId: 0 }, 'manifestAbsent');
|
|
293
|
-
}
|
|
294
|
-
return;
|
|
295
|
-
}
|
|
296
|
-
if (!equalBytes(sourceAuthMerkleRoot(entries), close.root)) {
|
|
297
|
-
group.failed = 'digestMismatch';
|
|
298
|
-
this.#failGroup(track, groupId, group, 'digestMismatch');
|
|
299
|
-
return;
|
|
300
|
-
}
|
|
301
|
-
const preimage = sourceAuthSignaturePreimage(track.context.authScope, close.groupId, close.objectCount, close.root);
|
|
302
|
-
let signatureValid;
|
|
303
|
-
try {
|
|
304
|
-
signatureValid = this.#verifyAcceptedSignature(track, preimage, close.signature);
|
|
305
|
-
}
|
|
306
|
-
catch {
|
|
307
|
-
this.#failOpenGroup(track, groupId, group);
|
|
308
|
-
return;
|
|
309
|
-
}
|
|
310
|
-
if (isPromiseLike(signatureValid)) {
|
|
311
|
-
group.signaturePending = true;
|
|
312
|
-
void signatureValid.then((valid) => {
|
|
313
|
-
if (this.#disposed)
|
|
314
|
-
return;
|
|
315
|
-
group.signaturePending = false;
|
|
316
|
-
this.#finishGroupSignature(track, groupId, group, close, valid);
|
|
317
|
-
}, () => {
|
|
318
|
-
if (this.#disposed)
|
|
319
|
-
return;
|
|
320
|
-
group.signaturePending = false;
|
|
321
|
-
this.#failOpenGroup(track, groupId, group);
|
|
322
|
-
});
|
|
323
|
-
return;
|
|
324
|
-
}
|
|
325
|
-
this.#finishGroupSignature(track, groupId, group, close, signatureValid);
|
|
326
|
-
}
|
|
327
|
-
#finishGroupSignature(track, groupId, group, close, signatureValid) {
|
|
328
|
-
if (!signatureValid) {
|
|
329
|
-
group.failed = 'sigInvalid';
|
|
330
|
-
this.#failGroup(track, groupId, group, 'sigInvalid');
|
|
331
|
-
return;
|
|
332
|
-
}
|
|
333
|
-
group.failed = undefined;
|
|
334
|
-
group.close = close;
|
|
335
|
-
group.pendingClose = undefined;
|
|
336
|
-
group.rootVerified = true;
|
|
337
|
-
for (const pending of [...group.pending.values()]) {
|
|
338
|
-
const entry = group.entries.get(pending.identity.objectId);
|
|
339
|
-
if (entry)
|
|
340
|
-
this.#resolvePending(track, group, pending, entry);
|
|
341
|
-
else if (this.#config.onMissingManifest === 'fallback-shadow') {
|
|
342
|
-
this.#removePending(track, group, pending);
|
|
343
|
-
pending.release();
|
|
344
|
-
this.#failure(pending.identity, 'manifestAbsent');
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
#verifyAcceptedSignature(track, message, signature) {
|
|
349
|
-
const keys = track.context.acceptedPublicKeys ?? [track.context.publicKey];
|
|
350
|
-
const pending = [];
|
|
351
|
-
let hadSynchronousError = false;
|
|
352
|
-
for (const key of keys) {
|
|
353
|
-
try {
|
|
354
|
-
const result = this.#verifySignature(key, message, signature);
|
|
355
|
-
if (isPromiseLike(result)) {
|
|
356
|
-
pending.push(Promise.resolve(result).then((valid) => valid, () => 'error'));
|
|
357
|
-
}
|
|
358
|
-
else if (result) {
|
|
359
|
-
return true;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
catch {
|
|
363
|
-
hadSynchronousError = true;
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
if (pending.length === 0) {
|
|
367
|
-
if (hadSynchronousError)
|
|
368
|
-
throw new Error('manifest signature verifier unavailable');
|
|
369
|
-
return false;
|
|
370
|
-
}
|
|
371
|
-
return Promise.all(pending).then((results) => {
|
|
372
|
-
if (results.some((valid) => valid === true))
|
|
373
|
-
return true;
|
|
374
|
-
if (hadSynchronousError || results.some((valid) => valid === 'error')) {
|
|
375
|
-
throw new Error('manifest signature verifier unavailable');
|
|
376
|
-
}
|
|
377
|
-
return false;
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
#failGroup(track, groupId, group, reason) {
|
|
381
|
-
if (group.pending.size === 0) {
|
|
382
|
-
this.#failure({ trackName: track.context.trackName, groupId, objectId: 0 }, reason);
|
|
383
|
-
return;
|
|
384
|
-
}
|
|
385
|
-
for (const pending of [...group.pending.values()]) {
|
|
386
|
-
this.#removePending(track, group, pending);
|
|
387
|
-
// Same contract as an eviction: a quarantined object that is rejected
|
|
388
|
-
// rather than played must still tell the caller it is finished, or a
|
|
389
|
-
// caller sequencing off `release` waits forever (BLO-30095).
|
|
390
|
-
if (this.#rejectOrShadow(pending.identity, pending.release, reason).action === 'drop') {
|
|
391
|
-
pending.discard?.();
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
#removePending(track, group, pending) {
|
|
396
|
-
if (group.pending.get(pending.identity.objectId) === pending) {
|
|
397
|
-
group.pending.delete(pending.identity.objectId);
|
|
398
|
-
}
|
|
399
|
-
const index = track.quarantine.indexOf(pending);
|
|
400
|
-
if (index >= 0)
|
|
401
|
-
track.quarantine.splice(index, 1);
|
|
402
|
-
track.quarantinedBytes -= pending.bytes;
|
|
403
|
-
this.#stats.quarantinedBytes -= pending.bytes;
|
|
404
|
-
}
|
|
405
|
-
#quarantine(track, group, pending) {
|
|
406
|
-
if (group.pending.has(pending.identity.objectId))
|
|
407
|
-
return false;
|
|
408
|
-
group.pending.set(pending.identity.objectId, pending);
|
|
409
|
-
track.quarantine.push(pending);
|
|
410
|
-
track.quarantinedBytes += pending.bytes;
|
|
411
|
-
this.#stats.quarantinedBytes += pending.bytes;
|
|
412
|
-
this.#enforceCap(track);
|
|
413
|
-
return true;
|
|
414
|
-
}
|
|
415
|
-
#enforceCap(track) {
|
|
416
|
-
while (track.quarantinedBytes > track.capBytes && track.quarantine.length > 0) {
|
|
417
|
-
const pending = track.quarantine.shift();
|
|
418
|
-
const group = track.groups.get(BigInt(pending.identity.groupId));
|
|
419
|
-
if (group)
|
|
420
|
-
group.pending.delete(pending.identity.objectId);
|
|
421
|
-
track.quarantinedBytes -= pending.bytes;
|
|
422
|
-
this.#stats.quarantinedBytes -= pending.bytes;
|
|
423
|
-
this.#giveUpOnPending(pending);
|
|
424
|
-
// Quarantine budget ran out while the object was still waiting on a
|
|
425
|
-
// manifest. The manifest was absent when we gave up; the verifier did not
|
|
426
|
-
// fault. Same reason in shadow and enforce so the dashboard reads one
|
|
427
|
-
// taxonomy across modes (BLO-30007).
|
|
428
|
-
this.#failure(pending.identity, 'manifestAbsent');
|
|
429
|
-
console.warn(`[ManifestVerifier] quarantine cap eviction track=${pending.identity.trackName} group=${pending.identity.groupId} object=${pending.identity.objectId} disposition=${this.#config.mode === 'enforce' ? 'drop' : 'fail-open'}`);
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
/**
|
|
433
|
-
* Stop waiting for a manifest that never arrived. In `enforce` the object is
|
|
434
|
-
* discarded: an eviction is a rejection, not a deferred play, so unverified
|
|
435
|
-
* media never reaches the player two groups after the stall was recorded
|
|
436
|
-
* (BLO-30095, CTO disposition on the issue thread).
|
|
437
|
-
*
|
|
438
|
-
* Deliberately NOT used by `#failOpenGroup`/`#failOpenTrack` — failing open on
|
|
439
|
-
* a genuine verifier fault is correct and stays untouched.
|
|
440
|
-
*/
|
|
441
|
-
#giveUpOnPending(pending) {
|
|
442
|
-
if (this.#config.mode !== 'enforce') {
|
|
443
|
-
pending.release();
|
|
444
|
-
return;
|
|
445
|
-
}
|
|
446
|
-
pending.discard?.();
|
|
447
|
-
}
|
|
448
|
-
#failOpenTrack(track, reason) {
|
|
449
|
-
for (const pending of [...track.quarantine]) {
|
|
450
|
-
const group = track.groups.get(BigInt(pending.identity.groupId));
|
|
451
|
-
if (group)
|
|
452
|
-
this.#removePending(track, group, pending);
|
|
453
|
-
pending.release();
|
|
454
|
-
this.#failure(pending.identity, reason);
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
#failOpenGroup(track, groupId, group) {
|
|
458
|
-
const pending = [...group.pending.values()];
|
|
459
|
-
if (pending.length === 0) {
|
|
460
|
-
this.#failure({ trackName: track.context.trackName, groupId, objectId: 0 }, 'verifierError');
|
|
461
|
-
return;
|
|
462
|
-
}
|
|
463
|
-
for (const object of pending) {
|
|
464
|
-
this.#removePending(track, group, object);
|
|
465
|
-
object.release();
|
|
466
|
-
this.#failure(object.identity, 'verifierError');
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
#releaseAllQuarantine(countFailure) {
|
|
470
|
-
for (const track of this.#tracks.values()) {
|
|
471
|
-
for (const pending of [...track.quarantine]) {
|
|
472
|
-
const group = track.groups.get(BigInt(pending.identity.groupId));
|
|
473
|
-
if (group)
|
|
474
|
-
this.#removePending(track, group, pending);
|
|
475
|
-
pending.release();
|
|
476
|
-
if (countFailure)
|
|
477
|
-
this.#failure(pending.identity, 'verifierError');
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
#failure(identity, reason) {
|
|
482
|
-
this.#stats.failures[reason]++;
|
|
483
|
-
this.#onFailure?.({
|
|
484
|
-
trackName: identity.trackName,
|
|
485
|
-
...(identity.bindingId === undefined ? {} : { bindingId: identity.bindingId }),
|
|
486
|
-
groupId: identity.groupId,
|
|
487
|
-
objectId: identity.objectId,
|
|
488
|
-
reason,
|
|
489
|
-
});
|
|
490
|
-
}
|
|
491
|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