Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 1.4 KB

registration-flow.md

File metadata and controls

22 lines (18 loc) · 1.4 KB

Identity registration flow

Technical flow how node and transactor services have to communicate to accomplish identity registration.

  1. node requests registration txFee with /fee/registration call
  2. node issues request to /identity/register with (params=[registryAddress, accountantID, stake, txFee, beneficiary(if stake>0) ], sig[params]) through Transactor
    1. Transactor extracts identity from sig
    2. Transactor checks if identity is not already registered
    3. Transactor calculates channel address
    4. Transactor starts watching BC (MYST token SC) for incoming tx to channel address
      • when tx is mined Transactor calls registerIdentity on BC SCs (Transactor receives txFee)
  3. Transactor returns channel address to node
    1. show channel address to pay to on UI
    2. show identity registerFee is shown on UI
    3. user (node owner) transfers tokens (min txFee + registerFee amount) to given channel address
    4. node checks if identity is already registered (/identities/current ) and shows status on UI

Promote identity registration to provider

  1. node requests Accountant for promotion to provider sending (params=[identity, beneficiary(or channelID), stake], sig[params] )
  2. Accountant calls BC through Transactor to register incoming channel for given identity
  3. Accountant returns incoming channelID (to receive money) to the node