GithubHelp home page GithubHelp logo

flexfintx / issuer-verifier-sdk Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 163 KB

A JS/TS SDK for interacting with Flex Issuer+Verifier API

License: Apache License 2.0

JavaScript 4.12% TypeScript 95.88%

issuer-verifier-sdk's People

Contributors

danisharora099 avatar haardikk21 avatar

Watchers

 avatar  avatar

issuer-verifier-sdk's Issues

Add support for all endpoints in IVAPI

We would want the following functions (basically all except for the holder routes)

issueNewCredential(...)
getIssuedCredentials(...)
verifySignedCredential(...)
verifySignedPresentation(...)
generatePresentationRequest(...)

The missing endpoints we need to discuss are

/presentationSubmission
/polling/:callbackId

Discussion

Motivation
Flex-IVAPI is a REST based API, but some knowledge about verifiable credentials and verifiable presentations is required to be able to use it properly. It is not very intuitive or developer friendly.

We want to solve that issue by creating an easy to use SDK as a node module which can just be imported by our customers in their project, where they can call simple functions which will deal with the IVAPI REST API in the background.

Features
To get a base version up and running, we can mimic the API word for word with no custom modifications. That is, we just pass whatever we would regularly send as part of the JSON body in the POST request to the function call - and it just calls the API in the background.

Design
We should follow a Class based OOP approach this as most SDK's do. I envision the final usage of the SDK to be something like

const ivapiClient = new IvapiSdk(ivapi_api_url);

const signedCredential = await ivapiClient.issueNewCredential(unsigned_credential);

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.