const sampleImage = 'https://js-sdk.contentauthenticity.org/c2pa-samples/CAICAI.jpg';
const imageProvenance = useProvenance(sampleImage);
console.log(imageProvenance)
ImageProvenance {
claims: Map
activeClaim: Claim
data: Object
exists: boolean
}
{
claims: [
0: {
key: "adobetest:urn:uuid:2d226f83-2c4f-4adb-8aa6-455cdd740e13",
value: {
assertions: Map // huuuugeee,
asset: {
document_id: "xmp:iid:c2375873-049e-40af-bf01-04c50c8da83f",
format: "image/jpeg",
instance_id: "xmp:iid:c2375873-049e-40af-bf01-04c50c8da83f",
title: "CA.jpg",
thumbnail: {
format: "image/jpeg",
image: Unknown // Array of coordinates ??
}
},
ingredients: {
...sameAsAsset
},
recorder: "C2PA Testing",
// I think this is the most important thing of the payload
signature: {
issuer: "Adobe, Inc.",
time: "2021-09-14T22:30:10.389206+00:00"
},
id: "adobetest:urn:uuid:8bc472b1-b0bb-4cf0-8936-d283bbb8b030",
}
}
],
// there are more fields but they repeat the same fields I described above
}
We are going to introduce craco
for adding support for WebAssembly and Create React App