Skip to Content
Foundations of Blockchain
book

Foundations of Blockchain

by Koshik Raj
January 2019
Beginner to intermediate
372 pages
11h 17m
English
Packt Publishing
Content preview from Foundations of Blockchain

Proof of Existence library

A Proof of Existence library is a collection of methods that perform high-level tasks on a blockchain. The library contains all the operations that can be performed on a document submitted by a user. There are two main ways of performing operations on the user document, according to the design of the architecture: publish and verify.

The publish operation publishes the document digest, along with any other information passed by the user. Since we are using MultiChain streams for publishing, the data has to be formatted in a hexadecimal string, as mentioned earlier.

The following Document class shows the publish and verify methods, along with some methods that can be used to fetch the stream items:

class Document(object): ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Blockchain Basics

Blockchain Basics

Daniel Drescher
What Is Blockchain?

What Is Blockchain?

Sir John Hargrave, Evan Karnoupakis
Mastering Blockchain

Mastering Blockchain

Lorne Lantz, Daniel Cawrey

Publisher Resources

ISBN: 9781789139396Supplemental Content