Skip to content

verify UI has some issues #197

@ttbuffey

Description

@ttbuffey

Hi,

I noticed a issue in the verify page: previously it's working fine, but inrecent days it shows some issues: like APP used it get the signature name and the AI tools used is a [object,object]. please check below image.

Image

the code I used is

try:
            signer_info = C2paSignerInfo(
                alg=b"ps256",
                sign_cert=cert_chain,
                private_key=private_key,
                ta_url=b"http://timestamp.digicert.com"
            )
            signer = Signer.from_info(signer_info)
        except Exception as e:
            logger.error(f"Error creating signer: {e}")
            raise RuntimeError(f"Error creating signer: {e}") from e
        logger.info(f"signer created in {time.time()} duration {time.time() - starttime}")
        # add source file as an ingredient file.
        builder = Builder(manifest)
c2pa_data = builder.sign_file(signer=signer, source_path=image_path, dest_path=output_path)

the manifest I used is as below

{
    "claim_generator_info": [
            {
                "name": "Analytical Cloud",
                "version": "1.0"
            }
        ],
        "assertions": [
            {
                "label": "c2pa.actions",
                "data": {
                    "actions": [
                        {
                            "action": "c2pa.created",# asset was first created
                            "when": "2025-05-16T12:00:00Z",
                            "softwareAgent": {
                                "name": "chatGPT",
                                "version": "4o",
                                "schema.org.SoftwareApplication.operatingSystem": "Windows 10"
                            },
                            "digitalSourceType": "http://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia",
                        }
                    ]
                }
            },
            {
                "label": "c2pa.training-mining",
                "data": {
                "entries": {
                    "c2pa.ai_generative_training": { "use": "notAllowed" },
                    "c2pa.ai_inference": { "use": "notAllowed" },
                    "c2pa.ai_training": { "use": "notAllowed" },
                    "c2pa.data_mining": { 
                        "use": "constrained",
                        "constraint_info" : "Contact eamail for more information."
                    } 
                }
                }
            }
        ]
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions