Skip to content

Add Doriancoin - #330

Closed
mboyd1 wants to merge 6 commits into
spesmilo:masterfrom
doriancoin-project:master
Closed

mboyd1 wants to merge 6 commits into
spesmilo:masterfrom
doriancoin-project:master

Conversation

@mboyd1

@mboyd1 mboyd1 commented Jan 9, 2026

Copy link
Copy Markdown

mboyd1 and others added 5 commits January 6, 2026 21:44
Add Doriancoin (DSV) coin classes for mainnet, testnet, and regtest.
Doriancoin is a Litecoin fork with scrypt PoW and SegWit support.

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

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Remove incorrect scrypt header_hash override. ElectrumX uses double_sha256
for block identification (not PoW validation), same as Litecoin.

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

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Add unit test for Doriancoin mainnet block 1000 to satisfy
upstream PR requirements for altcoin additions.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
After MWEB activation, Doriancoin transactions can have the MWEB flag
(bit 0x8) set. DeserializerSegWit doesn't handle this flag, causing
transaction parsing failures and missing UTXOs.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Add support for decoding bech32 (BIP173) and bech32m (BIP350) addresses,
enabling ElectrumX to handle P2WPKH, P2WSH, and P2TR (Taproot) address
queries.

Changes:
- hash.py: Add Bech32 class with encode/decode for witness programs
- script.py: Add P2WPKH, P2WSH, P2TR, and generic witness_program_script helpers
- coins.py: Extend pay_to_address_script to decode bech32/bech32m addresses
- coins.py: Add BECH32_HRP for Bitcoin (bc/tb) and Litecoin (ltc/tltc)
- tests: Add comprehensive tests for bech32m and Taproot addresses

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@SomberNight

SomberNight commented Jan 14, 2026 •

Copy link
Copy Markdown
Member

Why do you want all this code for parsing addresses? I think it would be better to just rip the whole thing out. The server does not need to know about address/xpub/wif encodings. It is just legacy leftover code for old unused protocol versions. We should not extend it.

All the base58 stuff should actually be removed, and there is no point in adding bech32 I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants