Data format: binary. Default file extension: '.tlsn'
Field description (size in bytes) | code in Python version |
---|---|
Header (29) | 'tlsnotary notarization file\n\n' |
/* | |
The contract is free software: you can redistribute it and/or modify | |
it under the terms of the GNU lesser General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
The contract is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
/** | |
* Base contract that all upgradeable contracts should use. | |
* | |
* Contracts implementing this interface are all called using delegatecall from | |
* a dispatcher. As a result, the _sizes and _dest variables are shared with the | |
* dispatcher contract, which allows the called contract to update these at will. | |
* | |
* _sizes is a map of function signatures to return value sizes. Due to EVM | |
* limitations, these need to be populated by the target contract, so the | |
* dispatcher knows how many bytes of data to return from called functions. |
#!/usr/bin/env bash | |
# Usage: | |
# ./solc [options] inputfile > outfile | |
# Notes: | |
# - file i/o is limited to the current directory | |
# - this works with the pyethereum solc_wrapper | |
docker run -i --rm --user $(id -u):$(id -g) -v $(pwd):/tmp --workdir /tmp ethereum/solc:0.4.18 $@ |
// | |
// Big number library in Solidity for the purpose of implementing modexp. | |
// | |
// Should have a similar API to https://github.com/ethereum/EIPs/issues/101 | |
// | |
// Internally bignumbers are represented as an uint array of 128 bit values. | |
// | |
// NOTE: it assumes usage with "small" (<256bit) exponents (such as in RSA) | |
// |
// | |
// In Solidity, a mapping is like a hashmap and works with `string` like this: | |
// mapping (string => uint) a; | |
// | |
// However it doesn't support accessors where string is a key: | |
// mapping (string => uint) public a; | |
// | |
// "Internal compiler error: Accessors for mapping with dynamically-sized keys not yet implemented." | |
// | |
// An accessor returns uint when called as `a(string)`. |
contract EVM { | |
struct VMState { | |
uint[1024] stack; | |
uint stackHeight; | |
bytes bytecode; | |
uint pc; | |
uint[] mem; | |
} | |
function step(VMState _state) internal returns (bool) | |
{ |
#!/usr/bin/env node | |
'use strict'; | |
/** | |
* Require dependencies | |
* | |
*/ | |
const program = require('commander'), | |
chalk = require("chalk"), | |
exec = require('child_process').exec, | |
pkg = require('./package.json'); |
function sleep(time, func, ...) | |
local now = os.time() | |
local thread = coroutine.create(func) | |
repeat until (os.time() - now > time) | |
coroutine.resume(thread, ...) | |
end | |
function asleep(time, func, ...) | |
coroutine.wrap(function() | |
local now = os.time() |
call NERDTreeAddKeyMap({'key': 't', 'callback': 'NERDTreeMyOpenInTab', 'scope': 'FileNode', 'override': 1 }) | |
function NERDTreeMyOpenInTab(node) | |
call a:node.open({'reuse': "all", 'where': 't'}) | |
endfunction |