Skip to content

cdmurph32/c2pa-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C2PA Component

Build Prerequisites

Build

To build both the component and the c2pa-tool example run the following:

export WASI_SDK_PATH=/opt/wasi-sdk CC=/opt/wasi-sdk/bin/clang
cargo +nightly build --target wasm32-wasip2 && wac plug target/wasm32-wasip2/debug/c2pa_component.wasm --plug target/wasm32-wasip2/debug/signer.wasm -o c2pa_component.wasm && wac plug target/wasm32-wasip2/debug/c2pa-tool.wasm --plug c2pa_component.wasm -o c2pa-tool.wasm

Run the manifest read example with

wasmtime -S common --dir . ./c2pa-tool.wasm -- fixtures/CA.jpg 

Run the building and signing example with

wasmtime -S cli -S http --dir . --dir signer --dir fixtures c2pa-tool.wasm fixtures/CA.jpg --config signer/signer_config.json --manifest fixtures/manifest_data.json --output ./CA_signer.jpeg

About

WASI P2 component for C2PA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages