Following this webpage and this one (beware, some steps are deprecated), I’ve been able to create my own ethereum private blockchain. I document it here for those who would like to do the same.
Create a new user, group and home directory, for example privateeth1 and install geth for this user
sudo su
useradd privateeth1
groupadd privateeth
mkdir /home/privateeth1
chown privateeth1:privateeth /home/privateeth1
apt-get install -y build-essential libgmp3-dev golang
sudo su privateeth1
mkdir /home/privateeth1/ethereum
cd /home/privateeth1/ethereum
git clone https://github.com/ethereum/go-ethereum
cd go-ethereum/
make geth
create the genesis block and initialise the blockchain
cd /home/privateeth1/ethereum/
cat > genesisBlock.json
{
“nonce”: “0x0000000000000042”,
“mixhash”: “0x0000000000000000000000000000000000000000000000000000000000000000”,
“difficulty”: “0x4000”,
“alloc”: {},
“coinbase”: “0x0000000000000000000000000000000000000000”,
“timestamp”: “0x00”,
“parentHash”: “0x0000000000000000000000000000000000000000000000000000000000000000”,
“extraData”: “Custom Ethereum Genesis Block”,
“gasLimit”: “0xffffffff”
}
^C
go-ethereum/build/bin/geth init genesisBlock.json
start up geth in a customised port and network Id
go-ethereum/build/bin/geth –networkid 9999
open a new terminal and attach a geth console
go-ethereum/build/bin/geth attach
from within the geth console create an account and write down the address. We will initialise the amount of Ether to this account.
> personal.newAccount()
Edit the genesis block to add your account’s initial balance, afterwards initialise the blockchain again
cd /home/privateeth1/ethereum/
cat > genesisBlock.json
{
“nonce”: “0x0000000000000042”,
“mixhash”: “0x0000000000000000000000000000000000000000000000000000000000000000”,
“difficulty”: “0x4000”,
“alloc”: {“write here the account address that you received from personal.newAccount(), for example 0x55a0040fd8ac1177d598e8880cee248c7c9ac1b9”:
{ “balance”:”10000000000000000000000″ }
},
“coinbase”: “0x0000000000000000000000000000000000000000”,
“timestamp”: “0x00”,
“parentHash”: “0x0000000000000000000000000000000000000000000000000000000000000000”,
“extraData”: “Custom Ethereum Genesis Block”,
“gasLimit”: “0xffffffff”
}
^C
go-ethereum/build/bin/geth init genesisBlock.json
Now you can run geth again and you will see the balance in your account to have been updated.
go-ethereum/build/bin/geth –networkid 1234 console
> web3.fromWei(eth.getBalance(eth.coinbase),”ether”)
next step is to install geth on another computer and have them communicate. I leave that for the next post 🙂
One of the concerns I have in this new world of cryptocurrency wallets is that I’ve never had a file that was worth thousands of Euros! Until now the worst thing that could happen (twice) was that I could lose all my photos…
The immediate solution I imagine to make sure I don’t lose my wallet is to make many copies of it and spread them around all my computers, gdrive and dropbox. But what if some hacker gains access to the file? He could somehow crack my password and gain access to my ETH stash!
The solution I have found so far is to keep several encrypted copies of my wallet. After doing some research I like GPG (the Gnu version of PGP) which is open source and has been around for a long time. This way, if the hacker gained access to this file he would first need to crack the encryption and the Ethereum password having 2 strong layers of complexity.
I’ve installed it so far in my Windows and Mac computers and it’s pretty straight forward.








Thanks to this I can now export my Ethereum wallet. Encrypt it and save a copy in my google drive, which I can download to any computer on which I have my gpg private key in case I need to send some ETH.
I’ve taken a leap of faith into the password management world. Until a month ago I used to be the living example of how not to manage your passwords… Kevin Mitnick would not have been proud..
I’ve started using keepass, a free tool which works under windows (and Linux and Mac with mongo) and provides one place where to store all passwords. Keepass uses AES encryption to keep passwords safe. To share my passwords amongst my computers I upload my keepass file to google drive, since it’s encrypted I’m not (too) worried that someone may get all my passwords (ok, I am still a bit worried, but I guess using the same password for every service is a worse alternative, or keeping them written down in my notebook..).
I have as a pending task to investigate lastpass, safe-in-cloud and 1password (are we really sending our passwords to the cloud? one leap of faith at a time for me… ) and find a tool that works securely in ios. (Update: Keepass has Minikeepass for ios, I’ve installed it and it works. It even can get a copy of the passwords file via dropbox)

By following this tutorial I’ve understood how to create a “Distributed Autonomous Organisation” (DAO). This particular example is a democratic organisation with 3 voting members (let me know, and I’ll add your hash to become voting member) who manage a smart contract with a balance of JC167 (JamonCoin).
Any member of the DAO can send a proposal, for example: “Send the admin JC100, so he can buy a jamon sandwich” the rest of the members have a fixed amount of time (in my example 5 minutes) to cast their votes. If the voting is successful (in my case it must be by absolute majority), then the proposal can be validated and the funds will be sent.

Like every month of July, my group of friends and I gather for four days at the Euskal Encounter to discuss the evolution of computing. Most of us will not see each other physically until the next year. We have all grown with a shared passion for computers and the unbounded creativity that can be unleashed with them, ready to be shaped by any of us. At the tip of our fingers.
Today, we are senior professionals in diverse areas of computer science: Software development, Security, Systems administration, 3D modelling, Hardware integration, devops, financial systems… each with our separate areas of interest and expertise. In our youth we were amazed by our sinclair spectrum, commodore or amiga computers. We saw the birth of videogames and the 8-bit videoconsoles. We were early adopters of the Internet. We saw the rise and fall of irc chats and the blogging scene, the dominance of Facebook, the appearance of immersive virtual worlds,the arrival of the Iphone and next gen smartphones, the substitution of sms by Whatsapp, the appearance of Skype, Paypal, Airbnb, Blablacar, Wallapop, Uber, Facetime, SpaceX, Tesla…
We have been born in the steep curve of technological advance, where change is faster every day thanks to computers which is our home turf. Where we feel we are just a few lines of code away of being the next Steve Jobs. Where we play with the next toy that falls in the reach of our hand with hopes of transforming it in the next breakthrough that will disrupt the world.
Here’s to us. The nerds. Keep Playing.
I’m sitting in a bar at the airport, waiting for my plane to board. The lady brings me my beer and when I see the QR code in the ticket, for a second I imagine a time when we’ll be able to scan that code with our iphone and have the payment automagically done 🙂
One of the issues I am finding with the blockchain business models is that fiat currencies (Euro, Dollar…) always have to be transformed into cryptocurrencies (Bitcoin, Ethereum…) and then at destination transformed back into the other fiat currency. Since these cryptocurrencies’ value is so volatile this creates fx risk. ( I change 1.000 Euros into Ethereum one day, and the next day I get back 985 Euros)
Ripple is able to transfer fiat currency in real time among banks. How do they do this?
For this they use a different technology than the blockchain. They have created (and recently open sourced) the “Interledger protocol” which is a 2 way messaging middleware that connects banks point to point or through a third party (Liquidity provider). The trick is they need the connected banks to first deposit funds at the other bank, these funds act as pre-funded collateral which enables the speedy transaction, since the cash is already there from the start. Another cool part of the protocol is that if a direct connection between banks can’t be found, the protocol establishes a multi-hop link going through multiple banks until the link is established. In case no route can be found, there is always a link that can be established via Ripple’s blockchain by transfroming into XRP (this would provide big cost savings) since the transfer is done in almost real time, the fx risk would be very small. A thorough explanation of how ripple works can be found in the Ripple solutions guide

Here you can see Ripple in action doing an Fx spot transferring 1.000 Canadian dollars to Euro in 8 seconds instead of 4 days.
By following this super simple tutorial, I´ve understood the basics of how to create a smart contract, in this case a smart contract which creates a new cryptocurrency. The JamonCoin. Each JamonCoin is backed by assets of Jamon in my fridge, so I expect the value of this cryptocurrency to be recognised by the markets.
You can observe this new Cryptocurrency from your Test-Net Ethereum wallet by clicking on tab “Contracts>Watch token” and pasting the address: 0x8866181a0176480cdD1D5a1d7C58aA73a0f797E3 Let me know if you´d like to receive some JamonCoins to play with.
Compiling a new contract is very easy, in your Ethereum wallet, go to “Contracts>Deploy New Contract”, write the code under “Solidity contract Source Code” and you can deploy it by selecting the contract to deploy and initialising it´s values. Solidity is object oriented, so you can use concepts as constructors, classes, inheritance… to deploy it click “Deploy”.
Hello World! 😀

In november 2015, Stephan Karpischek, and Ian Cusden from UBS presented a prototype for an Ethereum smart contract that represented a bond issuance.
I’m interested in Bond issuances on the blockchain, as I think it could bring many interesting use cases for small and medium companies to raise money.
However I don’t understand one thing: How can the smart contract guarantee payment of coupons, or principal at maturity? one way would be for the smart contract to block enough cryptocurrency to pay back all the coupons and the principal at the end, but this would render the bond useless. The only possible alternative is that the smart bond can fail to pay back either coupons or principal at maturity. This must be the case, and it changes a big preconception I had about smart contracts, that they guaranteed payment and that this would avoid litigation.
Smart contracts don’t guarantee payment. Now that I think about it, smart contracts don’t even guarantee that they’ll have enough gas to keep running until the maturity of the bond. Smart contracts just automate execution and settlement, which is already pretty cool. 🙂
A hash is a one way function that transforms a string of data of arbitrary size to a bit string of a fixed size. This function has the following properties:
Hash is useful for example when you want to make sure that a file that you have downloaded is the file that the owner of the file intended for you to download and it has not been modified in transit.
For example, you want to download notepad++ so you go to the website and click on the link to download the Notepad++ Installer. A file downloads, but, how do you know the file hasn’t been corrupted or somehow modified while downloading?

You can check if the hash of the file you downloaded is the same hash that the owner of the website indicates. If you click on the link called “Sha-1 digests for binary packages”

You can see the SHA-1 hash (there are many hash functions, SHA-1, MD5, SHA-256…) of the file should be 6a54e0e8c8dbfca68abe3cbe66d99c66ced59cea

You can now use any SHA-1 hash calculator to chech that the file you have downloaded matches the hash that should be. This would indicate that the bits of this file are exactly the same bits as of the file that the website owner put on the website for download. If we change even 1 bit, the hash would be completely different.
If you have a linux computer you can use command sha1sum and you can see that the resulting hash is exactly the same one. You don’t need to go character by character checking, since if the file had been altered, the result would be wildly different.

If you don’t have a linux command line you can use an online sha1 calculator to see that with the same input, the SHA-1 function will return the same hash, no matter in which platform or computer you execute the function.

Hash functions are used everywhere when we need to check that a file or string of bits matches what we expect. For example VLC player uses hash to look for subtitles to the movie you are playing. Linux uses hash to check that the password you have entered matches the password hash that is stored in the hard drive. This ensures that if someone hacks into the computer, and obtains the passwords file, there is no function that can obtain the original password from the hash, since hash is only one way, but at the same time it’s trivial for the operating system to verify if the password you have entered is correct (since it will produce the same hash as the one stored in the hard drive).
Hash is a key piece of the blockchain algorithm. Since I intend to disect the blockchain algorithm to explain it piece by piece, it’s important that the basic pieces are well understood.
Fintech is short for “Financial Technology” and covers all technologies applied to finance. It is used mainly to refer to disruptive innovations in the Financial industry which is a topic that’s getting a lot of traction, specially since in 2008 Satoshi Nakamoto published his 9 page paper on bitcoin. However, many of these fintech disruptions don’t necessarily come from new technologies, just new ways of using existing technology.
One way fintech disruption can be classified is
It turns out to be very easy to set up a miner node. There are a few ways to do this:
In order to mine, your computer’s clock needs to be synchronized to the ntp (Network Time Protocol)
If everything has gone right, in your geth logs you should see “Starting mining operation”

I’ve done my first transaction, from my kraken.com account to my wallet! 😀 This is pretty cool stuff.. from my kraken account I only needed to insert the hash of my wallet and thanks to the magic of the blockchain, the transaction was added to the next block and arrived at my wallet 0xD5c55DF2Ed5320553855aB4D9C9B20448870Fbf2
If I go to Etherscan.io and enter my wallet’s hash I can see the transaction details.

txHash: This is the hash identifying uniquely this p2p transaction in the blockchain
Timestamp: The blockchain keeps a timestamped record of this transaction which will be impossible to modify by anyone in the future. This transaction’s record is now permanent history! 😀
From: The hash of the kraken site. It’s interesting that Etherscan knows that this hash belongs to kraken. How is this possible? This could resolve many regulatory problems linked to “Know your customer” (KYC) or “Anti Money Laundering” (AML) regulations.. One of the problems today is that it’s difficult to link a wallet’s hash to a peson who owns this wallet.
To: My wallet’s hash! 😀
Value: The amount of ether transferred. I wanted to transfer 5 ETH, but I only got 4.995 ETH. Some of this missing ETH has gone to the miners who mined my block in the form of gas (see below) and the major part of this cut I believe has been kept by kraken.com to fund their business model.
Gas: 150000 this represents the amount of work that went into the operation (transfer of ETH)
Gas Price: 0.00000002 ETH This represents the price that I was willing to pay for the operation to be done per unit of gas. If you offer a price which is too low, no one will process your transaction. Gas price is measured in szabo (10^-6 ETH)
Gas Used by transaction: 21000 I think this is the actual gas that was consumed. (as opposed to Gas which was the gas estimated) TODO: investigate and update this
Actual Tx Cost/Fee: 0.00042 Ether
Cumulative Gas Used 341714
Nonce: 43556
Input Data: 0x This means that I did not add any additional data to the transaction. TODO: Investigate what data attached to a transaction can do. Is this some executable code?
I’m doing this MIT training about the future of fintech, and through it I am discovering the amazing potential of Ethereum as a source of fun. I think it could be cool to log here my ramblings with it. Maybe it can help others in their path.
Yesterday, I was able to set up an Ethereum wallet in my AWS virtual machine, and I managed to buy 3.000€ worth of ETH (205) and XBT (1,7), my bet is that in one years time these 3.000€ will have transformed into 30.000€. But my goal is not to make money through speculation. My goal is to learn about Ethereum and be able to program smart contracts that automate payments.
My milestones are:
