Live video on the AT Protocol
79
fork

Configure Feed

Select the types of activity you want to include in your feed.

build: upgrade to c2pa-go v0.7.0

authored by

Eli Mallon and committed by
Eli Mallon
ebfeb254 69768da2

+11 -11
+2 -2
go.mod
··· 12 12 13 13 require ( 14 14 firebase.google.com/go/v4 v4.14.1 15 - git.stream.place/streamplace/c2pa-go v0.0.0-20250129011218-a26b6bf7d3b0 15 + git.stream.place/streamplace/c2pa-go v0.7.0 16 16 github.com/99designs/gqlgen v0.17.64 17 17 github.com/NYTimes/gziphandler v1.1.1 18 18 github.com/ThalesGroup/crypto11 v0.0.0-00010101000000-000000000000 19 + github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d 19 20 github.com/bluesky-social/indigo v0.0.0-20250202033855-fd270fbccf0c 20 21 github.com/decred/dcrd/dcrec/secp256k1 v1.0.4 21 22 github.com/dunglas/httpsfv v1.0.2 ··· 93 94 github.com/Microsoft/go-winio v0.6.2 // indirect 94 95 github.com/ProtonMail/go-crypto v1.0.0 // indirect 95 96 github.com/RussellLuo/slidingwindow v0.0.0-20200528002341-535bb99d338b // indirect 96 - github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d // indirect 97 97 github.com/agnivade/levenshtein v1.2.0 // indirect 98 98 github.com/beorn7/perks v1.0.1 // indirect 99 99 github.com/bits-and-blooms/bitset v1.10.0 // indirect
+2 -2
go.sum
··· 21 21 filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= 22 22 firebase.google.com/go/v4 v4.14.1 h1:4qiUETaFRWoFGE1XP5VbcEdtPX93Qs+8B/7KvP2825g= 23 23 firebase.google.com/go/v4 v4.14.1/go.mod h1:fgk2XshgNDEKaioKco+AouiegSI9oTWVqRaBdTTGBoM= 24 - git.stream.place/streamplace/c2pa-go v0.0.0-20250129011218-a26b6bf7d3b0 h1:dXB8DJxUxQsX6m2vR+O5wXiUfD9IGcxn8gV3mRbHI0k= 25 - git.stream.place/streamplace/c2pa-go v0.0.0-20250129011218-a26b6bf7d3b0/go.mod h1:ymtm/Gk3K8Q67SuBoZUqmA0prdymNwAI9BjLj6plhBM= 24 + git.stream.place/streamplace/c2pa-go v0.7.0 h1:cRbOxgAFgM42XDmvK39ImYP/LrJEekYZ+GoxMGIcakk= 25 + git.stream.place/streamplace/c2pa-go v0.7.0/go.mod h1:ymtm/Gk3K8Q67SuBoZUqmA0prdymNwAI9BjLj6plhBM= 26 26 github.com/99designs/gqlgen v0.17.64 h1:BzpqO5ofQXyy2XOa93Q6fP1BHLRjTOeU35ovTEsbYlw= 27 27 github.com/99designs/gqlgen v0.17.64/go.mod h1:kaxLetFxPGeBBwiuKk75NxuI1fe9HRvob17In74v/Zc= 28 28 github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
+6 -6
pkg/media/media_signer.go
··· 108 108 } 109 109 manifestBs, err := json.Marshal(mani) 110 110 if err != nil { 111 - return nil, err 111 + return nil, fmt.Errorf("failed to marshal manifest: %w", err) 112 112 } 113 113 var manifest c2pa.ManifestDefinition 114 114 err = json.Unmarshal(manifestBs, &manifest) 115 115 if err != nil { 116 - return nil, err 116 + return nil, fmt.Errorf("failed to unmarshal manifest: %w", err) 117 117 } 118 118 alg, err := c2pa.GetSigningAlgorithm(string(c2pa.ES256K)) 119 119 if err != nil { 120 - return nil, err 120 + return nil, fmt.Errorf("failed to get signing algorithm: %w", err) 121 121 } 122 122 b, err := c2pa.NewBuilder(&manifest, &c2pa.BuilderParams{ 123 123 Cert: ms.Cert, ··· 126 126 TAURL: ms.TAURL, 127 127 }) 128 128 if err != nil { 129 - return nil, err 129 + return nil, fmt.Errorf("failed to create C2PA builder: %w", err) 130 130 } 131 131 132 132 output := &aqio.ReadWriteSeeker{} 133 133 err = b.Sign(input, output, "video/mp4") 134 134 if err != nil { 135 - return nil, err 135 + return nil, fmt.Errorf("failed to sign MP4: %w", err) 136 136 } 137 137 bs, err := output.Bytes() 138 138 if err != nil { 139 - return nil, err 139 + return nil, fmt.Errorf("failed to get output bytes: %w", err) 140 140 } 141 141 return bs, nil 142 142 }
+1 -1
subprojects/c2pa_go.wrap
··· 1 1 [wrap-git] 2 2 url = https://git.stream.place/streamplace/c2pa-go.git 3 - revision = main 3 + revision = v0.7.0 4 4 depth = 1