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
• 27,620 points
20 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,040 points

Related Questions In Blockchain

0 votes
1 answer
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,330 points
46 views
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
• 27,620 points
50 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 ariaholic
• 7,320 points
43 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
64 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,040 points
25 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,040 points
30 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.