In your command-line run the following commands:
brew doctor
brew update
In your command-line run the following commands:
brew doctor
brew update
var net = require('net'); | |
var Web3 = require('./src/index.js'); var web3 = new Web3(new Web3.providers.IpcProvider('/Users/frozeman/Library/Ethereum/geth.ipc', net)); | |
var shh = web3.shh; | |
var identities = []; | |
var subscription = null; | |
Promise.all([ | |
shh.newSymKey().then((id) => {identities.push(id);}), | |
shh.newKeyPair().then((id) => {identities.push(id);}) |
This guide is intended to provide resources for those wanting to help test Metropolis EIPs. The CPP team is currently in the middle of a migration from EthDocs to a documentation site that is more dedicated to CPP-Ethereum so the documentation on creating tests for Ethereum using testeth is scattered. Everything you will need to get started should be compiled below.
import collections | |
import random | |
import json | |
import hashlib | |
def hexhash(x): | |
return '0x' + hashlib.sha224(str(x)).hexdigest()[:6] | |
var fs = require('fs'); | |
var http = require('http'), | |
httpProxy = require('http-proxy'); | |
httpProxy.createProxyServer( | |
{ | |
target:'http://localhost:8081', | |
ssl: { | |
key: fs.readFileSync('key.pem', 'utf8'), | |
cert: fs.readFileSync('cert.pem', 'utf8'), |
To install rustup in different directory (i.e. /opt):
curl https://sh.rustup.rs -sSf | sudo RUSTUP_HOME=/opt/rustup sh -s -- -y
// file: index.js | |
var _ = require("lodash"); | |
var express = require("express"); | |
var bodyParser = require("body-parser"); | |
var jwt = require('jsonwebtoken'); | |
var passport = require("passport"); | |
var passportJWT = require("passport-jwt"); |
#!/bin/bash | |
# Copyright 2017 Théo Chamley | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of | |
# this software and associated documentation files (the "Software"), to deal in the Software | |
# without restriction, including without limitation the rights to use, copy, modify, merge, | |
# publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons | |
# to whom the Software is furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in all copies or |
defmodule URL do | |
def to_query(input, namespace) do | |
Enum.map(input, fn({key, value}) -> parse("#{namespace}[#{key}]",value)end) | |
|> Enum.join("&") | |
end | |
def to_query(input) do | |
Enum.map(input, fn({key, value}) -> parse(key,value) end) | |
|> Enum.join("&") | |
end |