Bitcoin Forum
March 29, 2024, 02:59:22 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Development question about (address, p2pkh, p2sh, hd_secret, Segwit)  (Read 397 times)
dertin (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
January 17, 2017, 01:36:35 AM
 #1

I am developing a framework for development of Altcoin in Go.

see https://github.com/coin-network

I have been able to understand the basics of the elliptical curve to generate the public and private key and convert it to Bitcoin address format.

But I do not quite understand that it should be variable to set up a new unique address for an Altcoin.

My address.go program now has the following terminal output.

$ go run address.go
Code:
Private Key
104930057806725380329673246667213883341199392498193999899949555094217870343340

 Public Key
30281493937534716029482202294378086430575585216909050331938533692170322122530
73645510590725429585871939537348802644260091059911504300012495206619630132784

 New Address
115gcWR5oHFsShhxnPBnsT7J6nJahuBvPe

But the idea is to know what parameters I should send to my program, to generate different addresses or groups of public and private keys.

Here I saw something ... and they mention the BIPs 32, 38, 39, 44, ...
https://github.com/libbitcoin/libbitcoin/wiki/Altcoin-Version-Mappings

I can not understand that it is version_p2pkh, version_p2sh, version_hd_secret, Segwit, or referred to with a "multiple keypair chains, derived from a single root" Huh

My native language is Spanish, and it is not easy for me to understand BIPs in English.
1711724362
Hero Member
*
Offline Offline

Posts: 1711724362

View Profile Personal Message (Offline)

Ignore
1711724362
Reply with quote  #2

1711724362
Report to moderator
1711724362
Hero Member
*
Offline Offline

Posts: 1711724362

View Profile Personal Message (Offline)

Ignore
1711724362
Reply with quote  #2

1711724362
Report to moderator
No Gods or Kings. Only Bitcoin
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1711724362
Hero Member
*
Offline Offline

Posts: 1711724362

View Profile Personal Message (Offline)

Ignore
1711724362
Reply with quote  #2

1711724362
Report to moderator
achow101
Staff
Legendary
*
Offline Offline

Activity: 3346
Merit: 6473


Just writing some code


View Profile WWW
January 17, 2017, 02:33:35 AM
 #2

Addresses use the Base58 Check Encoding: https://en.bitcoin.it/wiki/Base58Check_encoding. Part of this is a version byte that is prepended to the hash160 of the public key. That version byte is what determines the first character of an address, and is what is used to differentiate various address types.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!