Skip to content

Add WojakCoin (WOJAK) support#456

Open
reallyshadydev wants to merge 3 commits into
bitcoin-computer:stagingfrom
reallyshadydev:feat/wojakcoin
Open

Add WojakCoin (WOJAK) support#456
reallyshadydev wants to merge 3 commits into
bitcoin-computer:stagingfrom
reallyshadydev:feat/wojakcoin

Conversation

@reallyshadydev

@reallyshadydev reallyshadydev commented Jun 14, 2026

Copy link
Copy Markdown

Summary

Adds WojakCoin (WOJAK) as a supported chain, following the existing Dogecoin and Pepecoin integration pattern. Single, additive commit — no changes to existing chains.

Changes

  • nakamotojs — add wojakcoin / wojakcoinregtest / wojakcointestnet network definitions and a WOJAK case in getNetwork(), plus NETWORKS entries (TS source and compiled src/networks.js + .d.ts).
  • node — add chain-setup/WOJAK/{mainnet,testnet,regtest}/ with .env.example and wojakcoin.conf.example.
  • Add WojakCoin to the nakamotojs and node package keywords.

Network parameters

Address prefixes, WIF and bip32 versions are taken from wojakcore chainparams:

mainnet testnet / regtest
pubKeyHash 0x49 (73, "W") 0x6f
scriptHash 0x05 0xc4
wif 0xc9 (201) 0xef
bip32 pub/priv 0x0488b21e / 0x0488ade4 0x043587cf / 0x04358394

RPC / P2P ports follow wojakcore:

network RPC P2P
mainnet 20760 20759
testnet 30760 30759
regtest 30760 18444

Node image

Chain-setup references reallyshadydev/wojakcoin-core:1.12.1, published on Docker Hub. It packages the official WojakCore release binaries (release 1.0.1.2, client version 1.12.1) with SHA256 verification; source: https://github.com/WojakCoinProj/docker-wojakcoin-core

🤖 Generated with Claude Code

@ltardivo

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. We will take a look. For now, I saw that the docker image for WojaCoin project is a placeholder. To be able to run all the integration test, we will need an actual image deployed to DockerHub. If you can continue with your contribution, this is an example for Bitcoin that you can use as inspiration:

@reallyshadydev

Copy link
Copy Markdown
Author

Okay got it! Thanks!

Adds WojakCoin as a supported chain, following the existing Dogecoin and
Pepecoin integration pattern.

- nakamotojs: add wojakcoin / wojakcoinregtest / wojakcointestnet network
  definitions and a WOJAK case in getNetwork(), plus NETWORKS entries
  (ts_src and compiled src/networks.js + .d.ts). Address prefixes, WIF and
  bip32 versions are taken from wojakcore chainparams (mainnet pubKeyHash
  0x49 "W", scriptHash 0x05, wif 0xc9; testnet/regtest 0x6f/0xc4/0xef).
- node: add chain-setup/WOJAK/{mainnet,testnet,regtest} .env.example and
  wojakcoin.conf.example. RPC/P2P ports follow wojakcore: mainnet
  20760/20759, testnet 30760/30759, regtest 30760/18444. BITCOIN_IMAGE
  uses reallyshadydev/wojakcoin-core:1.12.1, published on Docker Hub
  (source: https://github.com/WojakCoinProj/docker-wojakcoin-core).
- Add WojakCoin to the nakamotojs and node package keywords.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@reallyshadydev

Copy link
Copy Markdown
Author

done lmk if im missing anything thxs!

@ltardivo ltardivo changed the base branch from main to staging June 19, 2026 21:11
@ltardivo

Copy link
Copy Markdown
Collaborator

done lmk if im missing anything thxs!

@reallyshadydev thank you for uploading the Docker image.

It would be great if you could provide a multi-platform image instead of an amd64-only build. The examples I linked show how to define a multi-platform image, you can build with docker buildx. This would make it usable on a wider range of systems and architectures.

@reallyshadydev

Copy link
Copy Markdown
Author

Kk I will get that done today thank you so much

@reallyshadydev

Copy link
Copy Markdown
Author

@ltardivo done — the image is now multi-platform (linux/amd64 + linux/arm64), built with docker buildx.

WojakCore only publishes x86_64 release binaries upstream, so I cross-compiled the arm64 (aarch64) wojakcoind/wojakcoin-cli/wojakcoin-tx from the same release commit using WojakCore's own depends system. They're statically linked the same way as the published amd64 binaries (only libc/libstdc++ are dynamic) and are uploaded as *-aarch64 assets on the 1.0.1.2 release. The Dockerfile now selects the right binaries per TARGETARCH and verifies SHA256 for each arch.

Published to Docker Hub under the same tag the tests already use, so nothing changes on your side:

$ docker buildx imagetools inspect reallyshadydev/wojakcoin-core:1.12.1
Name:      docker.io/reallyshadydev/wojakcoin-core:1.12.1
MediaType: application/vnd.oci.image.index.v1+json
Manifests:
  ... Platform: linux/amd64
  ... Platform: linux/arm64

Both variants report the right version (v1.12.1.0), and I verified the arm64 build boots a regtest node, loads BerkeleyDB/chainparams, and computes correct txids (SHA256d) under emulation. Let me know if you'd like any additional architectures.

Point BITCOIN_IMAGE at the version-matched, multi-platform
(linux/amd64 + linux/arm64) image tag for mainnet/testnet/regtest.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@reallyshadydev

Copy link
Copy Markdown
Author

Small follow-up: I aligned everything to WojakCore's CLIENT_VERSION (1.12.1.0) so the version numbers are consistent end to end.

  • New version-matched release: WojakCoinProj/wojakcore 1.12.1.0 (linux amd64 + arm64, windows, macos)
  • Image retagged: reallyshadydev/wojakcoin-core:1.12.1.0 (multi-arch linux/amd64 + linux/arm64)
  • Updated BITCOIN_IMAGE in the WOJAK mainnet/testnet/regtest .env.example files to :1.12.1.0

Both arch variants report WojakCore Daemon version v1.12.1.0.

@ltardivo

Copy link
Copy Markdown
Collaborator

@reallyshadydev I can confirm that it is working correctly on my end as well. Thank you!

We are currently in the middle of an important release, but we will continue working on the WOJAK integration as soon as we complete the current work and have resources available. Thank you for your patience.

@reallyshadydev

Copy link
Copy Markdown
Author

You guys are amazing! Thank you!

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.

2 participants