[−][src]Module damn_vuln_blockchain::utils
Functions
| add_block_runner | add block utility. Performs the following steps: |
| check_ownership | check ownsership utility |
| consensus | get stake from all peers in network and get the validator peer |
| get_current_time | helper function to get current timesamp |
| get_next_block_id | get next block ID utility |
| get_peer | get peer utility |
| get_rand_string | helper function for generating random strings
of length = |
| hasher | helper function for generating sha256 hashes |