How to decide on a nonce while developing a blockchain?

+1 vote

I want to create my own blockchain, I am not able to find out how to decide on the nonce size.
I am using proof of work algorithm in my blockchain which uses SHA256 algorithm.

Can you provide an optimum solution?

Apr 9, 2018 in Blockchain by anonymous
44 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+1 vote
Best answer

A nonce should be decided on the basis of the difficulty conditions you want to satisfy. Firstly, set the difficulty conditions of the blockchain and then decide on the nonce. Optimally, a nonce shouldn't be too big to take unnecessary large space. When developing your blockchain make sure you don't create impossible to satisfy conditions.
Sometimes, there may be situations where even a 64-bit value is insufficiently large to get a satisfactory hash output, so make sure there's other things that can be adjusted, re-ordered, or incremented as necessary.
You can consider using 32-bit value for your blockchain because the nonce is tried sequentially so you won't need bigger nonce value.

answered Apr 9, 2018 by Shashank
• 10,330 points

selected Aug 7, 2018 by Omkar

Related Questions In Blockchain

0 votes
1 answer

How to create a new wallet on a blockchain?

Firstly, you need to have a clear ...READ MORE

answered Apr 4, 2018 in Blockchain by Christine
• 15,790 points
42 views
0 votes
1 answer

How to make sure transactions take no fee in a private Ethereum blockchain?

In a private ethereum network you have ...READ MORE

answered Mar 26, 2018 in Blockchain by Christine
• 15,790 points

edited Mar 26, 2018 by Christine 56 views
+1 vote
1 answer

How to deploy ethereum smart contracts on a website?

There are many ways to do this: 1 ...READ MORE

answered Mar 26, 2018 in Blockchain by Johnathon
• 9,030 points
57 views
+1 vote
1 answer

How is a smart contract stored on a Blockchain?

Smart contract template and transaction events are ...READ MORE

answered Apr 4, 2018 in Blockchain by Christine
• 15,790 points
95 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
61 views
0 votes
1 answer
+3 votes
2 answers

How to run ethereumjs using Node.JS

You need to install testrpc globally on ...READ MORE

answered Mar 27, 2018 in Blockchain by ned_crew
• 1,610 points
92 views
0 votes
2 answers
0 votes
2 answers

How to set permissions within a blockchain?

There are blockchains that allow defining permissions. Hyperledger ...READ MORE

answered Aug 28, 2018 in Blockchain by Michael
26 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.