- Linux
- Mac OS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library SafeMath8 { | |
function mul(uint8 a, uint8 b) internal pure returns (uint8) { | |
if (a == 0) { | |
return 0; | |
} | |
uint8 c = a * b; | |
assert(c / a == b); | |
return c; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract MultidimensionalToken { | |
string public name; | |
string public symbol; | |
mapping (uint256 => string) internal tokenNames; | |
mapping (uint256 => string) internal tokenSymbols; | |
mapping (uint256 => uint8) internal tokenDecimals; | |
mapping (uint256 => mapping (address => uint)) internal balances; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.11; | |
contract StringToLower { | |
function _toLower(string str) internal returns (string) { | |
bytes memory bStr = bytes(str); | |
bytes memory bLower = new bytes(bStr.length); | |
for (uint i = 0; i < bStr.length; i++) { | |
// Uppercase character... | |
if ((bStr[i] >= 65) && (bStr[i] <= 90)) { | |
// So we add 32 to make it lowercase |
Your blockchain must have all of the following properties:
- It's a merkle tree, or a construct with equivalent properties.
- There is no single point of trust or authority; nodes are operated by different parties.
- Multiple 'forks' of the blockchain may exist - that is, nodes may disagree on what the full sequence of blocks looks like.
- In the case of such a fork, there must exist a deterministic consensus algorithm of some sort to decide what the "real" blockchain looks like (ie. which fork is "correct").
- The consensus algorithm must be executable with only the information contained in the blockchain (or its forks), and no external input (eg. no decisionmaking from a centralized 'trust node').
If your blockchain is missing any of the above properties, it is not a blockchain, it is just a ledger.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
243F6A8885A308D313198A2E03707344A4093822299F31D0082EFA98EC4E6C89 | |
452821E638D01377BE5466CF34E90C6CC0AC29B7C97C50DD3F84D5B5B5470917 | |
9216D5D98979FB1BD1310BA698DFB5AC2FFD72DBD01ADFB7B8E1AFED6A267E96 | |
BA7C9045F12C7F9924A19947B3916CF70801F2E2858EFC16636920D871574E69 | |
A458FEA3F4933D7E0D95748F728EB658718BCD5882154AEE7B54A41DC25A59B5 | |
9C30D5392AF26013C5D1B023286085F0CA417918B8DB38EF8E79DCB0603A180E | |
6C9E0E8BB01E8A3ED71577C1BD314B2778AF2FDA55605C60E65525F3AA55AB94 | |
5748986263E8144055CA396A2AAB10B6B4CC5C341141E8CEA15486AF7C72E993 | |
B3EE1411636FBC2A2BA9C55D741831F6CE5C3E169B87931EAFD6BA336C24CF5C | |
7A325381289586773B8F48986B4BB9AFC4BFE81B6628219361D809CCFB21A991 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 443 ssl; | |
server_name xxx.xx.io | |
ssl on; | |
ssl_certificate /etc/asterisk/certs/xxx.io.pem; | |
ssl_certificate_key /etc/asterisk/certs/xxx.io.key; | |
ssl_session_timeout 5m; |
NewerOlder