Avatar for the biscuit-auth user
biscuit-auth
biscuit-rust
BlogDocsChangelog

crypto: serialize keys with alg-prefixed hex strings

#261Merged
Comparing
explicit-key-prefix
(
e6e2484
) with
main
(
f4473ee
)
CodSpeed Performance Gauge
0%
Untouched
12

Benchmarks

Passed

check_signature_5
biscuit-auth/benches/token.rs::check_signature_5
CodSpeed Performance Gauge
0%
1 ms1 ms
append_block_2
biscuit-auth/benches/token.rs::append_block_2
CodSpeed Performance Gauge
0%
550.7 µs549.8 µs
unverified_append_block_2
biscuit-auth/benches/token.rs::unverified_append_block_2
CodSpeed Performance Gauge
0%
300.4 µs300.2 µs
unverified_append_block_5
biscuit-auth/benches/token.rs::unverified_append_block_5
CodSpeed Performance Gauge
0%
935 µs934.6 µs
verify_block_5
biscuit-auth/benches/token.rs::verify_block_5
CodSpeed Performance Gauge
0%
1.2 ms1.2 ms
verify_block_2
biscuit-auth/benches/token.rs::verify_block_2
CodSpeed Performance Gauge
0%
609.4 µs609.2 µs
checks_block_verify_only2
biscuit-auth/benches/token.rs::checks_block_verify_only2
CodSpeed Performance Gauge
0%
119.8 µs119.9 µs
append_block_5
biscuit-auth/benches/token.rs::append_block_5
CodSpeed Performance Gauge
0%
2.6 ms2.6 ms
create_block_1
biscuit-auth/benches/token.rs::create_block_1
CodSpeed Performance Gauge
0%
247.2 µs248 µs
check_signature_2
biscuit-auth/benches/token.rs::check_signature_2
CodSpeed Performance Gauge
-1%
496.5 µs500.5 µs
checks_block_create_verifier2
biscuit-auth/benches/token.rs::checks_block_create_verifier2
CodSpeed Performance Gauge
-1%
64.2 µs64.8 µs
checks_block_2
biscuit-auth/benches/token.rs::checks_block_2
CodSpeed Performance Gauge
-1%
119.5 µs120.7 µs

Commits

Click on a commit to change the comparison range
Base
main
f4473ee
-0.16%
crypto: add prefixed hex representation to `PrivateKey` Same as for `Display` and `FromStr` impls for `PublicKey`. `PrivateKey` does not implement `Display` on purpose (to avoid leaking sensitive info in logs), so instead of `to_string()` the method is called `to_prefixed_string()`
79a8b78
8 months ago
by divarvel
-0.05%
crypto: make FromStr<PublicKey>::Error = error::Format it was previously `error::Token` which was way too vague, and gave poor UX when trying to parse a public key
e6e2484
8 months ago
by divarvel
© 2025 CodSpeed Technology
Home Terms Privacy Docs