Anatomy of Factom’s Addresses

Brief Overview

You need Factoid Addresses and Entry Credit Addresses to do anything in Factom, so I wanted to dive a little deeper. There are three parts that make up an address: the private key, the public key, and the address. The private key is the most important element and can be used to derive the other two components. The public key can be used to verify data signed by the private key as well as derive the address. The address itself is a hash of an RCD mechanism to allow for multiple authentication schemes, and it cannot be used to determine either the private or public keys.

While using Factom, you are typically only presented with … Read the rest

Factom Quickstart for Developers who Don’t Know or Don’t Care what a Blockchain is

Like the title says, this is an explanation of Factom for developers who already have solid programming knowledge and just want a no-buzzword explanation of how to write applications and what is possible. What it is not is a guide to programming or to the underlying Factom protocol itself. If you are interested in the latter, check out some of my other blog posts or the factomprotocol.org website.

Requirements

  • Working knowledge in a programming language
  • Knowing what JSON and JSON-RPC are OR using one of the many Factom APIs

That’s pretty much it. While the main network has costs associated with it, you can run a sandboxed local server or use the test network that lets you generate free resources. … Read the rest

Factomize Core Dev Update 5

Short Term Review

One of my worries with my approach to learning the codebase (see previous blog posts one and two) was that I might not be able to transition well from a theoretical reading and analyzation of the code to being able to write new code, which if you’re familiar with development, are two very separate concepts. It hasn’t been seamless but I’ve had some time to reflect since then and I would consider it to have worked pretty well.

That said, I haven’t talked the other core devs about how they have been faring. It would be nice to hear from others about this topic.

Update on my status

For a while I worked on odds and … Read the rest

Factom Protocol P2P: A TCP Gossip Network

Introduction

Let’s take a closer look at Factom’s p2p protocol.

Factom uses a Gossip protocol for all messages, which is a very simple protocol with a wide variety of applications. One of Factom’s main priorities is creating a censorship-resistant environment and Gossip Protocols have characteristics that aid in that regard. More on that later.

The p2p code is implemented entirely inside factomd with no external libraries. If you’re already familiar with Gossip Protocols and just want a brief overview, these are the specifications of the network:

Overview

  • TCP
  • Seeded with a list of 10 softcoded ips
  • Fanout of 16 (with optional max fanout for some messages)
  • Outgoing count of 32
  • Incoming count of 150 (no NAT traversal)
  • Push approach (mostly
Read the rest

Factomize Core Dev Update 3

It feels good to be able to say: I finally understand how factomd and the factom protocol works.

After almost forty calendar days, I have reached a point where I’m comfortable with the internal processes of the code. It’s not a perfect mastery, that will likely take years to achieve, but it’s enough to know how all the pieces fit together, how changing one impacts the others, and most importantly of all, where to look to find out more.

To recap what I have been doing: instead of diving into the code by trying to implement something and learn by doing, I wanted to understand how everything works first and in the process create documentation. It’s a departure from the … Read the rest

Factomize Core Dev Update 2

What’s the best way to learn a new codebase? That’s a question I have asked myself many times leading up to this project. I’m used to working in already established areas, like Symfony, Node.js, vBulletin and XenForo systems, that have vast and readily-available documentation, whether it’s from the original developers or user-generated. This is the first time I went delving mostly blind.

This is roughly the process I laid out for myself:

  1. Get accustomed to working with the product
  2. Gather all available documentation
  3. Read code
  4. Attempt to explain my understanding and have that reviewed by the experts

Point One:

This happened over the span of a couple of months as I worked on procedural solutions for the Factomize forum, including … Read the rest

Factomize Core Dev Update 1

Five months ago, when I was rehired by David Chapman, I’ve never done any work with blockchains or Golang. I was familiar with the basics of the technology, but nothing intricate. It feels like years ago already. The goal from the start was to eventually end up doing core development but the path to get there was very steep.

At first, it was just reading the Factom white paper and learning Golang while working full time on the Factomize forum, then figuring out how to set up a developer sandbox for my own testing. Some of the solutions for the forum required me to become familiar with interacting with the blockchain via factomd, and so I became familiar with how … Read the rest