Bitcoin Forum
May 22, 2024, 09:26:33 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: A basic question about addresses  (Read 909 times)
Bungeebones (OP)
Full Member
***
Offline Offline

Activity: 178
Merit: 100



View Profile
August 04, 2014, 02:40:56 PM
 #1

Could an address work as either a testnet address or as  a bitcoin address? Can they be interchanged just by changing the first character from a 1 to an N for example? I'm thinking that since they are always the same first character that the address must be the rest of it and the first character is just appended on to it? Right or wrong?

Thanks
jl2012
Legendary
*
Offline Offline

Activity: 1792
Merit: 1097


View Profile
August 04, 2014, 03:38:02 PM
 #2

Could an address work as either a testnet address or as  a bitcoin address? Can they be interchanged just by changing the first character from a 1 to an N for example? I'm thinking that since they are always the same first character that the address must be the rest of it and the first character is just appended on to it? Right or wrong?

Thanks

No

https://en.bitcoin.it/wiki/Base58Check_encoding

Donation address: 374iXxS4BuqFHsEwwxUuH3nvJ69Y7Hqur3 (Bitcoin ONLY)
LRDGENPLYrcTRssGoZrsCT1hngaH3BVkM4 (LTC)
PGP: D3CC 1772 8600 5BB8 FF67 3294 C524 2A1A B393 6517
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
August 04, 2014, 04:29:10 PM
Last edit: August 05, 2014, 03:52:07 PM by DeathAndTaxes
 #3

As jl2012 said the answer is no.  The same  keypair can be used on both networks but they will produce different addresses.

Code:
key:             b7b0dcb8cdca3f9a6377cb0f1f5942cec1b3c0f4d6d03dabceced635209aefe1
pubKey:          03e0c6de6ab1c298125368df9973cab1811620cf8349834308acce82dd5ac26419
pubKeyHash:      379800c38269d88e850721399a90e81e91d9eea9
mainnet address: 164xFuP2uhrJX8eVP77k6rrDfboNo21hRR
testnet address: mkauYxU1ijHZJF876g67vn4YXbQ5kASPut

For obvious reasons please nobody use this example key for anything.
Bungeebones (OP)
Full Member
***
Offline Offline

Activity: 178
Merit: 100



View Profile
August 05, 2014, 03:35:41 PM
 #4

Thanks
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!