Skip to content

Commit

Permalink
Revert diffing c test
Browse files Browse the repository at this point in the history
  • Loading branch information
ok-nick committed Aug 5, 2024
1 parent 881967f commit 7eb392c
Show file tree
Hide file tree
Showing 65 changed files with 55 additions and 65 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
- name: Create compat snapshot
run: cargo run -p c2pa-compat

- name: Get the latest tag
run: |
git fetch --tags origin
LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
echo "LATEST_TAG=${LATEST_TAG}" >> $GITHUB_ENV
# - name: Get the latest tag
# run: |
# git fetch --tags origin
# LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
# echo "LATEST_TAG=${LATEST_TAG}" >> $GITHUB_ENV

# - name: Send compat PR
# uses: peter-evans/create-pull-request@v6
Expand Down
1 change: 0 additions & 1 deletion c2pa-compat/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ serde_json = "1.0.117"
ed25519-dalek = "2.1.1"
pem = "3.0.2"
bsdiff = "0.2.0"
qbsdiff = "1.4"
lz4_flex = "0.11.3"
38 changes: 26 additions & 12 deletions c2pa-compat/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ use std::{
};

use c2pa::{Builder, CallbackSigner, Error, Reader, Result, SigningAlg};
use qbsdiff::{Bsdiff, Bspatch};
use serde::Serialize;

// const FULL_MANIFEST: &str = include_str!("./full-manifest.json");
Expand Down Expand Up @@ -76,7 +75,7 @@ fn main() -> Result<()> {
let mut details = CompatDetails::new(vec![
CompatAssetDetails::new("C.jpg", "jpeg"),
CompatAssetDetails::new("sample1.gif", "gif"),
CompatAssetDetails::new("sample1.svg", "svg"),
// CompatAssetDetails::new("sample1.svg", "svg"),
CompatAssetDetails::new("video1.mp4", "bmff"),
// CompatAssetDetails::new("sample1.wav", "riff"), // TODO: https://github.com/contentauth/c2pa-rs/issues/530
CompatAssetDetails::new("sample1.mp3", "mp3"),
Expand Down Expand Up @@ -150,11 +149,14 @@ fn main() -> Result<()> {
)?;

let mut signed_remote_asset_patch = Vec::new();
Bsdiff::new(&original_asset, &signed_remote_asset.into_inner())
.compare(&mut signed_remote_asset_patch)
.expect("TODO");
bsdiff::diff(
&original_asset,
&signed_remote_asset.into_inner(),
&mut signed_remote_asset_patch,
)
.expect("TODO");
asset_details.uncompressed_remote_size = Some(signed_remote_asset_patch.len());
// let signed_remote_asset_patch = lz4_flex::compress(&signed_remote_asset_patch);
let signed_remote_asset_patch = lz4_flex::compress(&signed_remote_asset_patch);

fs::write(dir_path.join("remote.patch"), signed_remote_asset_patch)?;
fs::write(dir_path.join("remote.c2pa"), remote_c2pa_manifest)?;
Expand All @@ -165,14 +167,26 @@ fn main() -> Result<()> {
Err(err) => return Err(err),
}

let t = signed_embedded_asset.into_inner();

let mut signed_embedded_asset_patch = Vec::new();
Bsdiff::new(&original_asset, &t)
.compare(&mut signed_embedded_asset_patch)
.expect("TODO");
bsdiff::diff(
&original_asset,
&signed_embedded_asset.into_inner(),
&mut signed_embedded_asset_patch,
)
.expect("TODO");

// TODO: temporary for testing
let mut original = Vec::new();
bsdiff::patch(
&original_asset,
&mut Cursor::new(&mut signed_embedded_asset_patch),
&mut original,
)
.unwrap();
fs::write(dir_path.join("embedded.original"), original)?;

asset_details.uncompressed_embedded_size = Some(signed_embedded_asset_patch.len());
// let signed_embedded_asset_patch = lz4_flex::compress(&signed_embedded_asset_patch);
let signed_embedded_asset_patch = lz4_flex::compress(&signed_embedded_asset_patch);

fs::write(dir_path.join("embedded.patch"), signed_embedded_asset_patch)?;
fs::write(dir_path.join("embedded.c2pa"), embedded_c2pa_manifest)?;
Expand Down
2 changes: 1 addition & 1 deletion sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ c2pa = { path = ".", features = [
jumbf = "0.4.0"
insta = { version = "1.39.0", features = ["json", "redactions", "filters"] }
tiny_http = "0.12.0"
qbsdiff = "1.4"
bsdiff = "0.2.0"
lz4_flex = "0.11.3"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
Expand Down
22 changes: 10 additions & 12 deletions sdk/tests/compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ use std::{
};

use c2pa::{Reader, Result};
use qbsdiff::Bspatch;
use serde::Deserialize;
use serde_json::Value;
use tiny_http::{Response, Server};
Expand Down Expand Up @@ -154,7 +153,6 @@ fn test_compat() -> Result<()> {
serde_json::from_reader(File::open(version_dir.join("compat-details.json"))?)?;

for asset_details in details.assets {
println!("{:?}", asset_details.asset);
let asset_dir = version_dir.join(&asset_details.category);

let format = c2pa::format_from_path(&asset_details.asset).unwrap();
Expand All @@ -166,11 +164,11 @@ fn test_compat() -> Result<()> {
let remote_asset_path = asset_dir.join("remote.patch");
if remote_asset_path.exists() {
let expected_remote_asset_patch = fs::read(remote_asset_path)?;
// let expected_remote_asset_patch = lz4_flex::decompress(
// &expected_remote_asset_patch,
// asset_details.uncompressed_remote_size.unwrap(),
// )
// .expect("TODO3"); // TODO: err msg
let expected_remote_asset_patch = lz4_flex::decompress(
&expected_remote_asset_patch,
asset_details.uncompressed_remote_size.unwrap(),
)
.expect("TODO3"); // TODO: err msg
let mut expected_remote_asset = Vec::new(); // TODO: prealloc
Bspatch::new(&expected_remote_asset_patch)

Check failure on line 173 in sdk/tests/compat.rs

View workflow job for this annotation

GitHub Actions / clippy

failed to resolve: use of undeclared type `Bspatch`

error[E0433]: failed to resolve: use of undeclared type `Bspatch` --> sdk/tests/compat.rs:173:17 | 173 | Bspatch::new(&expected_remote_asset_patch) | ^^^^^^^ use of undeclared type `Bspatch`
.expect("TODO2")
Expand All @@ -195,11 +193,11 @@ fn test_compat() -> Result<()> {
}

let expected_embedded_asset_patch = fs::read(asset_dir.join("embedded.patch"))?;
// let expected_embedded_asset_patch = lz4_flex::decompress(
// &expected_embedded_asset_patch,
// asset_details.uncompressed_embedded_size,
// )
// .expect("TODO4"); // TODO: err msg
let expected_embedded_asset_patch = lz4_flex::decompress(
&expected_embedded_asset_patch,
asset_details.uncompressed_embedded_size,
)
.expect("TODO4"); // TODO: err msg
let mut expected_embedded_asset = Vec::new(); // TODO: prealloc
Bspatch::new(&expected_embedded_asset_patch)

Check failure on line 202 in sdk/tests/compat.rs

View workflow job for this annotation

GitHub Actions / clippy

failed to resolve: use of undeclared type `Bspatch`

error[E0433]: failed to resolve: use of undeclared type `Bspatch` --> sdk/tests/compat.rs:202:13 | 202 | Bspatch::new(&expected_embedded_asset_patch) | ^^^^^^^ use of undeclared type `Bspatch`
.expect("TODO5")
Expand Down
Binary file modified sdk/tests/fixtures/compat/0.33.0/bmff/embedded.c2pa
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion sdk/tests/fixtures/compat/0.33.0/bmff/embedded.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"manifest_store":{"active_manifest":"urn:uuid:09db6973-ddee-45ff-a5db-a7fb80cf2978","manifests":{"urn:uuid:09db6973-ddee-45ff-a5db-a7fb80cf2978":{"claim_generator":"test/1.0 c2pa-rs/0.33.0","claim_generator_info":[{"name":"test","version":"1.0"},{"name":"c2pa-rs","version":"0.33.0"}],"format":"video/mp4","instance_id":"xmp:iid:1762eaed-d585-44c9-b618-a391b18eb09e","ingredients":[],"assertions":[{"label":"c2pa.actions.v2","data":{"actions":[{"action":"c2pa.opened","softwareAgent":{"name":"TestApp","version":"1.0","something":"else"},"parameters":{"description":"import"},"digitalSourceType":"http://cv.iptc.org/newscodes/digitalsourcetype/algorithmicMedia"}]}},{"label":"c2pa.hash.bmff.v2","data":{"exclusions":[{"xpath":"/uuid","length":null,"data":[{"offset":8,"value":[216,254,195,214,27,14,72,60,146,151,88,40,135,126,196,129]}],"subset":null,"version":null,"flags":null,"exact":null},{"xpath":"/ftyp","length":null,"data":null,"subset":null,"version":null,"flags":null,"exact":null},{"xpath":"/meta/iloc","length":null,"data":null,"subset":null,"version":null,"flags":null,"exact":null},{"xpath":"/mfra/tfra","length":null,"data":null,"subset":null,"version":null,"flags":null,"exact":null},{"xpath":"/moov/trak/mdia/minf/stbl/stco","length":null,"data":null,"subset":[{"offset":16,"length":0}],"version":null,"flags":null,"exact":null},{"xpath":"/moov/trak/mdia/minf/stbl/co64","length":null,"data":null,"subset":[{"offset":16,"length":0}],"version":null,"flags":null,"exact":null},{"xpath":"/moof/traf/tfhd","length":null,"data":null,"subset":[{"offset":16,"length":8}],"version":null,"flags":[1,0,0],"exact":null},{"xpath":"/moof/traf/trun","length":null,"data":null,"subset":[{"offset":16,"length":4}],"version":null,"flags":[1,0,0],"exact":null}],"alg":"sha256","hash":[200,32,148,169,15,166,231,86,102,210,152,227,69,66,172,110,226,206,198,129,95,47,38,164,140,189,109,46,157,228,177,15],"name":"jumbf manifest"}}],"signature_info":{"alg":"Ed25519","issuer":"C2PA Test Signing Cert","cert_serial_number":"638838410810235485828984295321338730070538954823"},"label":"urn:uuid:09db6973-ddee-45ff-a5db-a7fb80cf2978"}}}}
{"manifest_store":{"active_manifest":"urn:uuid:068555b5-5198-4d2e-9f86-00d652dd7bb9","manifests":{"urn:uuid:068555b5-5198-4d2e-9f86-00d652dd7bb9":{"claim_generator":"test/1.0 c2pa-rs/0.33.0","claim_generator_info":[{"name":"test","version":"1.0"},{"name":"c2pa-rs","version":"0.33.0"}],"format":"video/mp4","instance_id":"xmp:iid:26b6d2f6-39d7-4e76-a938-b69b415274ec","ingredients":[],"assertions":[{"label":"c2pa.actions.v2","data":{"actions":[{"action":"c2pa.opened","softwareAgent":{"name":"TestApp","version":"1.0","something":"else"},"parameters":{"description":"import"},"digitalSourceType":"http://cv.iptc.org/newscodes/digitalsourcetype/algorithmicMedia"}]}},{"label":"c2pa.hash.bmff.v2","data":{"exclusions":[{"xpath":"/uuid","length":null,"data":[{"offset":8,"value":[216,254,195,214,27,14,72,60,146,151,88,40,135,126,196,129]}],"subset":null,"version":null,"flags":null,"exact":null},{"xpath":"/ftyp","length":null,"data":null,"subset":null,"version":null,"flags":null,"exact":null},{"xpath":"/meta/iloc","length":null,"data":null,"subset":null,"version":null,"flags":null,"exact":null},{"xpath":"/mfra/tfra","length":null,"data":null,"subset":null,"version":null,"flags":null,"exact":null},{"xpath":"/moov/trak/mdia/minf/stbl/stco","length":null,"data":null,"subset":[{"offset":16,"length":0}],"version":null,"flags":null,"exact":null},{"xpath":"/moov/trak/mdia/minf/stbl/co64","length":null,"data":null,"subset":[{"offset":16,"length":0}],"version":null,"flags":null,"exact":null},{"xpath":"/moof/traf/tfhd","length":null,"data":null,"subset":[{"offset":16,"length":8}],"version":null,"flags":[1,0,0],"exact":null},{"xpath":"/moof/traf/trun","length":null,"data":null,"subset":[{"offset":16,"length":4}],"version":null,"flags":[1,0,0],"exact":null}],"alg":"sha256","hash":[200,32,148,169,15,166,231,86,102,210,152,227,69,66,172,110,226,206,198,129,95,47,38,164,140,189,109,46,157,228,177,15],"name":"jumbf manifest"}}],"signature_info":{"alg":"Ed25519","issuer":"C2PA Test Signing Cert","cert_serial_number":"638838410810235485828984295321338730070538954823"},"label":"urn:uuid:068555b5-5198-4d2e-9f86-00d652dd7bb9"}}}}
Binary file not shown.
Binary file modified sdk/tests/fixtures/compat/0.33.0/bmff/embedded.patch
Binary file not shown.
Binary file modified sdk/tests/fixtures/compat/0.33.0/bmff/remote.c2pa
Binary file not shown.
2 changes: 1 addition & 1 deletion sdk/tests/fixtures/compat/0.33.0/bmff/remote.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"manifest_store":{"active_manifest":"urn:uuid:36258c5c-96d1-41c0-b37a-a043b2748c93","manifests":{"urn:uuid:36258c5c-96d1-41c0-b37a-a043b2748c93":{"claim_generator":"test/1.0 c2pa-rs/0.33.0","claim_generator_info":[{"name":"test","version":"1.0"},{"name":"c2pa-rs","version":"0.33.0"}],"format":"video/mp4","instance_id":"xmp:iid:ce06d046-b31f-4889-9cd7-f7680aaef513","ingredients":[],"assertions":[{"label":"c2pa.actions.v2","data":{"actions":[{"action":"c2pa.opened","softwareAgent":{"name":"TestApp","version":"1.0","something":"else"},"parameters":{"description":"import"},"digitalSourceType":"http://cv.iptc.org/newscodes/digitalsourcetype/algorithmicMedia"}]}},{"label":"c2pa.hash.bmff.v2","data":{"exclusions":[{"xpath":"/uuid","length":null,"data":[{"offset":8,"value":[216,254,195,214,27,14,72,60,146,151,88,40,135,126,196,129]}],"subset":null,"version":null,"flags":null,"exact":null},{"xpath":"/ftyp","length":null,"data":null,"subset":null,"version":null,"flags":null,"exact":null},{"xpath":"/meta/iloc","length":null,"data":null,"subset":null,"version":null,"flags":null,"exact":null},{"xpath":"/mfra/tfra","length":null,"data":null,"subset":null,"version":null,"flags":null,"exact":null},{"xpath":"/moov/trak/mdia/minf/stbl/stco","length":null,"data":null,"subset":[{"offset":16,"length":0}],"version":null,"flags":null,"exact":null},{"xpath":"/moov/trak/mdia/minf/stbl/co64","length":null,"data":null,"subset":[{"offset":16,"length":0}],"version":null,"flags":null,"exact":null},{"xpath":"/moof/traf/tfhd","length":null,"data":null,"subset":[{"offset":16,"length":8}],"version":null,"flags":[1,0,0],"exact":null},{"xpath":"/moof/traf/trun","length":null,"data":null,"subset":[{"offset":16,"length":4}],"version":null,"flags":[1,0,0],"exact":null}],"alg":"sha256","hash":[184,150,116,156,174,50,81,9,210,20,52,43,49,218,250,178,241,170,78,24,130,120,178,139,133,227,229,58,224,106,28,178],"name":"jumbf manifest"}}],"signature_info":{"alg":"Ed25519","issuer":"C2PA Test Signing Cert","cert_serial_number":"638838410810235485828984295321338730070538954823"},"label":"urn:uuid:36258c5c-96d1-41c0-b37a-a043b2748c93"}}}}
{"manifest_store":{"active_manifest":"urn:uuid:f6f9db80-14cf-4df0-a3d3-e22e29e3b10a","manifests":{"urn:uuid:f6f9db80-14cf-4df0-a3d3-e22e29e3b10a":{"claim_generator":"test/1.0 c2pa-rs/0.33.0","claim_generator_info":[{"name":"test","version":"1.0"},{"name":"c2pa-rs","version":"0.33.0"}],"format":"video/mp4","instance_id":"xmp:iid:f1bc2e55-25e3-4b2d-a485-da4c3195eea7","ingredients":[],"assertions":[{"label":"c2pa.actions.v2","data":{"actions":[{"action":"c2pa.opened","softwareAgent":{"name":"TestApp","version":"1.0","something":"else"},"parameters":{"description":"import"},"digitalSourceType":"http://cv.iptc.org/newscodes/digitalsourcetype/algorithmicMedia"}]}},{"label":"c2pa.hash.bmff.v2","data":{"exclusions":[{"xpath":"/uuid","length":null,"data":[{"offset":8,"value":[216,254,195,214,27,14,72,60,146,151,88,40,135,126,196,129]}],"subset":null,"version":null,"flags":null,"exact":null},{"xpath":"/ftyp","length":null,"data":null,"subset":null,"version":null,"flags":null,"exact":null},{"xpath":"/meta/iloc","length":null,"data":null,"subset":null,"version":null,"flags":null,"exact":null},{"xpath":"/mfra/tfra","length":null,"data":null,"subset":null,"version":null,"flags":null,"exact":null},{"xpath":"/moov/trak/mdia/minf/stbl/stco","length":null,"data":null,"subset":[{"offset":16,"length":0}],"version":null,"flags":null,"exact":null},{"xpath":"/moov/trak/mdia/minf/stbl/co64","length":null,"data":null,"subset":[{"offset":16,"length":0}],"version":null,"flags":null,"exact":null},{"xpath":"/moof/traf/tfhd","length":null,"data":null,"subset":[{"offset":16,"length":8}],"version":null,"flags":[1,0,0],"exact":null},{"xpath":"/moof/traf/trun","length":null,"data":null,"subset":[{"offset":16,"length":4}],"version":null,"flags":[1,0,0],"exact":null}],"alg":"sha256","hash":[184,150,116,156,174,50,81,9,210,20,52,43,49,218,250,178,241,170,78,24,130,120,178,139,133,227,229,58,224,106,28,178],"name":"jumbf manifest"}}],"signature_info":{"alg":"Ed25519","issuer":"C2PA Test Signing Cert","cert_serial_number":"638838410810235485828984295321338730070538954823"},"label":"urn:uuid:f6f9db80-14cf-4df0-a3d3-e22e29e3b10a"}}}}
Binary file modified sdk/tests/fixtures/compat/0.33.0/bmff/remote.patch
Binary file not shown.
Binary file removed sdk/tests/fixtures/compat/0.33.0/bmff/test
Binary file not shown.
2 changes: 1 addition & 1 deletion sdk/tests/fixtures/compat/0.33.0/compat-details.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"assets":[{"asset":"C.jpg","category":"jpeg","uncompressed_remote_size":486,"uncompressed_embedded_size":1315},{"asset":"sample1.gif","category":"gif","uncompressed_remote_size":964,"uncompressed_embedded_size":2094},{"asset":"sample1.svg","category":"svg","uncompressed_remote_size":null,"uncompressed_embedded_size":2430},{"asset":"video1.mp4","category":"bmff","uncompressed_remote_size":395,"uncompressed_embedded_size":1514},{"asset":"sample1.mp3","category":"mp3","uncompressed_remote_size":541,"uncompressed_embedded_size":2073},{"asset":"libpng-test.png","category":"png","uncompressed_remote_size":505,"uncompressed_embedded_size":1965},{"asset":"TUSCANY.TIF","category":"tiff","uncompressed_remote_size":534,"uncompressed_embedded_size":2019}],"public_key":"certs/ed25519.pub","private_key":"certs/ed25519.pem"}
{"assets":[{"asset":"C.jpg","category":"jpeg","uncompressed_remote_size":87089,"uncompressed_embedded_size":99897},{"asset":"sample1.gif","category":"gif","uncompressed_remote_size":741197,"uncompressed_embedded_size":754389},{"asset":"video1.mp4","category":"bmff","uncompressed_remote_size":796914,"uncompressed_embedded_size":811805},{"asset":"sample1.mp3","category":"mp3","uncompressed_remote_size":1954664,"uncompressed_embedded_size":1974721},{"asset":"libpng-test.png","category":"png","uncompressed_remote_size":4183,"uncompressed_embedded_size":16553},{"asset":"TUSCANY.TIF","category":"tiff","uncompressed_remote_size":206326,"uncompressed_embedded_size":218714}],"public_key":"certs/ed25519.pub","private_key":"certs/ed25519.pem"}
Binary file not shown.
Binary file modified sdk/tests/fixtures/compat/0.33.0/gif/embedded.c2pa
Binary file not shown.
2 changes: 1 addition & 1 deletion sdk/tests/fixtures/compat/0.33.0/gif/embedded.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"manifest_store":{"active_manifest":"urn:uuid:3078f0db-d77d-4c05-9b7a-23ba91075612","manifests":{"urn:uuid:3078f0db-d77d-4c05-9b7a-23ba91075612":{"claim_generator":"test/1.0 c2pa-rs/0.33.0","claim_generator_info":[{"name":"test","version":"1.0"},{"name":"c2pa-rs","version":"0.33.0"}],"format":"image/gif","instance_id":"xmp:iid:b2e094d7-7fcc-4d4c-a12e-36424665a5ef","ingredients":[],"assertions":[{"label":"c2pa.actions.v2","data":{"actions":[{"action":"c2pa.opened","softwareAgent":{"name":"TestApp","version":"1.0","something":"else"},"parameters":{"description":"import"},"digitalSourceType":"http://cv.iptc.org/newscodes/digitalsourcetype/algorithmicMedia"}]}}],"signature_info":{"alg":"Ed25519","issuer":"C2PA Test Signing Cert","cert_serial_number":"638838410810235485828984295321338730070538954823"},"label":"urn:uuid:3078f0db-d77d-4c05-9b7a-23ba91075612"}}}}
{"manifest_store":{"active_manifest":"urn:uuid:5550d39e-83c9-4ee3-921f-e1e0b1165b2d","manifests":{"urn:uuid:5550d39e-83c9-4ee3-921f-e1e0b1165b2d":{"claim_generator":"test/1.0 c2pa-rs/0.33.0","claim_generator_info":[{"name":"test","version":"1.0"},{"name":"c2pa-rs","version":"0.33.0"}],"format":"image/gif","instance_id":"xmp:iid:44bd12c8-0483-4203-aa42-2e904b2cedbf","ingredients":[],"assertions":[{"label":"c2pa.actions.v2","data":{"actions":[{"action":"c2pa.opened","softwareAgent":{"name":"TestApp","version":"1.0","something":"else"},"parameters":{"description":"import"},"digitalSourceType":"http://cv.iptc.org/newscodes/digitalsourcetype/algorithmicMedia"}]}}],"signature_info":{"alg":"Ed25519","issuer":"C2PA Test Signing Cert","cert_serial_number":"638838410810235485828984295321338730070538954823"},"label":"urn:uuid:5550d39e-83c9-4ee3-921f-e1e0b1165b2d"}}}}
Binary file not shown.
Binary file modified sdk/tests/fixtures/compat/0.33.0/gif/embedded.patch
Binary file not shown.
Binary file modified sdk/tests/fixtures/compat/0.33.0/gif/remote.c2pa
Binary file not shown.
2 changes: 1 addition & 1 deletion sdk/tests/fixtures/compat/0.33.0/gif/remote.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"manifest_store":{"active_manifest":"urn:uuid:1991803d-7265-4b2b-9d70-f3c17b7e9811","manifests":{"urn:uuid:1991803d-7265-4b2b-9d70-f3c17b7e9811":{"claim_generator":"test/1.0 c2pa-rs/0.33.0","claim_generator_info":[{"name":"test","version":"1.0"},{"name":"c2pa-rs","version":"0.33.0"}],"format":"image/gif","instance_id":"xmp:iid:9fa9d025-e825-4a51-bb6d-453ee7d673f9","ingredients":[],"assertions":[{"label":"c2pa.actions.v2","data":{"actions":[{"action":"c2pa.opened","softwareAgent":{"name":"TestApp","version":"1.0","something":"else"},"parameters":{"description":"import"},"digitalSourceType":"http://cv.iptc.org/newscodes/digitalsourcetype/algorithmicMedia"}]}}],"signature_info":{"alg":"Ed25519","issuer":"C2PA Test Signing Cert","cert_serial_number":"638838410810235485828984295321338730070538954823"},"label":"urn:uuid:1991803d-7265-4b2b-9d70-f3c17b7e9811"}}}}
{"manifest_store":{"active_manifest":"urn:uuid:82970c5a-bf42-40f8-8dfa-2400c42734f3","manifests":{"urn:uuid:82970c5a-bf42-40f8-8dfa-2400c42734f3":{"claim_generator":"test/1.0 c2pa-rs/0.33.0","claim_generator_info":[{"name":"test","version":"1.0"},{"name":"c2pa-rs","version":"0.33.0"}],"format":"image/gif","instance_id":"xmp:iid:3f0d39eb-b393-4329-bae8-5d5877a475a6","ingredients":[],"assertions":[{"label":"c2pa.actions.v2","data":{"actions":[{"action":"c2pa.opened","softwareAgent":{"name":"TestApp","version":"1.0","something":"else"},"parameters":{"description":"import"},"digitalSourceType":"http://cv.iptc.org/newscodes/digitalsourcetype/algorithmicMedia"}]}}],"signature_info":{"alg":"Ed25519","issuer":"C2PA Test Signing Cert","cert_serial_number":"638838410810235485828984295321338730070538954823"},"label":"urn:uuid:82970c5a-bf42-40f8-8dfa-2400c42734f3"}}}}
Binary file modified sdk/tests/fixtures/compat/0.33.0/gif/remote.patch
Binary file not shown.
Binary file removed sdk/tests/fixtures/compat/0.33.0/gif/test
Binary file not shown.
Binary file modified sdk/tests/fixtures/compat/0.33.0/jpeg/embedded.c2pa
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 7eb392c

Please sign in to comment.