Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proof-of-concept: go library #27

Draft
wants to merge 38 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
9042333
golang proof of concept!
iameli Aug 8, 2024
8f34404
Update README.md
iameli Aug 8, 2024
5e334de
remove old generated files
iameli Aug 8, 2024
0babcb4
add darwin build flags
iameli Aug 8, 2024
102cea5
whoops, actually use provided mime-type
iameli Aug 10, 2024
93400c1
Makefile: split up the steps a bit
iameli Aug 10, 2024
c8bd69f
add generated json-schema types
iameli Aug 10, 2024
d91d8d1
go: start to outline some actual types
iameli Aug 10, 2024
06b6694
checkpoint with working signing
iameli Aug 10, 2024
d1af42d
go: working signing flow
iameli Aug 11, 2024
4a67ed9
working es256k signing!
iameli Aug 11, 2024
f6a9b64
ACTUALLY working that thing i said
iameli Aug 11, 2024
bdeb453
tests: add a bad signature for testing
iameli Aug 11, 2024
70263c6
tests: working signing and verification woo
iameli Aug 11, 2024
659e9e1
tests: failing tests for every other signing type
iameli Aug 11, 2024
26c761b
we support every algorithm now!
iameli Aug 12, 2024
dcac7f9
cleanup
iameli Aug 12, 2024
8de0cec
add generated code
iameli Aug 14, 2024
b6093ca
remove gitignore
iameli Aug 14, 2024
d846096
add meson.build
iameli Aug 14, 2024
a55eee8
working meson dependency
iameli Aug 14, 2024
0c6bf82
rename
iameli Aug 14, 2024
a2c5199
add RUST_TRIPLE option
iameli Aug 14, 2024
09d77c1
migrate to two IO classes
iameli Aug 14, 2024
66ef0cf
fix mp4 signing bug, add tests thereof
iameli Aug 18, 2024
eda5e5f
remove build restrictions
iameli Aug 18, 2024
bdbae2a
pkg/c2pa: refactor to allow external signers
iameli Aug 20, 2024
2f6cb26
pkg/c2pa: remove unncessary alg in signer
iameli Aug 20, 2024
c7339a1
add validation of signed media
iameli Aug 21, 2024
dc4fd1d
remove logging
iameli Aug 27, 2024
1d2a5e4
add GetProvenanceCertChain
iameli Sep 12, 2024
68f9878
simplify signing flow
iameli Sep 13, 2024
055feef
meson: fix errors when there are spaces in our path
iameli Sep 23, 2024
7504f25
meson: another quoting error
iameli Sep 23, 2024
1f27717
meson: use declare_dependency to bundle include directory
iameli Dec 3, 2024
2944f24
Revert "meson: use declare_dependency to bundle include directory"
iameli Dec 5, 2024
2931a03
rename: streamplace
iameli Jan 16, 2025
a26b6bf
update package name with new git server
iameli Jan 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ authors = ["Gavin Peacock <[email protected]"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "c2pa"
crate-type = ["cdylib"]

crate-type = ["staticlib"]

[dependencies]
c2pa = {version = "0.32.0", features = ["unstable_api", "openssl"]}
c2pa = { version = "0.32.0", features = ["unstable_api", "openssl"] }
pem = "3.0.3"
serde = { version = "1.0.197", features = ["derive"] }
serde_derive = "1.0"
serde_json = "1.0"
thiserror = "1.0.49"
uniffi = "0.24.1"
uniffi = "= 0.25.0"

[build-dependencies]
uniffi = { version = "0.24.1", features = ["build"] }
uniffi = { version = "= 0.25.0", features = ["build"] }
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

.PHONY: all
all:
mkdir -p dist
cargo install uniffi-bindgen-go --git https://github.com/NordSecurity/uniffi-bindgen-go --tag v0.2.1+v0.25.0
cargo build --release
uniffi-bindgen-go src/c2pa.udl --out-dir pkg/c2pa/generated
go build -o ./dist/go-demo ./pkg/c2pa/demo/...
Loading