Post
Topic
Board Announcements (Altcoins)
Re: [ANN][CLAM] CLAMs, Proof-Of-Chain, Proof-Of-Working-Stake, a.k.a. "Clamcoin"
by
Kefkius
on 05/05/2017, 23:35:13 UTC
What Wallet Import Format (WIF) does CLAM use? I'm trying to import private keys generated by pycoin - in Bitcoin WIF format - but they don't seem to be recognised.

A rescan finds keys that were imported via importwallet (entire wallet), but ignores keys imported via importprivkey (single key, Bitcoin WIF, no error reported.)

WIF prefix is 133 instead of Bitcoin's 128. I have this change for pycoin:

Code:
diff --git a/pycoin/networks/legacy_networks.py b/pycoin/networks/legacy_networks.py
index 98132a9..1770689 100644
--- a/pycoin/networks/legacy_networks.py
+++ b/pycoin/networks/legacy_networks.py
@@ -81,5 +81,7 @@ NETWORKS = (
     
     # DCR Decred testnet : tprv/tpub
     NetworkValues("Decred", "testnet", "DCRT", b'\x23\x0E', b'\x0F\x21', b'\x0E\x6C', h2b('04358397'), h2b('043587D1')),
+
+    NetworkValues("Clams", "mainnet", "CLAM",  b'\x85', b'\x89', b'\x0d', h2b("0488ADE4"), h2b("0488B21E")),
     
 )

Then do
Code:
$ ku --override-network CLAM
to output the CLAM WIF given a BTC WIF.