Giter Club home page Giter Club logo

tic.api.js's Introduction

TIC - Trusted IOTA Contacts

A simple library providing a secure way to validate identities in the IOTA network.

With TIC you can publish information which you want to share about yourself on the tangle and publish that you trust or distrust the information of someone else. The ones you trust are your 'contacts'. With this a Web of Trust is established by which you can validate the information of someone by accumulating the trust ratings of your contacts and their contacts and so on. This makes it possible to derive a trust rating for someone who is not your direct contact.

Try out the web example

Usage

Installation

Install node/npm. Then run:

$ git clone [email protected]:cr0ssing/tic.api.js.git
$ cd tic.api.js
$ npm install

As a CLI

You can use all functions of the TIC library with a simple CLI. The releases contain binaries for different platforms with that you can use TIC standalone from the command line:

$ ticCli-linux-x86 <command> [options]

It's also possible to run the cli directly with node/npm:

$ cd tic.api.js
$ npm run cli <command> -- [options]

Note the extra '--' needed before the options.

You can use TIC globally if you link it with npm:

$ cd tic.api.js
$ npm link
$ tic <command> [options]

Take a look at the CLI Reference to learn about the available commands.

As a library

TIC is a library for node.js. Using it is as easy as:

const tic = require('tic.api.js')

Read the API Reference to learn more.


How it works

TIC uses MAM channels to store your "Account Information" on the tangle. The root of your profile and your contacts channel are stored on your public "master channel". If you want, you can store the seeds of these channels on the restricted channel, where your set password is used as the channel's sideKey.

Channels Overview

When you query the trust rating of a TIC account from your own TIC Account, all your declared contacts are queried. Next their contacts are queried. These repeats until a given depth. For every visited contact TIC looks for a rating for the Account you want to rate. The accumulated ratings are returned as the result of the rating query.

Rating Query


© 2018 Robin Lamberti <[email protected]>.

tic.api.js's People

Contributors

cr0ssing avatar

Stargazers

 avatar Evan Feenstra avatar HuangJyunYu avatar Ender avatar  avatar

Watchers

HuangJyunYu avatar  avatar  avatar

Forkers

ender503 tangleid

tic.api.js's Issues

Error on self-rating

error: Cannot read property 'depth' of undefined

occurs when querying a self rating (masterRoot=target)

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.