Bitcoin Forum
October 16, 2018, 06:47:47 AM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: What is acting as a coinbase parameter in the breadwallet source(ios version)  (Read 574 times)
zetal
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
April 28, 2017, 06:16:35 AM
 #1

https://github.com/voisine/breadwallet
I'm using breadwallet open source (above link) and i'll make different virtual currency wallet for ios app

But I can't see coinbase parameter (The Times 03/Jan/2009 Chancellor on brink of second bailout for banks)
I'm must changed this

Tell me what is acting as a coinbase parameter in the breadwallet source(ios version)

please help me
1539672467
Hero Member
*
Offline Offline

Posts: 1539672467

View Profile Personal Message (Offline)

Ignore
1539672467
Reply with quote  #2

1539672467
Report to moderator
1539672467
Hero Member
*
Offline Offline

Posts: 1539672467

View Profile Personal Message (Offline)

Ignore
1539672467
Reply with quote  #2

1539672467
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1539672467
Hero Member
*
Offline Offline

Posts: 1539672467

View Profile Personal Message (Offline)

Ignore
1539672467
Reply with quote  #2

1539672467
Report to moderator
1539672467
Hero Member
*
Offline Offline

Posts: 1539672467

View Profile Personal Message (Offline)

Ignore
1539672467
Reply with quote  #2

1539672467
Report to moderator
1539672467
Hero Member
*
Offline Offline

Posts: 1539672467

View Profile Personal Message (Offline)

Ignore
1539672467
Reply with quote  #2

1539672467
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 1554
Merit: 1700


3F1Y9yquzvY6RWvKbw2n2zeo9V5mvBhADU


View Profile WWW
April 28, 2017, 01:20:34 PM
 #2

Breadwallet is a lite weight wallet. It does not download all blocks and transactions so it does not need to know the coinbase transaction of the genesis block and thus does not need its coinbase string. All it needs to know is the hash of the genesis block, and that is hard coded into the source code.

HCP
Hero Member
*****
Offline Offline

Activity: 756
Merit: 932

<insert witty quote here>


View Profile
April 29, 2017, 03:34:57 AM
 #3

To be precise, it is the first "hash" in the checkpoint_array[] struct defined for "main net" around line 79 in the source here:

https://github.com/voisine/breadwallet/blob/e607583477870bee2c0b4490b955c3aeb49ec7d8/BreadWallet/BRPeerManager.m

The hash is: 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
Block Height is 0.

If you're creating a wallet for a different virtual currency, you would need to adjust all of the values in this struct to match the appropriate values in the blockchain for that currency.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!