bug - Code changes linked to a known issue.
feat - New feature.
hotfix - Quick fixes to the codebase.
junk - Experiments (will never be merged).
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
| Using MongoDB in golang with mgo |
The standard names for indexes in PostgreSQL are:
{tablename}_{columnname(s)}_{suffix}
where the suffix is one of the following:
pkeyfor a Primary Key constraint;keyfor a Unique constraint;exclfor an Exclusion constraint;idxfor any other kind of index;
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
| // Report on "stuck" ether in empty contracts | |
| // https://github.com/ethereum/EIPs/issues/156 | |
| // Usage: node find-stuck-ether.js [startBlock] [endBlock] > report.txt | |
| let Eth = require('ethjs'); | |
| let eth = new Eth(new Eth.HttpProvider('http://localhost:8545')); | |
| let ethutil = require('ethereumjs-util') | |
| async function main() { |
I hereby claim:
- I am alexanderattar on github.
- I am spheres (https://keybase.io/spheres) on keybase.
- I have a public key whose fingerprint is 4DA1 8F55 B579 3278 F11A 3674 7711 0903 C05C 6ECF
To claim this, I am signing this object:
System: Mac OS Sierra (10.12.6)
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go directory by:
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
| package main | |
| import ( | |
| "fmt" | |
| "github.com/ethereum/go-ethereum/crypto" | |
| "github.com/go-ethereum/common/hexutil" | |
| ) | |
| func main() { |
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
| var ethUtil = require('ethereumjs-util'); | |
| var data = 'Login'; | |
| var message = ethUtil.toBuffer(data); | |
| var msgHash = ethUtil.hashPersonalMessage(message); | |
| var privateKey = new Buffer('62debf78d596673bce224a85a90da5aecf6e781d9aadcaedd4f65586cfe670d2', "hex") | |
| var sig = ethUtil.ecsign(msgHash, privateKey); | |
| var signature = ethUtil.toBuffer(sig) |
Univerally recognised mathematical symbols and their name/meaning
≡ is defined as/is equivalent to
= is equal to
≠ is not equal to
‖...‖ size (length) of