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,550 points
39 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,170 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,350 points
84 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
• 26,550 points
183 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,340 points
92 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
173 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,170 points
60 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,170 points
55 views