Bitcoin Forum
May 09, 2024, 10:06:13 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [ANN] bip32.org: JavaScript BIP32 - Now available for Dogecoin!  (Read 3300 times)
Sarchar (OP)
Member
**
Offline Offline

Activity: 88
Merit: 10


View Profile
January 11, 2014, 07:19:19 AM
 #1

This didn't get a whole lot of traction over in the Bitcoin forums, so I wanted to add support for my favorite coin!  If this can be of use to anyone, let me know!  Below is a copy-paste of what's in the other post:

---

I want to announce http://bip32.org, a JavaScript implementation of BIP32.  This project is based on my Multisignature P2SH project.

What is BIP32?

BIP0032 is a Bitcoin Improvement Proposal that describes a method to determinsiticly generate Bitcoin (and now DOGECOIN!) addresses and private keys. It also describes some really cool features such as public key derivation which allows you to generate new addresses without needing a private key.

Why should I care?

If you're like me, then you just care because this stuff is cool.  If you're not quite like me, then you're probably only interested in this if you like and/or use Brain Wallets.  This implementation allows you to produce Extended Private Keys based only on a single passphrase, which is in turn used to produce multiple Bitcoin addresses.  You have the advantage of deriving new addresses without ever needing to type in your passphrase.

How do I use it?

Simple. Change the Network type to "Dogecoin Mainnet" in the upper-righthand corner.  Then type in a passphrase into the "Passphrase" box and tweak the value in "Keypair index".  The generated keys are shown at the bottom of the page, along with a Dogecoin address you can send coins to.  

In order to spend, copy the "Derived private key", change the button at the top of the page to "BIP32 Key" and paste in the key you just copied.  Now copy the "Key" in the Key Info section.  This is the Dogecoin private key, and it can be used to spend by using the transaction generator at http://brainwallet.org/

More advanced users can use the site to do the following things:

  • Inspect extended key information: Simply paste in the key, and the Key Info fields are shown
  • Use any key derivation path you want: Switch the "Derivation Path" to "Custom" and enter your key path. The key must being with an "m". Variables "i" and "k" can show up in the path (i cannot be last), and you can only use private key derivation (using the apostrophe symbol) if the extended key you're deriving from is a private key.
  • The public key/private key derivation method only describes whether the final Keypair Index is generated using Public Key or Private Key derivation.  If this doesn't make sense to you, ignore it and leave it set to "Public Key"

Thanks. Feedback appreciated!  Donations are welcome: DCcF9r3UqSzjQWAjDnsrw9WJvddhuuPXFM



To the devs out there:   Dogecoin doesn't have any official "version bytes" for extended private keys, so I had to come up with some.  If anyone cares to draft a BIP0032 proposal for Dogecoin, here are the constants I used:

Code:
var DOGECOIN_MAINNET_PUBLIC = 0x02facafd;
var DOGECOIN_MAINNET_PRIVATE = 0x02fac398;
var DOGECOIN_TESTNET_PUBLIC = 0x0432a9a8;
var DOGECOIN_TESTNET_PRIVATE = 0x0432a243;
1715249173
Hero Member
*
Offline Offline

Posts: 1715249173

View Profile Personal Message (Offline)

Ignore
1715249173
Reply with quote  #2

1715249173
Report to moderator
Unlike traditional banking where clients have only a few account numbers, with Bitcoin people can create an unlimited number of accounts (addresses). This can be used to easily track payments, and it improves anonymity.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
fbueller
Sr. Member
****
Offline Offline

Activity: 412
Merit: 275


View Profile
January 24, 2014, 02:36:09 AM
 #2

Fuck it, including those magic bytes in my PHP library for bip32..

Bitwasp Developer.
bitcoinmistress
Member
**
Offline Offline

Activity: 210
Merit: 10


View Profile
February 02, 2014, 03:38:32 AM
Merited by NotATether (10)
 #3

How would you initialize a new BIP32 object, using
Code:
gen_bip32 = new BIP32(xprv)
There's an error at
Code:
this.eckey.setCompressed(true);
, cant seem to find the setCompressed method anywhere...
priestc
Jr. Member
*
Offline Offline

Activity: 34
Merit: 1


View Profile
June 25, 2016, 06:58:53 PM
Merited by NotATether (1)
 #4

Personally, I think altcoins should not define a new version byte for extended private/public keys. BIP44 defines a way to derive altcoin addresses from a bitcoin extended private key, which all altcoins should support instead of making their own specification.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!