Author

Topic: Pywallet fork for SolidCoin and more (Read 2292 times)

jr. member
Activity: 42
Merit: 1000
August 25, 2011, 01:04:38 PM
#8

You guys should really help Bitcoin projects instead of parasiting them (mainly when it doesn't add any value...)
I'm helping Smiley See my key generator above.
Most of it shamelessly copied from my own previous analogs.
jr. member
Activity: 42
Merit: 1000
August 25, 2011, 12:26:36 PM
#6
"short_hex" function is not mine.
Bugs ?! These are features. Smiley

BTW, my fork works for me just fine, i already imported ~100 keys
 and have  coins transfered to those addresses.

And yes i pretty love my basement and hate abusive strangers.
Dunno why, but they are tend to disappear.  Grin
legendary
Activity: 1176
Merit: 1280
May Bitcoin be touched by his Noodly Appendage
August 25, 2011, 12:52:16 PM
#4
Yes,
Code:
chr(addrtype+128)
instead of
Code:
chr(addrtype)
is a bug, or rather something that goes against the de facto standards

I didn't say it doesn't work
It's just like ix/i0/solidcoin: copy the code, change a value, tada I made a fork
You guys should really help Bitcoin projects instead of parasiting them (mainly when it doesn't add any value...)
legendary
Activity: 1176
Merit: 1280
May Bitcoin be touched by his Noodly Appendage
August 25, 2011, 10:27:46 AM
#3
I don't have to try I know it works
Follow my instructions with Version = 125 instead of 0
It worked for Bitcoin, Namecoin, I0coin, Ixcoin, Devcoin, Groupcoin, and all their testnets

Basically you just:
 - created a useless function
 - reintroduced 2 bugs
Code:
$ diff old_joric_pywallet this_awesome_fork
3c3
< # pywallet_solidcoin.py 1.1
---
> # pywallet.py 1.1
6c6
< # Usage: pywallet_solidcoin.py [options]
---
> # Usage: pywallet.py [options]
30,31c30,31
< max_version = 32500
< addrtype = 125
---
> max_version = 32400
> addrtype = 0
207a208
> return hex_der_key.decode('hex')
229a231,235
> # private keys are 279 bytes long (see crypto/ec/cec_asn1.c)
> # ASN1_SIMPLE(EC_PRIVATEKEY, version, LONG),
> # ASN1_SIMPLE(EC_PRIVATEKEY, privateKey, ASN1_OCTET_STRING),
> # ASN1_EXP_OPT(EC_PRIVATEKEY, parameters, ECPKPARAMETERS, 0),
> # ASN1_EXP_OPT(EC_PRIVATEKEY, publicKey, ASN1_BIT_STRING, 1)
244a251,252
> # public keys are 65 bytes long (520 bits)
> # 0x04 + 32-byte X-coordinate + 32-byte Y-coordinate
271,279d278
< def short_hex(bytes):
< t = bytes.encode('hex_codec')
< if len(t) < 32:
< return t
< return t[0:32]+"..."+t[-32:]
<
365c364
< vchIn = chr(addrtype) + secret
---
> vchIn = chr(addrtype+128) + secret
370c369
< if vch and vch[0] == chr(addrtype):
---
> if vch and vch[0] == chr(addrtype+128):
685a685,689
> elif type == "bestblock":
> vds.write_int32(d['nVersion'])
> vds.write_compact_size(len(d['hashes']))
> for h in d['hashes']:
> vds.write(h)

legendary
Activity: 1176
Merit: 1280
May Bitcoin be touched by his Noodly Appendage
August 25, 2011, 10:06:24 AM
#2
Did you leave your basement during the last thousand years?

Pywallet already support all existing and future blockchains

Also, you forked the old Joric's pywallet, ie you forked a tool which is already outdated
Well done
jr. member
Activity: 42
Merit: 1000
August 25, 2011, 09:42:39 AM
#1
Hi all !
 

Jump to: