onsonr / sonr

https://sonr.io
493 stars 27 forks source link

Configure MPC Vault to work with x/identity #861

Closed prnk28 closed 9 months ago

prnk28 commented 9 months ago

GenerateIdentity()

Create Wallet for Sonr Coin type and build VFS with IPFS UnixFS API

Returns:


CreateVault()

Generates IPFS Key for Account Address, and Pins Encrypted keyshares.

Requires:

Returns:

linear[bot] commented 9 months ago

SNR-104 Configure MPC Vault to work with x/identity

prnk28 commented 9 months ago
sequenceDiagram
    participant XIdentity as X/Identity
    participant XService as X/Service
    participant Gateway
    participant Client

    XIdentity->>XService: GenerateID
    XService->>Gateway: CredRequest
    Gateway->>Client: CredOps
    Client->>Gateway: Register
    Gateway->>XService: Credentials
    XService->>XIdentity: RegisterID
    XIdentity->>XService: CreateAcc
    XService->>XIdentity: InsertWitness
    XIdentity->>XService: CreateVault
    XService->>Gateway: JWT
    XIdentity->>XService: InsertId