Skip to content

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

License

BSD-4-Clause, Unknown licenses found

Licenses found

BSD-4-Clause
LICENSE
Unknown
license-header.js
Notifications You must be signed in to change notification settings

demo-verse/sdk-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

BSD-4-Clause, Unknown licenses found

Licenses found

BSD-4-Clause
LICENSE
Unknown
license-header.js

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 98.5%
  • JavaScript 1.5%