Skip to content

Construct private and business profiles from keys #21

@marat-tw

Description

@marat-tw

When the app is opened then go through the array of password-encrypted private keys stored in localStorage.getItem("keys") and retrieve the identity for each verified key from account-identity in the form of:

{ idCode: "38008040123", idProvider: "EST-ID" }   
{ idCode: "123522", idProvider: "EST-BIZ" }   

See: cryptofiat/account-identity#21

Based on the responses construct profiles similar to the model

{ 
     identity: "38008040123",
     identifier: "Estonian-ID",
     commonName: "JUKU JUHALAINEN",
     name: { firstName: "Juku", lastName: "Juhalainen" }
     social: [ { schema: "twitter", URI: "@juhalainen" } , { schema: "facebook", URI: "jukujuh"}] ,
     avatar: "http://pic.twitter.com/nat.png",
     coverPhoto: "http://pic.twitter.com/blaah.png",
     keys: [ 
        { privateEncrypted: "0x1231", 
          public: "0x4323...",  
          hdKey: { type: hdKey, paths: [ "2/2322" , "2/3232" ] }, 
          addressCache: { timestamp: 1245342, balance: 32, approved: true, frozen: false } , 
          transferCache: { timestamp: "13456464", transfers: [ Transfer ] } 
        },
         ...
     ]
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions