Commands | Description |
---|---|
$ cd <directory> |
change directory |
$ ls |
list items of current directory |
$ clear |
clean terminal window |
$ pwd |
show working directory |
$ touch <file-name> |
create new file |
$ cp <file-name> <Directory>/<file-name> |
copy file to a directory |
$ mv |
move file to a directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.7; | |
contract Hashit{ | |
string public password; | |
bytes32 public hashedpassword; | |
function hashItforMe(string memory _password) public{ | |
password = _password; | |
hashedpassword = sha256(bytes(_password)); | |
} | |
} |
pragma solidity ^0.5.7;
contract Randomness{
mapping(uint => ticket) public tickets;
struct ticket{
uint id;
address buyer;
bytes32 hashed;