kaleido-io / kaleido-iden3-samples

Sample code for using the iden3 protocol to issue verifiable claims
Apache License 2.0
5 stars 4 forks source link

custom circuits #33

Open jimthematrix opened 1 year ago

nedgar commented 1 year ago

@jimthematrix the current claim circuit is quite flexible, even with just two index and two value slots (+ subject, expiry, nonce etc). What kind of custom circuits do you think will be needed?

OBrezhniev commented 1 year ago

@jimthematrix @nedgar JFYI, soon we will release circuits with the support of selective disclosure and verifiable credentials (complex documents with any number of attributes of different types, including arrays, objects and strings).

nedgar commented 1 year ago

@OBrezhniev wow, sounds amazing! Are there any proposed schemas for VCs? Eg I'm puzzled by the use of index slot A for birthDay in the current KYC schema: https://github.com/kaleido-io/kaleido-iden3-samples/issues/22https://github.com/iden3/tutorial-examples/issues/1

OBrezhniev commented 1 year ago

@nedgar We will release a schema builder tool, and also any JSON-LD schema following Verifiable Credentials standard would work. And you will not need to specify which index/value data slots to use.

But for now you need to specify it. You can check docs of claim structure here: https://docs.iden3.io/protocol/claims-structure/#claim-schema i_2 - Index Data Slot A i_3 - Index Data Slot B v_2 - Value Data Slot A v_3 - Value Data Slot B

nedgar commented 1 year ago

@OBrezhniev the schema builder sounds great. JSON-LD can be tricky to get right.