@contentauth/c2pa-node 0.9.6 → 0.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +1 -1
- package/dist/index.node +2 -2
- package/package.json +1 -1
- package/src/neon_identity_assertion_builder.rs +3 -3
package/Cargo.toml
CHANGED
package/dist/index.node
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/index.node
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 49170696 bytes
|
|
4
|
+
sha256: 6f1e7f72bb6e00aff6f77477d9f4961a022a98912016820b86f72cdcced88e8a
|
package/package.json
CHANGED
|
@@ -183,7 +183,7 @@ fn finalize_identity_assertion(
|
|
|
183
183
|
};
|
|
184
184
|
|
|
185
185
|
let mut assertion_cbor: Vec<u8> = vec![];
|
|
186
|
-
|
|
186
|
+
c2pa_cbor::to_writer(&mut assertion_cbor, &ia)
|
|
187
187
|
.map_err(|e| c2pa::Error::BadParam(e.to_string()))?;
|
|
188
188
|
// TO DO: Think through how errors map into crate::Error.
|
|
189
189
|
|
|
@@ -195,7 +195,7 @@ fn finalize_identity_assertion(
|
|
|
195
195
|
ia.pad1 = vec![0u8; assertion_size - assertion_cbor.len() - 15];
|
|
196
196
|
|
|
197
197
|
assertion_cbor.clear();
|
|
198
|
-
|
|
198
|
+
c2pa_cbor::to_writer(&mut assertion_cbor, &ia)
|
|
199
199
|
.map_err(|e| c2pa::Error::BadParam(e.to_string()))?;
|
|
200
200
|
|
|
201
201
|
ia.pad2 = Some(ByteBuf::from(vec![
|
|
@@ -204,7 +204,7 @@ fn finalize_identity_assertion(
|
|
|
204
204
|
]));
|
|
205
205
|
|
|
206
206
|
assertion_cbor.clear();
|
|
207
|
-
|
|
207
|
+
c2pa_cbor::to_writer(&mut assertion_cbor, &ia)
|
|
208
208
|
.map_err(|e| c2pa::Error::BadParam(e.to_string()))?;
|
|
209
209
|
assert_eq!(assertion_size, assertion_cbor.len());
|
|
210
210
|
}
|