builtins.sol 403 B

123456789101112131415161718
  1. contract builtins {
  2. function hash_ripemd160(bytes memory bs) public pure returns (bytes20) {
  3. return ripemd160(bs);
  4. }
  5. function hash_kecccak256(bytes memory bs) public pure returns (bytes32) {
  6. return keccak256(bs);
  7. }
  8. function hash_sha256(bytes memory bs) public pure returns (bytes32) {
  9. return sha256(bs);
  10. }
  11. function mr_now() public view returns (uint64) {
  12. return block.timestamp;
  13. }
  14. }