Giter VIP home page Giter VIP logo

hello_world's Introduction

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

hello_world's People

Contributors

snoller avatar leroxyl avatar

Stargazers

paladin47 avatar

Watchers

 avatar James Cloos avatar Michael Merz avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.