A concise guide to the development workflow. For detailed documentation, see CLAUDE-CODE-WORKFLOW.md.
┌─────────────────────────────────────────────────────────────────────────────┐
A concise guide to the development workflow. For detailed documentation, see CLAUDE-CODE-WORKFLOW.md.
┌─────────────────────────────────────────────────────────────────────────────┐
| // SPDX-License-Identifier: MIT | |
| // OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol) | |
| pragma solidity ^0.8.0; | |
| import "./IAccessControl.sol"; | |
| import "../utils/Context.sol"; | |
| import "../utils/Strings.sol"; | |
| import "../utils/introspection/ERC165.sol"; |
| ref: refs/heads/develop |
| ref: refs/heads/develop |
| ref: refs/heads/develop |
| ref: refs/heads/develop |
Using the contract involves using the EcoHelpers contract to prepare some data off-chain in order to use the EcoSecrets contract to store the secret and reveal it as described in the exercise.
First we want one of our participants to be our pre-signing party and to deploy the EcoHelpers contract in Remix to prepare our data for the main contract. Now follow these steps...
We start with a random, disposable Keccak256 symmetric KEY: f8f8a2f43c8376ccb0871305060d7b27b0554d2cc72bccf41b2705608452f315
We use the EcoHelpers contract function stringToBytes function to turn our keccak256 KEY to bytes data:
0x66386638613266343363383337366363623038373133303530363064376232376230353534643263633732626363663431623237303536303834353266333135
Using the contract involves using the EcoHelpers contract to prepare some data off-chain in order to use the EcoSecrets contract to store the secret and reveal it as described in the exercise.
First we want one of our participants to be our pre-signing party and to deploy the EcoHelpers contract in Remix to prepare our data for the main contract. Now follow these steps...
We start with a random, disposable Keccak256 symmetric KEY: f8f8a2f43c8376ccb0871305060d7b27b0554d2cc72bccf41b2705608452f315
We use the EcoHelpers contract function stringToBytes function to turn our keccak256 KEY to bytes data:
0x66386638613266343363383337366363623038373133303530363064376232376230353534643263633732626363663431623237303536303834353266333135
Using the contract involves using the EcoHelpers contract to prepare some data off-chain in order to use the EcoSecrets contract to store the secret and reveal it as described in the exercise.
First we want one of our participants to be our pre-signing party and to deploy the EcoHelpers contract in Remix to prepare our data for the main contract. Now follow these steps...
We start with a random, disposable Keccak256 symmetric KEY: f8f8a2f43c8376ccb0871305060d7b27b0554d2cc72bccf41b2705608452f315
We use the EcoHelpers contract function stringToBytes function to turn our keccak256 KEY to bytes data: 0x66386638613266343363383337366363623038373133303530363064376232376230353534643263633732626363663431623237303536303834353266333135