Deriving A Public Key From Base58

Discussion in 'Technical Development' started by Jesse, Feb 7, 2016.

  1. 2017/12/15 - Decred v1.1.2 released! → Release Notes  → Downloads
  1. Jesse

    Jesse New Member

    Jan 24, 2016
    #1 Jesse, Feb 7, 2016
    Last edited: Feb 7, 2016
    Hey Decred, I use bitcoinjs-lib for my bitcion projects... and when I want to derive a public key from a base58 key I would use the following code:

    var hdNode = bitcoinjs.HDNode.fromBase58(derivedPubKey);
    exports.deriveAddress = function(index) {
    return hdNode.derive(index).keyPair.getAddress().toString();

    Now, is this possible using decreds branch of bitcore? I cant find any functions for deriving a key from a Base58 key. Thanks a ton!

    // It basically came from this:

Share This Page