Skip to main content

Module mine

Module mine 

Source

Structsยง

Output ๐Ÿ”’
RegisterMessages ๐Ÿ”’
Command-specific wording for register_virtual_master.

Constantsยง

POW_BYTES ๐Ÿ”’
Number of leading zero bytes a TIP-1022 registration hash must have.

Functionsยง

derive ๐Ÿ”’
find_salt ๐Ÿ”’
Validates master and returns the registration to submit: salt after checking its proof of work, or a freshly mined salt together with the time it took to find it.
has_pow ๐Ÿ”’
mine ๐Ÿ”’
register_virtual_master ๐Ÿ”’
Submits registerVirtualMaster(salt) from master and returns the transaction hash.
run ๐Ÿ”’