Here is a basic hash test. I am trying to reproduce the output with: http://emn178.github.io/online-tools/sha3_256.html
Is sha3-256 correct?
The output for '1' as the value input is b10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6
but I cannot reproduce this with the calculator.
contract HashTest {
bytes32 public hashOutput;
uint public valueOut;
function hash(uint _values) {
var value = _values;
valueOut = value;
hashOutput = sha3(value);
}
function refund() {
msg.sender.send(this.balance);
}
}
Also I am using "var" because that is how it was provided in the blind auction example and once I can get the hash to match I will create a more complex function using var if possible.