Coder Social home page Coder Social logo

alvin-reyes / sdk-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kiltprotocol/sdk-js

0.0 1.0 0.0 9.67 MB

KILT SDK for JS | Docs: https://dev.kilt.io | Website: https://kilt.io

License: BSD 4-Clause "Original" or "Old" License

JavaScript 1.03% TypeScript 98.96% Dockerfile 0.01%

sdk-js's Introduction

Lint and Test

Data sovereignty and interoperability

Mash-Net SDK

The open-source KILT SDK is written in TypeScript and enables you to quickly and easily build dApps around new business use cases. KILT is a protocol for self-sovereign data and interoperability built on top of the permissionless KILT blockchain. The SDK provides collection of classes and methods you can utilize to interact with the KILT Protocol.

  • Self-sovereign data. Have ownership of your digital and analog identities, with control over who your users share that data with. Providing that extra layer of flexiblity and security.
  • Interoperability. Claim Types (CTYPEs) facilitate the adoption of standardised credential content structures.

To learn more, checkout the KILT Whitepaper or see our how it works video. Regarding the privacy enhancement, please have a look at our lightning talk for Sub0 April 2020.

Documentation

To avoid confusion between the latest released SDK version and the develop default branch, the links in the list point to the master branch, which always contains the latest official release of the SDK.

KILT documentation is provided in several guides and demos.

To help improve, please see our contribution page.

How to install the SDK

Install the KILT-SDK by running the following commands:

npm install @kiltprotocol/sdk-js

Or with yarn:

yarn add @kiltprotocol/sdk-js

Embed bundle in HTML

We include UMD bundles in our release and prerelease NPM publishes. They can be used to easily embed our complete SDK.

<script src="https://unpkg.com/@kiltprotocol/sdk-js@dev/dist/sdk-js.min.umd.js"></script>

You can find the library on window.kilt, and use it completely dependency free.

Example

Please have a look at our examples within our getting started guide.

A claim type (CTYPE) can be a credential of any kind, e.g. a drivers license, a sports club membership or even a fairtrade certificate for chocolate.

Building a claim must be done by the defined CTYPE respective fields. Now we can easily create the KILT compliant claim. We have to include the full CTYPE object, the raw claim object and the address of the owner/creator of the claim in the constructor:

const rawClaim = {
    name: 'Alice',
    age: 29,
}

const claim = new Kilt.Claim(ctype, rawClaim, claimer)

Claim {
    cType:'0x5a9d939af9fb5423e3e283f16996438da635de8dc152b13d3a67f01e3d6b0fc0',
    contents: {
        name: 'Alice', age: 29 },
    owner: '5EvSHoZF23mZS4XKQBLdqMv7a7CRSANJmxn7XDu6hwoiK4Wz'
}

Development Setup

Development Setup

Job Board

Check to see if we have any Job Offers

License

License

sdk-js's People

Contributors

tjwelde avatar foby avatar actions-user avatar bekolb avatar rflechtner avatar leonflk avatar dudleyneedham avatar wischli avatar ntn-x2 avatar maudnals avatar csmarc avatar weichweich avatar aenyway avatar mn-io avatar trusch avatar arty-name avatar

Watchers

James Cloos 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.