Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #155

Merged
merged 6 commits into from
Aug 21, 2019
Merged

update #155

merged 6 commits into from
Aug 21, 2019

Conversation

thegostep
Copy link
Contributor

@thegostep thegostep commented Aug 16, 2019

Two changes:

  • OneWayGriefing.sol now uses decimals. This means there are the following 3 ratio types:
    enum RatioType { NaN, Inf, Dec }
  • Post.sol reverts if proofhash length is not 34 long
const hash = ethers.utils.sha256(ethers.utils.toUtf8Bytes('proofHash'));
const sha2_256 = "0x12"; // uint8
const bits256 = ethers.utils.hexlify(32);
const multihash = sha2_256 + bits256.substr(2) + hash.substr(2); // 0x12 + 0x20 + 0xc8a...
multihash = 0x1220c8a6fecb58509ad6757316d27f9e8c2e40ea5a0f64d215215b70310f2930ed4f

@thegostep thegostep merged commit 3434043 into master Aug 21, 2019
@thegostep thegostep deleted the steph/removeRT branch August 21, 2019 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant