Giter Club home page Giter Club logo

js-decontact's Introduction

js-decontact

An address book peer-to-peer protocol and local first smart contract built with Libp2p, Helia and OrbitDB

Features

  1. DID wallet (via seed phrase)
  2. Alice requests address from Bob via DID
    • Alice gives write permission to Bob
    • Bob writes his contact data into Alice' address book
  3. Bob is moving to a new city or country (contact data are changing)
    • Bob automatically updates Alice's address book with his data
  4. Auto-Sync of own devices with same seed phrase
    • Having the same seed phrase on different devices results into auto replicated address books.
  5. Restore all contacts from people who backuped up my data

Todo

  • integrate into deContact.xyz
    • confirm dialog still missing in handleMessages (via event dispatch)
    • DID from seed phrase
    • Encryption
  • alternative PublicKey for browser in combination with DIDIdentityProvider
  • Test Bob-Bot
    • start test-bot-node with fix DID
    • answer automatically with address (write into Alice (requester) DB)
  • browser based distributed storage protocol
  • optional blockchain based handles
  • optional blockchain based DIDs (Bitcoin, Doichain, Namecoin)

Usage

npm i decontact

Test

  1. Clone this repositoty
npm install
npm test

js-decontact's People

Contributors

silkroadnomad avatar

Watchers

 avatar

js-decontact's Issues

ContactForm integration

npm i js-decontact

can be added to React, Svelte or Vue projects which implement a standard contact form.

Here it should:

  1. Open my address book (if available or create a new one)
  2. Request the businesses address (via DID) and write it into the users decontact address book
  3. In Return business websites address book should request the website users address (this can only happen if the user already stored it - or we add dummy address upon loading the address book first time, which is going to be updated as the website user saves it.)
  4. Step 1 to 3 applies only if a user doesn't have a deContact address book!

If the website user has already a decontact address book, in the contact form two buttons will be displayed

  • store businesses contact data (Alice) in my address book and follow (we do requestAddress call)
  • send my contact data, a new sendAddress call which sends the contact data (form data) to a DID

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.