Test/core crypto primitives#16
Conversation
|
Hey @kevincodex1 , could you approve the workflow run so CI can execute? |
|
yeah running now. will merge once its good bro |
|
Hey @kevincodex1 - I noticed the red X on the merged commit. |
|
Also, |
|
hello @The-FOOL-00 thank you so much for your contribution, I like better squash merge so its cleaner. you are still the author attributed to it right? |
|
makes sense, thanks for merging! |
|
also any idea what caused the red X on the merged commit? was that related to my changes or something else on main? |
|
its fine bro, its our release process havent configured yet the binary release flow. we are using release-please |
Summary
This PR expands unit test coverage across
gitlawb-corecrypto primitives and DID utilities. It focuses on validating failure paths and invariants around certificate structure, content addressing, DID parsing/validation, and identity signing.Certificates (
cert)tohash, and empty signaturesverify_allContent IDs (
cid)from_sha256_bytesmatchesfrom_git_object_bytesDIDs (
did)did:webanddid:gitlawbcannot resolve to verifying keys locallymethod_idextractionIdentity (
identity)sign_b64outputs valid base64url signaturesTesting
cargo test --workspace --exclude glcargo test -p gitlawb-core --docNotes
cargo testfailed only for thegltest binary due to Windows Application Control (os error 4551). All other tests passed.