Discover Packages
github.com/wollac/iota-crypto-demo
pkg
pow
v2
package
Version:
v0.0.0-...-b10619e
Opens a new window with list of versions in this module.
Published: Nov 17, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
errors returned by the PoW
Score returns the PoW score of msg.
The Worker performs the PoW.
New creates a new PoW Worker.
The optional numWorkers specifies how many go routines should be used to perform the PoW.
Mine performs the PoW for data.
It returns a nonce that appended to data results in a PoW score of at least targetScore.
The computation can be canceled anytime using ctx.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.