chronologic / chronos-protocol Goto Github PK
View Code? Open in Web Editor NEWSmart contract automation on Ethereum
Home Page: https://chronologic.network
License: MIT License
Smart contract automation on Ethereum
Home Page: https://chronologic.network
License: MIT License
We define the transaction encoding to be
byte TemporalUnit [1 byte ]
address recipient [32 bytes]
uint256 value [32 bytes]
uint256 callGas [32 bytes]
uint256 gasPrice [32 bytes]
uint256 executionWindowStart [32 bytes]
uint256 executionWindowLength [32 bytes]
uint256 bounty [32 bytes]
uint256 fee [32 bytes]
bytes callData [32+bytes]
where TemporalUnit
is either 0x01
for block number based scheduling or 0x02
for unix timestamp based scheduling. Transaction parameters recipient
, value
, callGas
, gasPrice
, executionWindowStart
, executionWindowLength
, bounty
, and fee
are ABI encoded. The end of the string of bytes contains the callData.
Serialized this will look like this:
0x010000000000000000000000007ed1e469fcb3ee19c0366d829e291451be638e59000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000
00000000000000014000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000
00000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000003c0000000000000000000000000000000000000000000000000000000000000046
As I'm working on building up this repo using the bytes encoding I will use this GH issue to document possible security concerns that occur to me.
n
times. We must build timenodes which are resilient to this kind of attack.As a means of generalizing the conditional execution object to something nicely usable by other projects in the community such as state channels or Plasma contracts, or perhaps within future extensions of this project, it would be nice if callWithData
returned bytes
using returndatasize
.
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.