Trust-Machines / p256k1

Wrappers around secp256k1 to expose the underlying math, specifically unwrapped points and scalars with multiexponentiation
Apache License 2.0
12 stars 6 forks source link

debug should base58 the data so the logs aren't useless #67

Closed xoloki closed 1 year ago

xoloki commented 1 year ago

Previously Display and Debug were implemented for ecdsa::PublicKey. But the resulting debug logs were unreadable due to the verbosity of the data buffers.

This PR changes the Display formatting to base58 the data buffers to help readability.

cloudflare-workers-and-pages[bot] commented 1 year ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2c4be48
Status: ✅  Deploy successful!
Preview URL: https://4a8d8137.p256k1.pages.dev
Branch Preview URL: https://debug-base58.p256k1.pages.dev

View logs