Commit d4d32e77 authored by George Hotz's avatar George Hotz

fix comments, remove console.log

parent eb409712
......@@ -58,8 +58,8 @@ contract MIPSMemory {
largePreimage[msg.sender].len = 0;
}
// TODO: input 136 bytes, as many times as you'd like
// Uses about 1M gas, 7352 gas/byte
// input 136 bytes, as many times as you'd like
// Uses about 500k gas, 3435 gas/byte
function AddLargePreimageUpdate(bytes calldata dat) public {
require(dat.length == 136, "update must be in multiples of 136");
// sha3_process_block
......@@ -83,8 +83,6 @@ contract MIPSMemory {
Lib_Keccak256.CTX memory c;
c.A = largePreimageState[msg.sender];
console.log(idat.length);
bytes memory dat = new bytes(136);
for (uint i = 0; i < idat.length; i++) {
dat[i] = idat[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment