Skip to content

Instantly share code, notes, and snippets.

@ivanminutillo
ivanminutillo / keybase.md
Last active May 29, 2017 08:22
keybase proof

Keybase proof

I hereby claim:

  • I am ivanminutillo on github.
  • I am iminutillo (https://keybase.io/iminutillo) on keybase.
  • I have a public key ASDlBHOtkB78o2IBSu1Aq8da2ync5SOSZzaJ7mp8p5MvIQo

To claim this, I am signing this object:

@ivanminutillo
ivanminutillo / HDtoBase58
Last active September 29, 2016 10:46
Function that return the xpub or a xprv of a given HDNode, (using the bitcoinjs-lib) heavily based on the method .toBase58()
let HDtoBase58 = function (HDNode, key) {
var network = HDNode.keyPair.network
if(key === 'xpub') {
var buffer = new Buffer(78)
buffer.writeUInt32BE(network.bip32.public, 0)
buffer.writeUInt8(HDNode.depth, 4)
buffer.writeUInt32BE(HDNode.parentFingerprint, 5)
buffer.writeUInt32BE(HDNode.index, 9)
HDNode.chainCode.copy(buffer, 13)
HDNode.keyPair.getPublicKeyBuffer().copy(buffer, 45)
const AppStateRecord = Record({
// todos: List<TodoItem>([]),
// uiState: new UIState({})
news: List<CategoryItem>([]),
worklist: List<WorklistItem>([]),
smartlist:
vetrine:
});
.container {
width: 960px !important;
}
@media (min-width: 1px) {
.container {
max-width: 940px;
}
.col-lg-1,
.col-lg-2,