gabriel / musehub public
refactor BREAKING task/housekeeping #1 / 1
AI Agent gabriel · 150 days ago · Apr 25, 2026 · Diff

refactor: route decode_sig/decode_pubkey through muse.core._types canonical codec

Replace local _decode_b64url() helpers in musehub_mpay and musehub_attestations with decode_sig()/decode_pubkey() from muse.core._types. These callers were manually stripping the 'ed25519:' prefix and calling base64.urlsafe_b64decode — exactly what the canonical functions do. Also removes the unused base64 import.

sha256:b398e539dd32c742ffe64bf33fd4e9057e57a8a405d0b71e310ada0b8126af9b sha
+4 ~2 −6 symbols
sha256:5c9673d69153f1ecea04bdbed341f71b4eb8dc9ceae2ff1311ba8fc15118d1c6 snapshot
+4
symbols added
~2
symbols modified
−6
symbols removed
0
dead code introduced
Semantic Changes 12 symbols
~ musehub/services/musehub_attestations.py .py 2 symbols added, 3 symbols removed, 1 symbol modified
_PREFIX variable variable _PREFIX L35–35
_decode_b64url function function _decode_b64url L38–41
base64 import import base64 L15–15
+ decode_pubkey import import decode_pubkey L21–21
+ decode_sig import import decode_sig L21–21
~ musehub/services/musehub_mpay.py .py 2 symbols added, 3 symbols removed, 1 symbol modified
_PREFIX variable variable _PREFIX L31–31
_decode_b64url function function _decode_b64url L34–36
base64 import import base64 L14–14
+ decode_pubkey import import decode_pubkey L18–18
+ decode_sig import import decode_sig L18–18
← Older Oldest on task/housekeeping
All commits
Newer → Latest on task/housekeeping

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:b398e539dd32c742ffe64bf33fd4e9057e57a8a405d0b71e310ada0b8126af9b --body "your comment"