oxhainan / cloak-tee Goto Github PK
View Code? Open in Web Editor NEWA trusted evm of cloak framework
License: Apache License 2.0
A trusted evm of cloak framework
License: Apache License 2.0
Nested array, mapping, etc.
for kinds of contracts
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;
}
}
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'}}
For a transaction, we can read the history and status of the transaction through API
see #6.
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))
If the user account is not initialized before enabling, it will cause errors in subsequent operations such as reading the nonce
merge #8, build code can find a error is follow:
undefined reference to `fmt::v7::format_error::~format_error()'
support synchronization(sync to public chains) of mapping owner
Research the Proof of Publication solutions of a system which combines TEE and Blockchain
Reason: File path in json changed because of update of solc version 0.8.10
Solution: Need to use pysolcx lib to adapt to different version of solc
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.