How to Factomize a Kitten – Part Two

By Nicola Minichiello – Communications

Factomize Kitten

When we last left our furry friend, she was begging to join her co-felines in Factom. Many things have changed since then. Factom has gone into production and the software is available for accessing it. All this calls for new procedures for factomizing this little cutie!**
**

**Entry Credits, Factoids, and the Factom Binaries
**Entry credits are now required to factomize anything, factoids are required to acquire entry credits, and the Factom binaries must be installed on your computer.

Please see the Developer Guides at https://factom.com/howto for assistance with installing the Factom binaries, getting factoids, and using the factoids to acquire entry credits.

**Preparing the Data
**Any digital data, but only digital data, can be factomized. So to capture our kitten for posterity, she must first be digitized. In our example we will be using the above picture which can be downloaded here. Right click on the picture in your browser and “Save Image As” to a location of your choosing on your computer. In our example we saved the image as FactomizeMe.png.

Basically, your kitten pictures are already digitized and ready to be factomized.

**Making a Chain in Factom
**Next, you need to have a chain in Factom in which to store your entry. Our Process Integration Manager, D. Robert Baker, has created a Kitten chain for us all using the below command:

factom-cli mkchain -e “Kittens!” ec-wallet-address-name01 <Kittens

image

and received this response:

Creating Chain: 475fbcef5e3a4e1621ed9a6fda5840c1d654715e55a8f5e514af0fb879ce0aec

This is Factom giving us the Chain ID of the new chain it will create. This information is required to make an entry in this particular chain and is viewable via the Factom Explorer here.

Another important thing to note is that the Chain will not be available for use until the next 10 minute marker (0, 10, 20, 30, 40, or 50 minutes past the hour) because that is when the Chain will be anchored into the blockchain.

Now that a Kitten chain exists, anyone, anywhere can factomize all the kittens they like and they can all frolic together, safe and unchanging forever in Factom. But, first we want to hash the kitten.

Hashing Kittens

image

Just kidding!
**
**Hashing just means transforming a string of bits (like a picture of a kitten) into a shorter fixed-length value that uniquely represents the original string. Our kitten picture is actually 597 thousand bytes of data. Hashing it will reduce it down to a mere 64 bytes. This is a much more efficient use of resources and just as reliable for verification purposes. Furthermore, Factom has a 10240 byte ceiling on the size of entries.

Hashes can be easily created using this web page.

image

Use the “Choose File” button to upload your picture file:

image

Click the “Convert file” button and you should get your kitten picture’s hash returned:

image

Just copy the hash (hex:) from the top line of the box:

23367562d1bc7d2748daf263f6e771b337427aad39fe852590c04975143d0c2b

Now you know what a hashed feline looks like!

**Adding Kittens (Entries) to Factom
**It is very easy to add an entry to the Kitten chain by using the below command:

echo 23367562d1bc7d2748daf263f6e771b337427aad39fe852590c04975143d0c2b | factom-cli put -e “FactomizeMe.png” -c 475fbcef5e3a4e1621ed9a6fda5840c1d654715e55a8f5e514af0fb879ce0aec ec-wallet-address-name01

image

wich returns: 

Creating Entry: 21f7f9508207aff4aa198210d5dd997db90d954b383b47989403bd35796d7864

And we’re done! You can see the entry on the Factom Explorer here.**
**

image

The top highlight is the Hash of the entry we have just submitted and the bottom one is the hash of the picture we have successfully factomized.

Now, if anyone inquires after the health of “Miss Whiskers”, we can verify with mathematical certainty that she was indeed happy and well… at a point in time.

Summary for Entering Your Kitten Picture into Factom

Step 1 – Hash your picture using this web page.

Step 2 – Enter your hash into the Factom Kitten Chain:

**echo YourHash | factom-cli put -e “picturename” -c 475fbcef5e3a4e1621ed9a6fda5840c1d654715e55a8f5e514af0fb879ce0aec ec-wallet-address

image

Recent Posts

Factom Harmony

Factom Harmony

Posted: March 2, 2017 In Press Releases

Factom Harmony is a commercial product for the mortgage industry. It is built on the Factom Apollo data management solution and allows users to store and create permanent mortgage records.

The Great Migration

The Great Migration

Posted: December 30, 2016

Factom Genesis is migrating to the new Factom Federation network. We will be deploying eight federated servers and eight audit servers to the Federation network. This migration will usher in an era of censorship-resistant and global distribution.

Factom Releases Next Version of Software

Factom Releases Next Version of Software

Posted: December 20, 2016

Factom Federation is the second major release of the core Factom software. It includes several protocol changes and a networking change that gives us the ability to further upgrade the following: