Giter Club home page Giter Club logo

spidchain-btcr's Introduction

Implementation of btcr

Check demo.

Run locally:

$ cp .deploy/dev/settings-template.json  .deploy/dev/settings.json
$ npm install
$ meteor run --settings .deploy/dev/settings.json

Test:

$ bitcoind -regtest -rpcuser=foo -rpcpassword=bar -server -daemon
$ npm run test

If you need to run tests in headless mode:

$ npm run test-chrome

spidchain-btcr's People

Contributors

squarfed avatar tensor5 avatar

Stargazers

Luke Hedger avatar

Watchers

James Cloos avatar  avatar  avatar ______ avatar

Forkers

squarfed bucko13

spidchain-btcr's Issues

Rewrite the claims database schema

The claims collection of Dexie is suboptimal, it should be redefined. The proposed schema is:

db.version(1).stores({
...
    claims: '++_id, *subjects, *signers, type'
})

type is a string and can contain values 'claim', 'claim_request',
The claim itself is stored in a non indexed field jsonLd.

DID coupling through a claim

Right now DID coupling among two devices is done exchanging two nonces. This can be simplified exchanging one verifiable claim containing the two DIDs that have to coupled.

Database schema

db.version(1).stores({
   ...
   didCoupling: '++_id, *subjects, nonce, type`
})

And a non-indexed field jsonLd.
type has values 'shown', 'acquired', 'verified', 'failed'

User should be able to send claims

Right now claims can be sent only to get them back signed. There should be an option to send a claim with all the signatures to any user in the DID contact list.

watchUnconfirmed only monitors the first transaction

There are 2 transactions that define the initial DID, but right now we only check that the first one has been included in a block to confirm that the DID has been created. In cases where the second transactions was not mined this could lead to an invalid DID.

Implement an SPV node

Using BCoin.js. This way we can remove the calls to blockexplorers to get balance, send raw transactions.

Problem on Iphone

Some bugs in your mnemonic input. Only first four letters is significant. Often on using iPhone the first letter is automatically capped or an extra space added at end โ€” you should ignore those

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.