Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bstash

Pages: [1]
1
Off-topic / Bitcoin Stash (BSH) Merged Mining Guide for SHA256 Coin Miners
« on: December 01, 2018, 11:43:15 PM »
Bitcoin Stash Merged Mining Guide
Overview
Bitcoin Stash is a merge mineable cryptocurrency that utilizes SHA256 for its mining algorithm. This means that it can be merge mined with other SHA256 coins like Bitcoin an Bitcoin Cash. Merge mining is a process where a miner is able to mine multiple cryptocurrencies at the same time. All that is required for a miner is to add 48 bytes of data to the coinbase of the parent block.
We will have a private testnet testing phase beginning at 11/4/18. On 11/4/18, miners will have access to Bitcoin Stash binaries (with only testnet capabilities available). They will be able to merge mine on the testnet by following the below instructions. A sample code implementation is provided in bitcoinstash_mergemining_sample.py.
Instructions
Follow the step belows to merge mine on Bitcoin Stash. Sample code implementation is provided in bitcoinstash_mergemining_sample.py.
1.Use RPC call getnewaddress() to get a new address for Bitcoin Stash (this will only need to be done once)
2.Call RPC command createauxblock() with address obtained from step 1). This will make a Bitcoin Stash block with a coinbase payment to the address.
3.From the JSON output of createauxblock(), use 'auxcoinbasedata' to obtain the data that must be inserted into the script sig of the coinbase in the parent block. To understand how this data is constructed, read the 'Constructing the Auxpow Coinbase Data' section below.
4.Start solving the parent block until you meet the encoded target threshold specified by the 'bits' field in the JSON output of createauxblock().
5.If the parent block meets the target as defined step 4, construct the auxpow header data. Submit the auxpow header data using RPC command submitauxblock() with first argument being 'hash' from output of createauxblock in step 2), the second argument is the hex string of the auxpow data. Instructions on constructing the auxpow data is shown below. If a valid auxpow header data was submitted, the merge mined block will be submitted on the Bitcoin Stash network.
Constructing the Auxpow Header Data
Auxpow header data is extra data attached to the BitcoinStash block header that links the block to the the parent block. It is composed from the below data.
Serialized coinbase transaction +
Hash of the parent block (32 bytes) +
Merkle branches (can be 0x00, if only transaction in block) +
Index in the merkle branch (4 bytes, must always be \x00\x00\x00\x00) +
Chain Merkle branch (4 bytes, can be 0x00, if no other child chain) +
Index in the chain merkle branch (4 bytes, can be \x00\x00\x00\x00 if no other child chain) +
Serialized parent block header
Constructing the Auxpow Coinbase Data
The auxpow coinbase data is data inserted into the parent block's coinbase to link the parent block to the BitcoinStash block. It is composed from the below data.
Merge Mining Header (4 bytes, must always be \xFA\xBE\x6D\x6D ) +
Root hash of Merkle Trie containing child chian (32 bytes, set to hash of Bitcoin Stash block if no other child chain) +
Merkle Trie Size, (4 bytes, set to 1 if no other child chain) +
Nonce, the nonce and the chain id of the child chain determines a pseudo random slot in the chain merkle trie (4 bytes, can be set to anything if no other child chain) +
Parent Chain Id (4 bytes, set to 210 if Bitcoin is the parent block 209 if Bitcoin Cash is parent block)
Stand Alone Mining
Stand alone mining (mining Bitcoin Stash only without using its merge mining capabilities), will also be possible through the standard RPC call getblocktemplate.
Merged Mining GitHub Link
Bitcoin Stash Wallet Binary Files (Windows & Linux)
Bitcoin Stash Website
Bitcoin Stash Forum

Bitcoin Stash Explorer
http://explorer.bstash.org

3
Officially Hard Forked!

As of approximately 7:30 PM GMT on November 15th, 2018, we are pleased to announce that Bitcoin Stash has officially hard forked from Bitcoin Cash! With each passing day, as the true value of cryptocurrencies become better understood, the threat of 51% attacks on the Bitcoin Cash network becomes more imminent. Corporate and private interests, combined with greed and incompetence has corrupted the security of the chain. Bitcoin Stash will provide the solution through merged mining with both Bitcoin and Bitcoin Cash. Additionally, Bitcoin Stash will offer replay protection to protect our chain against replay attacks.

Bitcoin Cash has imploded into a hash war between Craig Faketoshi Wright’s Bitcoin SV and Bitmain’s Bitcoin ABC. Faketoshi plans on executing a 51% hash rate attack on the ABC chain, mining empty blocks and wreaking havoc. We are not certain when or how long this attack may occur, but we do believe it is imminent. Bitcoin Stash stands against the block size increases implemented by SV and the fraudulent activities of Wright. Additionally, we believe that the leadership of Bitmain, Roger Ver, and Bitcoin ABC can no longer be relied upon, as they were the ones who welcomed Faketoshi with open arms. While Bitcoin SV was plotting their takeover, the leaders of Bitcoin ABC were busy going to boat parties with Faketoshi and developing useless ideas like tokenization platforms and instant transactions.

At this point, it seems like almost no one knows what will be the result of the Bitcoin SV and Bitcoin ABC drama. No matter what happens with either of those, Bitcoin Stash will have a purpose since our merged mining will provide more incentive for miners and increase security and decentralization with a higher hash rate. Moreover, Bitcoin Stash should not encounter double-spending issues, as we will not be supporting 0-confirmation transactions. As a result, Bitcoin Stash is here to stay and will continue to be useful in the future with or without Bitcoin Cash.

Bitcoin Cash holders prior to our fork will be able to obtain an equivalent amount of Bitcoin Stash if they hold the private keys to their BCH wallet. Future exchange support will also be a continual focus for our team moving forward. Please visit our website https://bstash.org to find further instructions on claiming or mining Bitcoin Stash. Our source code is available at https://github.com/bstash/bitcoinstash, with binaries to follow. Also, please join our Telegram, follow our Twitter (@BitcoinStash), and continue checking our website for updates! Feel free to reach out to any of our official accounts with any questions. Happy Fork Day!

Stash team

4
We have a big update coming in about a week! can anyone guess what that is?  8)

5
ATTENTION


We are looking for miners/mining pools to test our merged mining with Bitcoin and Bitcoin Cash.
If you're interested in, please send us an email: bstash@protonmail.com

6



Feel free to join our Telegram channel! @bstash


or visit our website: bstash.org

7

LAUNCHED!



Download Bitcoin Stash wallet binary files from our GitHub page (Windows & Linux):

https://github.com/bstash/BitcoinStash/releases



Instruction:

Uncompress the downloaded zip file (.tar.gz file for Linux) and double-click on bitcoin-qt file under the bin folder to run the Bitcoin Stash GUI Wallet.



Bitcoin Stash Explorer 🚀

http://explorer.bstash.org/



Bitcoin Stash Merged Mining Guide:

https://github.com/bstash/BitcoinStash-MergeMining-Guide



Official Website: https://bstash.org


Forum: https://forum.bstash.org


Twitter: https://twitter.com/bitcoinstash

Medium: https://medium.com/@bitcoinstash


-----------------------------------------------------------------------------


Bitcoin Stash


The Bitcoin Stash team is comprised of a group of former Bitcoin Cash developers and community members that have become dismayed at the current outlook of BCH. We are sure that you are aware, but a multitude of factors show that there is disaster on the horizon for Bitcoin Cash. Bitcoin ABC is proposing a contentious hard fork for no reason, Craig “Faketoshi” Wright is moving ahead to fork his own coin (Bitcoin SV) out of self interest, and Bitmain has revealed an extremely large BCH holding which they intend to rid themselves of in their now controversial IPO.


As we see it, a price and hashrate collapse of the chain is inevitable. We have decided that we must take action now, to rid ourselves forever from the bad actors that plague this chain. We are planning to hard fork from Bitcoin Cash on November 15th. With the hard fork, we will not be increasing the maximum block size or following the tokenization/ICO platform roadmap of Bitcoin ABC. However, Bitcoin Stash will be implementing replay protection and continue using the SHA-256 mining algorithm. Additionally, Bitcoin Stash will incorporate merged mining with Bitcoin and Bitcoin Cash.


With merged mining, Bitcoin Stash will solve the security issues that currently hamper Bitcoin Cash. As a minority chain, Bitcoin Cash is struggling to obtain substantial hash rate, and this has only been made worse following its recent decline in price. As of 9/25/18, the hash rate of Bitcoin Cash only totals about 6% of that of Bitcoin. The Bitcoin Cash hash rate has been continuously declining ever since a peak of roughly 15% of Bitcoin’s back in May of 2018, and we do not see this situation improving. Merged mining will lead to Bitcoin Stash obtaining a much needed higher hash rate since the chain will consist of Bitcoin, Bitcoin Cash, and Bitcoin Stash miners.


As a result, there will be three benefits that will be immediately realized. First, Bitcoin Stash will be less susceptible to a 51% attack which has recently plagued other chains such as Bitcoin Gold and Verge. Second, a single entity such as Jihan Wu’s Bitmain or Craig Wright’s CoinGeek will have a difficult time forcing any consensus breaking changes as they now must muster a much higher hash rate to do so. And thirdly, merged mining will also increase security on Bitcoin since miners will see greater profitability and will no longer have to choose between mining one chain and missing out on the other. Because of this, Bitcoin Stash will not only be a more secure and decentralized version of Bitcoin Cash, but it will also benefit the current miners of Bitcoin and Bitcoin Cash.


After the fork, Bitcoin Cash holders will be able to obtain an equivalent amount of our coins if they hold the private keys to their wallet.



Source: Inside Bitcoins
https://insidebitcoins.com/news/bitcoin-stash-planning-hard-fork-from-bitcoin-cash/179276




Merged Mining


Bitcoin Stash is a merge mineable cryptocurrency that utilizes SHA256 for its mining algorithm. This means that it can be merge mined with other SHA256 coins like Bitcoin an Bitcoin Cash. Merge mining is a process where a miner is able to mine multiple cryptocurrencies at the same time. All that is required for a miner is to add 48 bytes of data to the coinbase of the parent block.


https://github.com/bstash/BitcoinStash-MergeMining-Guide



Replay Protection


Bitcoin Stash will be implementing replay protection to keep our transactions safe post-fork.



Source Code


https://github.com/bstash/bitcoinstash

Pages: [1]