-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Description
Different parts of code use different libraries for JSON canonicalization.
Examples:
Lines 327 to 332 in d5ba303
| let canonicalized_body = { | |
| let mut body = json_syntax::to_value(self.log_entry.body) | |
| .expect("failed to parse constructed Body!"); | |
| body.canonicalize(); | |
| Some(base64.encode(body.compact_print().to_string())) | |
| }; |
sigstore-rs/src/cosign/bundle.rs
Lines 81 to 88 in d5ba303
| let mut buf = Vec::new(); | |
| let mut ser = serde_json::Serializer::with_formatter(&mut buf, CanonicalFormatter::new()); | |
| bundle.payload.serialize(&mut ser).map_err(|e| { | |
| SigstoreError::UnexpectedError(format!( | |
| "Cannot create canonical JSON representation of bundle: {e:?}" | |
| )) | |
| })?; | |
reneleonhardt
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers