atproto utils for zig zat.dev
atproto sdk zig
26
fork

Configure Feed

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

fix: use crypto.sign.ecdsa path for zig 0.15

🤖 Generated with [Claude Code](https://claude.com/claude-code)

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

zzstoatzz 7fbd203b b22c0686

+2 -2
+2 -2
src/internal/jwt.zig
··· 201 201 } 202 202 203 203 fn verifySecp256k1(message: []const u8, sig_bytes: []const u8, public_key_raw: []const u8) !void { 204 - const Scheme = crypto.ecdsa.EcdsaSecp256k1Sha256; 204 + const Scheme = crypto.sign.ecdsa.EcdsaSecp256k1Sha256; 205 205 206 206 // parse signature (r || s, 64 bytes) 207 207 if (sig_bytes.len != 64) return error.InvalidSignature; ··· 216 216 } 217 217 218 218 fn verifyP256(message: []const u8, sig_bytes: []const u8, public_key_raw: []const u8) !void { 219 - const Scheme = crypto.ecdsa.EcdsaP256Sha256; 219 + const Scheme = crypto.sign.ecdsa.EcdsaP256Sha256; 220 220 221 221 // parse signature (r || s, 64 bytes) 222 222 if (sig_bytes.len != 64) return error.InvalidSignature;