Data format: binary. Default file extension: '.tlsn'
Field description (size in bytes) | code in Python version |
---|---|
Header (29) | 'tlsnotary notarization file\n\n' |
/** | |
* 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. |
/* | |
- Bytecode Verification performed was compared on second iteration - | |
This file is part of the DAO. | |
The DAO 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. |
contract Creator { | |
function newContract(bytes data) public returns (address) { | |
address theNewContract; | |
uint s = data.length; | |
assembly { | |
calldatacopy(mload(0x40), 68, s) | |
theNewContract := create(callvalue, mload(0x40), s) | |
} |
contract ForkSplitterConduit { | |
//Tracks whether hard fork is effective on this chain. True means the fork is passed, false it hasn't. | |
bool forked = false; | |
//Identifies on which network fork this contract should do transfers. True transfers only on a hard-fork network, and false on the original network. | |
bool transferOnlyFork; | |
//Hard-fork DAO withdrawal contract | |
address constant C = 0xbf4ed7b27f1d666546e30d74d50d173d20bca754; | |
//In Constructor you set whether you want this contract to operate on hard fork or non-hard fork network | |
// Set to true for transfers to only complete on hard fork, and false for non-hard fork |
contract DateTime { | |
/* | |
* Credit to pipermerriam for this utility contract | |
* | |
* Date and Time utilities for ethereum contracts | |
* | |
* address: 0x1a6184cd4c5bea62b0116de7962ee7315b7bcbce | |
*/ | |
function toTimestamp(uint16 year, uint8 month, uint8 day) constant returns (uint timestamp); |
// | |
// 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)`. |
pragma solidity ^0.4.0; | |
contract EtherUnitConverter { | |
/* | |
* Ethereum Units Converter contract | |
* | |
* created by: D-Nice | |
* contract address: 0x52070b253406fc4F2bf71dBaF910F66c45828DBA | |
*/ |
// | |
// 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) | |
// |
pragma solidity ^0.4.0; | |
contract SHA1 { | |
uint8[4] shift = [3, 8, 14, 16]; | |
uint constant leftAlign = 16**56; | |
uint constant prep = 16**55; //allow extra bits as requested in spec | |
uint constant h0 = 1732584193 * prep; //0x67452301 | |
uint constant h1 = 4023233417 * prep; //0xEFCDAB89 |