Coder Social home page Coder Social logo

cloak-tee's People

Contributors

achamayou avatar eddyashton avatar microsoft-github-operations[bot] avatar microsoftopensource avatar plytools avatar silence-zyx avatar svenfeng avatar thempp66 avatar yingjun-wu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cloak-tee's Issues

support variable owner

the owner support tee only, variable owner will be useful in MPT, you can see the example below.

pragma cloak >=0.2.0;

contract Sum {
    uint256@tee res;
    final address p1 = 0x58c453B66f57a37211881783c628B9Bc0FDe5605;
    final address p2 = 0x13d202872aEcB7adCEF304A4689deacb6E939B79;

    function sum(uint256@p1 _a, uint256@p2 _b) public {
        res = _a + _b;
    }
}

Raise exception when launching cloak server by designating the same address

ValueError: {'message': 'VM Exception while processing transaction: revert TEE has already register', 'code': -32000, 'data': {'0x079016619206bd41d22cec59e762ef465fe69f117275f474cbb262e5f01e3eb2': {'error': 'revert', 'program_counter': 691, 'return': '0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000185445452068617320616c72656164792072656769737465720000000000000000', 'reason': 'TEE has already register'}, 'stack': 'c: VM Exception while processing transaction: revert TEE has already register\n at Function.c.fromResults (/usr/local/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:4:192416)\n at w.processBlock (/usr/local/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:42:50915)\n at runMicrotasks ()\n at processTicksAndRejections (internal/process/task_queues.js:95:5)', 'name': 'c'}}

EVM using uint type when encoding will report an error

evm will select uint256 by default when processing uint type data, resulting in inaccurate function entry addresses before and after encoding.

for example,
The current encoding function entry method is

[bytes4] sha3(function(uint))

Should be modified to

[bytes4] sha3(function(uint256))

User account initialization

If the user account is not initialized before enabling, it will cause errors in subsequent operations such as reading the nonce

refactor tee code structure

some util functions (e.g. run_in_evm) has been implemented in evm_for_ccf.cpp, which will cause some coding problems, specially in reusability aspect, so we need to refactor that codes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.