Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ubirch/hello_world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Hello World in Python3

This is a bare-minimum implementation of the ubirch-protocol for Python 3. Please see ubirch-protocol for details.

The library consists of three parts which can be used individually:

  • ubirch.API - a python layer covering the ubirch backend REST API
  • ubirch.Protocol - the protocol compiler which packages messages and handles signing and verification
  • ubirch.KeyStore - a simple key store based on pyjks to store keys and certificates

the ubirch protocol uses the Ed25519 signature scheme by default.

Quick Start

  1. Install dependencies.

    $ pip install ubirch-protocol
  2. Register your UUID at https://console.prod.ubirch.com/ and retrieve the "password" for your device

  3. Insert your UUID and password in the example code.

    uuid = UUID("<<insert your uuid>>")
    auth = "<<insert your device password>>"
  4. Insert your own message in the example code.

    test_message = "ubirch me!"

    The message has to be unique! You'll get a 409 status code, if you try to anchor an already anchored message.

  5. Run the example.

    $ python ./hello_world.py

    The output should look like this:

     key registration status code: 200
     message hash: FJXjDsX0jS3pEX7H28pvkp7brOPWqCfzl1V7fqv+P10=
     status code: 200
     https://ubirch.de/verifier/hash-verifier#hash=FJXjDsX0jS3pEX7H28pvkp7brOPWqCfzl1V7fqv+P10=
    
  6. Verify your message hash at https://ubirch.de/verifier/hash-verifier

Further examples, verification etc.

A more elaborate example can be found here: Python Example

About

Ubirch Hello-World example in Python3.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages