Coder Social home page Coder Social logo

Comments (4)

frank-bee avatar frank-bee commented on September 20, 2024 1

@domwoe @etschelp
Thanks for the fruitful discussion.

For the time being we will impl. the following

  1. schemes can be added via configuration or via API
  2. the ones added via configuration are read-only and cannot be modified via API but only configuration
  3. adding via configuration is not additive but overwrites ("set behavior").
  4. configuration format is like this (map of "schema id : label")
oagent:    
  schemes:
    M6Mbe3qx7vB4wpZF4sBRjt:2:bank_account:1.0 : "Bank Account"
    M6Mbe3qx7vB4wpZasdfsdaf4sBRjt:2:foo:1.0 : "Foo"
  1. labels can contain any chars , incl whitespaces
  2. schema versions are ignored (they are implicitly part of the schema id, that's it)

from business-partner-agent.

domwoe avatar domwoe commented on September 20, 2024

Needs more explanation.

  • Should this allow to add additional schemas/credential types?
  • Should this only allow to set schema ids for different ledgers?

from business-partner-agent.

domwoe avatar domwoe commented on September 20, 2024

I'd like to register new schemas in this way. These new schemas should be usable as templates for documents.
We can even add them to the public profile by generating an ad hoc context if no explicit context mapping is provided.

We could do it like this:

{
          "@context": { 
            "id": "@id",
			"type": "@type", 
            "sc": "did:sov:iil:1242415245#", //schemaId
            "attribute": {                   // for each attribute in schema 
              "@id": "sc:attribte"  
            }
          }
        }
        

Example : AL3qjjhFYKgChRmWweMibV:2:eid_min:0.1

Attributes:

  • familyName
  • name
{
          "@context": { 
            "id": "@id",
            "type": "@type", 
            "sc": "did:sov:iil:AL3qjjhFYKgChRmWweMibV:2:eid_min:0.1#", 
            "familyName": {
              "@id": "sc:familyName"  
            },
            "name": {
              "@id": "sc:name"  
            }
          }
        }
        

This explicit context would be added in addition to the IndyCredential context

from business-partner-agent.

frank-bee avatar frank-bee commented on September 20, 2024

For simplicity, I thought of the following impl ( at least for the time being) :
the schemes added via configuration will be added to the database as well - with a flag "read-only".
During init phase of the app, all these "read-only" schemes will be purged in the DB and re-written.
We can later refactor this...

from business-partner-agent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.