uranther

uranther

The Blockchain (distributed ledger technology)

What do you all think about writing a blockchain in Elixir? Being a functional language and having OTP in our arsenal, it seems it would be easier to get a block chain up-and-running quickly. We even have some good starting points for the consensus algorithm and hash trees:

:024: :lol:

Blockchain resources

Elixir community effort

Background

Videos

Topical

General

Bitcoin

Ethereum

Books

White Papers

Benchmarks

These projects are in active (rapid!) development and in a variety of languages.

Academic Papers

Specific implementations

Meta-analysis

Distributed consensus

Proofs of “X”

Various methods of using blockchain technologies to prove something in a way that is cryptographically verifiable.

FOR CRYPTOCURRENCY
OTHER PROOFS

Blockchain components

Distributed consensus algorithms

A fundamental problem in distributed computing and multi-agent systems is to achieve overall system reliability in the presence of a number of faulty processes. This often requires processes to agree on some data value that is needed during computation. Examples of applications of consensus include whether to commit a transaction to a database, agreeing on the identity of a leader, state machine replication, and atomic broadcasts. (Wikipedia)

  • raftex - Raft consensus
  • expaxos - Paxos consensus
  • rafute - Another implementation of Raft
  • dike - Paxos implementation in Erlang

Merkle (hash) trees

A hash tree or Merkle tree is a tree in which every non-leaf node is labelled with the hash of the labels or values (in case of leaves) of its child nodes. Hash trees are useful because they allow efficient and secure verification of the contents of large data structures. Hash trees are a generalization of hash lists and hash chains. (Wikipedia)

Elixir

Erlang

Cryptography

Elixir

  • elixir-rsa - Erlang public_key cryptography wrapper
  • elixir-ecc - elliptic curve cryptography
  • elixir-mcrypt - NIF wrapper around libmcrypt
  • cryptex - library for encrypting/decrypting, signing/verifying data

Erlang

Keywords: state machine replication, distributed cryptographic ledger, transaction log

First 10 of 87 Posts Switch mode

Hoegbo

Hoegbo

Should be interesting to do something. However I do not know enough about blockchain just yet to make anything impactful

uranther

uranther OP

Princeton researchers are writing a book on Bitcoin and they also have a Coursera course on Bitcoin and Cryptocurrencies. Although these resources are mostly geared toward cryptocurrency, the fundamentals of the distributed cryptographic ledger are discussed as well.

[moved compiled list of blockchain learning resources to OP]

IamCharlesHan

IamCharlesHan

I’m currently at an accelerator that invests in VR and Blockchain. If anyone’s interested, the applications for the next tribe just opened. Feel free to ask me anything!

https://app.boost.vc/apply

Hoegbo

Hoegbo

Fantastic , I was going into Blockchain for IoT security. So Was thinking about going that route.

Thanks for the links saves me a lot of time :slight_smile:

IamCharlesHan:
Could they perhaps invest in open source development of a Elixir implementation of Blockchain Perhaps I could get my company to do something as well.

uranther

uranther OP

There’s a lot of talk about blockchain for IoT. I know IBM created a proof-of-concept and I just saw an article on Cisco Newsroom about it. It’s a great application and IoT security is a big issue nowadays.

Yes, I am definitely for open source development - instead of yet another business based on blockchain (the list on Boost.vc is huuuge :103:) - knowing that the two are not mutually exclusive. I am happy to see investors opening their wallets for its development though.

I was thinking of this as more of a learning project, although it may be able to compete with the big dogs if it builds enough momentum. There’s two routes I could see this going: 1) implement the Ethereum protocol and thereby benefit from all its conventions 2) build our own barebones blockchain with smart contracts, perhaps drawing inspiration from Hyperledger. I know one of the design goals for Hyperledger is to completely modularize the software so that developers are free to pick-and-choose components to build their blockchain product. I like modularity… :icon_razz: For example, you should be able to choose whether you want proof-of-work or proof-of-stake depending on your application.

Hoegbo

Hoegbo

Lets go for something bare bones and modular, perfect combination. I like the hyperledger aproach. I eas actually looking IBM’s source at github. So lets gave a chat an get started :slight_smile:

uranther

uranther OP

Indeed, the Hyperledger/IBM incubation project, fabric, is very active.

I created a GitHub organization called exchain. @Hoegbo are you @Hoegbo on GitHub? I’ll send you an invite.

I think we should start by verifying the work on raftex. For one, we want it to be Byzantine fault-tolerant - juno provides a good reference point for us. This paper discusses some subtle correctness requirements of the Raft consensus algorithm and they actually implement it in OCaml. We can write more tests…

From there we can work on implementing Merkle trees.

IamCharlesHan

IamCharlesHan

I’m one of the startups and not the investors so I don’t think I can answer that question for you. However, I can tell you that it’s mostly all about the founder, and of course the potential of the product. So if there are some smart people that are committed, why not :slight_smile:

Hoegbo

Hoegbo

Cool ,
Would be interesting to see if we could get something funded for open source Elixir projects.

Hoegbo

Hoegbo

I am Hoegbo on Github.

Where Next?

Trending in Wikis Top

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New

We're in Beta

About us Mission Statement