Skip to content

Instantly share code, notes, and snippets.

View giancarloGiuffra's full-sized avatar

Giancarlo Miguel Giuffra Moncayo giancarloGiuffra

View GitHub Profile
# the compiler: gcc for C program, define as g++ for C++
CC = g++
INCLUDEDIR = /usr/local/include
LIBDIR = /usr/local/helib_pack/lib
LIBS = -lntl -lhelib -lgmp -lboost_serialization
# compiler flags:
CFLAGS = -g -Wall -std=c++14 -I $(INCLUDEDIR)
TARGETS = test-serialization
DEPS = serialization.hpp
@giancarloGiuffra
giancarloGiuffra / abi.js
Created August 19, 2018 20:09
how to transfer ERC20 tokens
var abi = [
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}
@giancarloGiuffra
giancarloGiuffra / challenge.js
Last active June 17, 2018 17:33
purse.io challenge
var bitcoin = require('bitcoinjs-lib');
var OPS = require('bitcoin-ops');
function rng () { return Buffer.from('19381832822924850946237409286670'); }
let testnet = bitcoin.networks.testnet;
let keyPair = bitcoin.ECPair.makeRandom({ network: testnet, rng: rng });
let address = keyPair.getAddress();
console.log(address);
Verifying that "giancarlogiuffra.id" is my Blockstack ID.