Welcome to the Dash Forum!

Please sign up to discuss the most innovative cryptocurrency!

DASH | Where in the code is the receiving address generate

Discussion in 'Development Tech Discussion' started by shawnshen, Aug 8, 2018.

  1. shawnshen

    shawnshen New Member

    Joined:
    Aug 8, 2018
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hello Friends,

    I'm focus on developing a digital wallet, now we want to join DASH to our wallet, with sending and receiving basic function. but know I can't locate the code function which generate the receiving address.
    I'm digging into dashpay GitHub source code, /src/wallet is the most similar I can find. but it seems not correct.
    how to solve this question
     
  2. rafarossi

    rafarossi New Member

    Joined:
    Sep 4, 2018
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi,
    am also trying to develop wallet for dash using node library. if you dont mine, please give the basic send and receive function code to test.
    i did with dashcore library. but not able to send and also not hitting error too.
     
    #2 rafarossi, Sep 6, 2018
    Last edited: Sep 6, 2018
  3. shawnshen

    shawnshen New Member

    Joined:
    Aug 8, 2018
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I set up this but not using dashcore library, dash core is pretty familiar with bitcoin, also you can find out your problem using RPC command and dash wallet console
     
  4. rafarossi

    rafarossi New Member

    Joined:
    Sep 4, 2018
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    library whatever may be. i want to see the flow and logic. where i missed like that
     
  5. FindMovers

    FindMovers New Member

    Joined:
    Sep 7, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    thanks for the information in will try.
     
  6. shawnshen

    shawnshen New Member

    Joined:
    Aug 8, 2018
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    https://github.com/dashpay/dash/blob/master/src/script/interpreter.cpp#L1119
    https://github.com/HashEngineering/.../java/org/bitcoinj/core/Transaction.java#L966

    first one comes from dash core

    second is dash lib own by dash core-developer

    you can check out from this two part.

    do you have a serialize and deserialize function?? if so you can compare you tx with RPC decoderawtx output

    dash core developer doc: https://dash-docs.github.io/en/developer-reference#opcodes

    check this above first, your question is a bit unspecific.
     
  7. rosita

    rosita Member

    Joined:
    Aug 6, 2018
    Messages:
    127
    Likes Received:
    6
    Trophy Points:
    68
    Bitcoin address contains a built-in verification code, so it's impossible to send bitcoins to an incorrect address. However, if the address is properly formed, but no one owns it (or the owner has lost wallet.dat), any coins sent to this address will be lost forever.
     

Share This Page