@blockcast/mmt-container 1.0.1-main.9b9e6c5b9a9d → 1.0.1
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/dist/browser-runtime.js +3 -2
- package/dist/browser-runtime.js.map +2 -2
- package/dist/mmtp-container-parser.no-modules.js +2 -2
- package/dist/mmtp-container-parser.no-modules.js.map +2 -2
- package/dist/multicast-auth-catalog.d.ts.map +1 -1
- package/dist/multicast-auth-catalog.js +18 -24
- package/dist/multicast-auth-catalog.js.map +2 -2
- package/dist/multicast-manager.d.ts.map +1 -1
- package/dist/multicast-manager.js +3 -2
- package/dist/multicast-manager.js.map +2 -2
- package/dist/no-modules.js +2 -2
- package/dist/no-modules.js.map +2 -2
- package/package.json +5 -5
- package/src/multicast-auth-catalog.ts +19 -22
- package/src/multicast-manager.ts +1 -0
- package/test-vectors/bc-provenance-v2.json +175 -614
- package/test-vectors/generate-bc-provenance-v2.mjs +14 -94
package/dist/browser-runtime.js
CHANGED
|
@@ -24512,7 +24512,7 @@ function parseBcProvenanceV2Address(address) {
|
|
|
24512
24512
|
return parseIpv4(address);
|
|
24513
24513
|
}
|
|
24514
24514
|
function endpointBytes(endpoint) {
|
|
24515
|
-
if (!validPort(endpoint.port) || !validU32(endpoint.streamId)) {
|
|
24515
|
+
if (!validPort(endpoint.port) || !validPort(endpoint.manifestPort) || !validU32(endpoint.streamId)) {
|
|
24516
24516
|
throw new Error("invalid BCPV2 endpoint");
|
|
24517
24517
|
}
|
|
24518
24518
|
const source = parseBcProvenanceV2Address(endpoint.sourceAddress);
|
|
@@ -24572,7 +24572,7 @@ function bcProvenanceV2SignedMessage(record, endpoint) {
|
|
|
24572
24572
|
offset += source.byteLength;
|
|
24573
24573
|
prefix.set(group, offset);
|
|
24574
24574
|
offset += group.byteLength;
|
|
24575
|
-
prefix.set(u16(endpoint.
|
|
24575
|
+
prefix.set(u16(endpoint.manifestPort), offset);
|
|
24576
24576
|
const message = new Uint8Array(prefix.byteLength + record.body.byteLength);
|
|
24577
24577
|
message.set(prefix);
|
|
24578
24578
|
message.set(record.body, prefix.byteLength);
|
|
@@ -27646,6 +27646,7 @@ var MulticastManager = class {
|
|
|
27646
27646
|
sourceAddress: flow.source,
|
|
27647
27647
|
groupAddress: flow.groupAddress,
|
|
27648
27648
|
port: flow.port,
|
|
27649
|
+
manifestPort: flow.manifestPort,
|
|
27649
27650
|
streamId: flow.streamId
|
|
27650
27651
|
},
|
|
27651
27652
|
keys: auth.keys,
|