feat(dip-18): add distinct type byte prefixes#176
feat(dip-18): add distinct type byte prefixes#176thephez merged 2 commits intodashpay:feat/dip17from
Conversation
Change type bytes to produce distinct address prefixes: - P2PKH: 0xb0 -> addresses start with "k" - P2SH: 0x80 -> addresses start with "s" Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
📝 WalkthroughWalkthroughUpdated Dash address type-byte encoding from 0x00/0x01 to 0xb0/0x80 across spec and implementation; adjusted bech32 mappings, test vectors, payload construction, validation rules, hardware-wallet guidance, and added a type-byte calculation utility script. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
…anges - Explain why type byte values were chosen - Add reserved type byte ranges to prevent future collisions - Add type_byte_calc.py utility for finding type bytes that map to desired characters
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
0xb0(P2PKH) and0x80(P2SH) for visually distinct prefixes:k(e.g.,evo1k...)s(e.g.,evo1s...)Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com
Summary by CodeRabbit
Documentation
Tests
Other
✏️ Tip: You can customize this high-level summary in your review settings.