Code Monkey home page Code Monkey logo

signature_device's Introduction

Signature Service

Demo application to create signature devices. With the created signature devices the signature service can also create signatures for the provided data.

Prerequisites & Tooling

  • Golang (v1.21+)

Usage

Start the app

make run

Run the tests

make test

Create signature device

curl --location 'localhost:8000/api/v1/device' \
--header 'Content-Type: text/plain' \
--data '{"id": "bc890106-641e-41fc-aed8-b77cca0b42b9", "algorithm": "RSA", "label": "NEW"}'

List signature devices

curl --location 'localhost:8000/api/v1/device'

Sign data

curl --location 'localhost:8000/api/v1/signature' \
--header 'Content-Type: text/plain' \
--data '{"device_id": "bc890106-641e-41fc-aed8-b77cca0b42b9", "data_to_be_signed": "datatosign"}'

Architecture

Package Description
crypt Utilities to deal with cryptography
device Signature device domain
signature Signature domain
health Contains health check handler
api Contains http api related logics

signature_device's People

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.