Skip to content

Add Sharecoin (SHC) asset - #3623

Open
Share-coin wants to merge 1 commit into
decred:masterfrom
Share-coin:add-sharecoin-shc
Open

Add Sharecoin (SHC) asset#3623
Share-coin wants to merge 1 commit into
decred:masterfrom
Share-coin:add-sharecoin-shc

Conversation

@Share-coin

Copy link
Copy Markdown

Summary

Adds SHC (Sharecoin) as a standard BTC-clone asset. Sharecoin is an untouched Bitcoin Core fork - only the PoW algorithm is changed (SHA-256d -> KawPow, vendored from Ravencoin's real integration). The rest of the RPC/wallet/script surface is upstream Bitcoin Core, so this integrates via the existing btc.BTCCloneWallet/btc.NewBTCClone framework, following DigiByte's dgb.go as the closest existing reference (also a recent, untouched Bitcoin Core fork).

  • dex/networks/shc/params.go - mainnet chain params, read directly from Sharecoin's own chainparams.cpp, genesis hash and minimum node version cross-checked against a live mainnet node.
  • client/asset/shc/shc.go - wallet driver (external sharecoind RPC connection).
  • server/asset/shc/shc.go - market-backend driver.
  • dex/bip-id.go - adds the shc symbol entry needed for markets.json to recognize the ticker.

BipID (8443000) is self-assigned, not an official SLIP-44 index - Sharecoin doesn't have one registered (confirmed against both this repo's own bip-id.go and the upstream satoshilabs/slips registry directly). Follows the same convention already used by other self-registered entries in this same table (aqua, kusd, fluid, qkc).

Mainnet-only for this PR.

Test plan

  • go vet and go build clean on all three new/modified packages
  • gofmt -l clean
  • Maintainer review of chain params against Sharecoin's real network

Sharecoin is an untouched Bitcoin Core fork (only the PoW algorithm is
changed, SHA-256d -> KawPow) - integrated as a standard BTC-clone via
the existing btc.BTCCloneWallet/btc.NewBTCClone framework, following
DigiByte as the closest existing reference implementation.

Chain params (dex/networks/shc/params.go) read directly from this
projects own chainparams.cpp, genesis hash and node version verified
against a live mainnet node.

Includes the dex/bip-id.go symbol entry required for markets.json to
recognize the shc ticker. BipID (8443000) is self-assigned, not an
official SLIP-44 index - Sharecoin has none registered, following the
same convention already used by other self-registered entries in that
table (aqua, kusd, fluid, qkc).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant