January 2019
Beginner to intermediate
372 pages
11h 17m
English
A Proof of Existence web server is an interface for communicating with the MultiChain blockchain. We will create a REST API to communicate with the blockchain application. Each user will be able to send requests to perform publish and verify operations through this web interface.
First, the packages required to encode the data and create the web server need to be imported. The default port number of the web server is set to 8000:
import binascii import json as JSON from base64 import b64encode, b64decode from datetime import datetime from sanic import Sanic from sanic.response import json from sanic_cors import CORS, cross_origin from poe_libs import Document port = 8000
The next step is when the document object ...