Generating cryptocoin address

0 votes

I'm using this https://github.com/lian/bitcoin-ruby for my project. I've got Bitcoin to work perfectly, and since the Bitcoin gem did not have native support for Dogecoin I had to self-implement it.

The problem seems to be in this particular line. (corresponding to the format of the crypto address)

:address_version => "30"


:address_version = PUBKEY_ADDRESS in base58.h 

base58.h

PUBKEY_ADRESS contains value 30.

Specifying this particular number will give address beginning with letter 'L' (litecoin address), where Dogecoin requires 'D'.

Any idea on the cause behind this result?

Aug 23, 2018 in Blockchain by digger
• 26,720 points
156 views

1 answer to this question.

0 votes
30 in decimal will give you a address begins with a letter D

30 in hexadecimal (48 in decimal) will give you a address begins with letter L

I think that bitcoin-ruby first changes PUBKEY_ADDRESS from hexa to decimal so :address_versionshould be 1E (30 in decimal)
answered Aug 23, 2018 by slayer
• 29,310 points

Related Questions In Blockchain

0 votes
1 answer

Web3j v3.3.1 : Error while generating compiled solidity smart contracts which returns array of struct

Solidity does not support returning structs in ...READ MORE

answered Jun 19, 2018 in Blockchain by aryya
• 7,440 points
804 views
0 votes
1 answer

How can I retrieve to and from address in transaction directly from blockchain?

The spending conditions, i.e., who is able ...READ MORE

answered Jul 11, 2018 in Blockchain by Shashank
• 10,400 points
440 views
0 votes
1 answer
0 votes
1 answer

How to extract h160 address of bitcoin blockchain?

You can extract the data using the ...READ MORE

answered Jul 16, 2018 in Blockchain by digger
• 26,720 points
1,469 views
0 votes
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,440 points
608 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
922 views
0 votes
1 answer
0 votes
1 answer

"set RNG(RandomUtils.Random) before generating random numbers" error

Use the following code, you just have ...READ MORE

answered Jul 5, 2018 in Blockchain by slayer
• 29,310 points
338 views
0 votes
1 answer

How are unique public address generated in bitcoin?

In brief, the public addresses are generated ...READ MORE

answered Jul 16, 2018 in Blockchain by slayer
• 29,310 points
251 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP