Doichain / dapp

Doichan dApp - a Meteor.js implementation of the "Doichain Atomic Double-Opt-In" Protocol
https://www.doichain.org
MIT License
6 stars 6 forks source link

Create Doichain npm package out of doichain-meteor-api #99

Open silkroadnomad opened 5 years ago

silkroadnomad commented 5 years ago

https://github.com/Doichain/meteor-api is a meteor package that references account-password inside the nimble:restivus@0.8.12 package.

In case we want to adapt accounts-password package to support Doichain we would run into several issues. So the solution will be:

Create a Doichain npm package for the core-doichain-api (without the REST-stuffs) let the meteor-api use accounts-password and the old REST but move all core Doichain functions into the new npm package.

So we can put this doichain npm package into any JS project, allowing them to communicate with a Doichain blockchain node without having the necessity to use all the REST stuffs.

Remark: Bob will call Alice in order to get the Email template via REST and also inform Alice when a DOI was confirmed - so those REST functions still need to be there.

That sounds like we need to replace nimble:restivus@0.8.12 with a NPM Rest package too!

Please see https://bounties.doichain.org/ how to apply for Doichain bounties.

silkroadnomad commented 4 years ago

New insights:

silkroadnomad commented 3 years ago

New insights: For v0.2 we should use https://libp2p.io/ and rewrite everything. no database storage (no mongo) worst case IPFS with avionDB.