January 2019
Beginner to intermediate
372 pages
11h 17m
English
The publish endpoint implementation will then be invoked when a user wants to prove the existence of a document. The publish implementation is an HTTP POST endpoint because it will create a new record in the blockchain through the web server interface. The user invokes this endpoint by passing the document digest, which is the hash value of the entire document. The user will also pass information such as the name, email, and message, which will be stored as metadata in the stream item. The requisite information is passed through the POST forms. The requisite values are extracted from the request object in order to create a dictionary:
async def publish(self, request): try: json_data = {'name': request.form.get('name'), ...Read now
Unlock full access