Find file History
Latest commit b948d46 Dec 6, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md Minor updates Dec 6, 2018
checksum.cpp Minor updates Dec 6, 2018

README.md

EOS Hashes

Overview

Using the EOS Crypto library.

This source code is for the Advanced EOS Series of blog posts found at; SteemIt | Medium

Deployment

Assuming you've logged into your cleos wallet and created an account for the contract code.

eosiocpp -o ./checksum.wasm ./checksum.cpp
eosiocpp -g ./checksum.abi ./checksum.cpp
cleos set contract checksum . ./checksum.wasm ./checksum.abi

Usage

cleos push action checksum hash '["test string"]' -p checksum

checksum::hash

Source: checksum.cpp

Hashes a given input string and prints to console.

Parameters

Input parameters:

  • str (string to hash)

Implied parameters:

  • account_name (name of the party signing the contract)