keyko-io / filecoin-verifier

Filecoin project issues
0 stars 0 forks source link

Document the architecture about the automated datacap allocation for clients #27

Closed aaitor closed 4 years ago

aaitor commented 4 years ago

NOTE: This design is complemented by: https://github.com/keyko-io/filecoin-verifier/issues/26

How applications can on-board their users in Filecoin?

Introduction

The current Filecoin Registry application allows to the verifier to allocate some of their datacap to clients. This is okay from a functional point of view because there is a mechanism to distribute the datacap from the verifiers to the associated clients to that verifier.

Also there are applications like Slate wanting to provide storage capabilities to their users using Filecoin as substrate. To support that capabilities, all the new Slate users should be able to receive automatically a datacap allocation from the verifier associated with that application (Textile in this case).

The current manual flow supported in the Filecoin registry application is totally functional but is not optimal for supporting automatic datacap allocation.

The objective of this document is to describe the technical solution allowing to allocate datacap in an automatic way to clients/users of these Filecoin applications.

Architecture

Here we distinguiss different actors:

To support the level of automation required, there will be a micro-service (aka SERVICE) with the following characteristics:

image

josepablofm78 commented 4 years ago

If we want to use Multisig accounts to keep traceability about the app that "approves" the datacap request the flow could be like this: