flexfintx / issuer-verifier-sdk Goto Github PK
View Code? Open in Web Editor NEWA JS/TS SDK for interacting with Flex Issuer+Verifier API
License: Apache License 2.0
A JS/TS SDK for interacting with Flex Issuer+Verifier API
License: Apache License 2.0
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
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);
Currently the SDK supports filtering based on id
and type
. Should support filtering based on credentialId
and credentialName
as well
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.