Comments (4)
@domwoe @etschelp
Thanks for the fruitful discussion.
For the time being we will impl. the following
- schemes can be added via configuration or via API
- the ones added via configuration are read-only and cannot be modified via API but only configuration
- adding via configuration is not additive but overwrites ("set behavior").
- 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"
- labels can contain any chars , incl whitespaces
- schema versions are ignored (they are implicitly part of the schema id, that's it)
from business-partner-agent.
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.
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.
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)
- clean up bpa maintainer roles HOT 4
- Create Proof Request button in Proof Template not working/implemented HOT 1
- Sever Side Paging in required areas HOT 3
- Add remaining search functionality to paginated lists/tables in backend and frontend
- Improve json-ld schema import HOT 1
- Create a MAINTAINERS.md file HOT 1
- Support for OOB invitations with attachments
- Support transaction author role
- Allow selective disclosure when answering a presentation request HOT 2
- Allow self attested attributes when answering a presentation request HOT 3
- Decouple presentation of all dif exchanges from schema config
- Server-side paging eliminates the need for store dispatches
- Deleting a partner blows up the memory/BPA HOT 1
- Add possibility to add images/files as attributes in credentials HOT 2
- Fix ledger explorer client
- DiDs in the organization profile of partners are displayed incorrectly
- Getting this message when running the script register-dids.sh HOT 2
- Error Message when running register-dids.sh script HOT 76
- .gitpod.Dockerfile contains a forbidden license and must be removed. HOT 3
- Unable to start bpa HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from business-partner-agent.