Giter VIP home page Giter VIP logo

dududko / okapi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trinsic-id/okapi

0.0 0.0 0.0 310.58 MB

Collection of tools that support workflows for authentic data and identity management. Libraries available in most languages.

License: Apache License 2.0

Rust 13.31% Objective-C 4.72% Ruby 4.28% C# 5.03% C 0.95% TypeScript 1.45% JavaScript 36.21% Swift 18.63% PowerShell 2.90% Go 2.24% Python 2.78% Java 6.38% HTML 0.04% Kotlin 1.08%

okapi's Introduction

Tools and libraries for managing digital identity

This repo contains core components used in the Trinsic SDK

  • Support for working with did:key method
  • Implementation of DIDComm Messaging protocol for gRPC
  • Linked Data Proofs using non-LD processing signatures, such as JcsEd25519Signature2020

Library is available for use with different languages

NuGet version npm version

Library and API structure

The main library is built in Rust and exposed to other languages through a C-callable FFI. The function signatures for each method are exposed as byte arrays, that use Protobuf for the main IDL. This allows easy development and maintainance of new methods, with minimal language specific implementation.

All library methods are exposed via static method calls, generally grouped under a dedicated class in the Okapi namespace (where available).

For example, to generate new key using .NET you can use the DIDKey class.

using Okapi.Keys;

var key = DIDKey.Generate(new GenerateKeyRequest { KeyType = KeyType.Ed25519 });

The same functionality for Node is exposed as:

import * from "okapi";

let request = new GenerateKeyRequest();
request.setKeyType(KeyType.Ed25519);

var key = DIDKey.generate(request);

API Reference

DIDKey

  • generate
  • resolve

DIDComm

  • pack
  • unpack
  • sign
  • verify

LdProofs

  • create_proof
  • verify_proof

okapi's People

Contributors

fundthmcalculus avatar tmarkovski avatar kandarej avatar rileyphughes 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.