CLI app for developers prototyping atproto functionality
1
fork

Configure Feed

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

fix: chain AnySignatureError inner errors via #[source]

Add #[source] annotations to K256 and P256 variants in AnySignatureError
to properly chain wrapped curve-library errors through std::error::Error::source().
Consumers (miette, anyhow) can now traverse the full error context instead of
hitting a dead end at the high-level verification message.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

+2 -2
+2 -2
src/common/identity.rs
··· 163 163 pub enum AnySignatureError { 164 164 /// secp256k1 signature error. 165 165 #[error("secp256k1 signature verification failed")] 166 - K256(k256::ecdsa::Error), 166 + K256(#[source] k256::ecdsa::Error), 167 167 /// P-256 signature error. 168 168 #[error("P-256 signature verification failed")] 169 - P256(p256::ecdsa::Error), 169 + P256(#[source] p256::ecdsa::Error), 170 170 /// Signature and key use mismatched curves. 171 171 #[error("Signature and key use mismatched curves")] 172 172 CurveMismatch,