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

Verifying the document

The user who needs to verify the existence of the document will invoke the verify implementation endpoint. verify is an HTTP GET method that accepts document digests as query strings and then responds with details regarding the document if it has already been published. By doing it this way, the user can be certain about the document's existence, provided it has already been published in the blockchain.

The value of the digest query string key is passed as an argument to the Proof of Existence library verify method. This will return a list of items if the document digest can be found in the blockchain ledger:

    async def verify(self, request): """returns details about verified document""" digest = request.args.get('digest') ...
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