-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement fractional difficulty #3
Comments
The project currently has the file |
I don't particularly like CryptoCoinSwift's implementation, since it relies on C functions to do many operations. I'd only implement it if Swift 3 really has performance issues with those operations. |
glancing through feeds |
Personally I'm a bit lost currently on how we'll implement the difficulty. I'm tempted to just go with hashcash's fixed number of bits for now. |
you can try with NSDecimalNumber, it has 128 bit precision, and can store number up to 512 bit |
@slk333 We need 256 bits for SHA256 |
Swift can't deal with 256 bit UInts natively, so figure out how to implement this.
Without fractional difficulty, difficulty can only double or halve, which is inconvenient given difficulty will be adjusted hourly.
The text was updated successfully, but these errors were encountered: