rchain-community / rchain-dbr

RChain Distributed Budgeting and Rewards Bounty Web Site
https://rewards.rchain.coop/
10 stars 6 forks source link

compatibility with lifeid verified credentials #16

Open dckc opened 6 years ago

dckc commented 6 years ago

The springboard currently produces verified credentials in this format:

@"claim"!(@"binding"!(@"discord"!(@"guild"!("257555930173014017") |
 @"id"!("358096357862408195") |
 @"role"!("412648251196702741") |
 @"userName"!("dckc#3040")) |
 @"publicKey"!("d914c40bf067a92ff216238ad4e0fedd7f2af9e2862675d131a3119aa88c82bb")) |
 @"memberSigTime"!("2018-10-25T20:49") |
 @"memberSignature"!("c16c12cf7b427f91eaf51ad6d229228eea182f5551c1dd07ba82b5c1b1161262bf2fb00ec2172061d100835c1c7afc5bf38cafe008afc5a749ef89c7b0d81b0d")) |
 @"endorsement"!("0e01747d79cc4b108468c1ebeb1b4e31cbae237459b924cd43358b007ef3315d18b451d40362619ff8b3aa06ac738f3da8a70fe26d81d46cb73b48571cc0ba00")

Look into producing the lifeid format and even using their registry:

{
  "exp": 1547207254,
  "iat": 1537207254,
  "id": "localhost:9003/v1/claims/85781799",
  "type": [
    "Credential",
    "EmailCredential"
  ],
  "issuer": "localhost:9003",
  "issued": "2018-09-17T11:00:54Z",
  "name": "lifeID issued verified credential",
  "claim": {
    "id": "did:life:16666cbe4f07c159c421e11159977f682b7ab9678c4819969",
    "email": "jon@lifeid.io"
  },
  "revocation": {
    "key": "0x473a2414a0Dd1867D222d3F6278e14b10484c717",
    "type": "Secp256k1"
  },
  "iss": "did:life:166662bb3bdcc55d1b89d14d0110df59b68c6d78f5d7ec9179"
}

cc @cboscolo