Comments (12)
what is the schema of a txnId
? Does this support tags as in other txnId
?
for example,
L5AD5g65TDQr1PPHHRoiGf1|recipeIngredient|1.0
vs
L5AD5g65TDQr1PPHHRoiGf1|recipeIngredient|1.0|someTag
.
from indy-hipe.
I think a note should be added around indy_parse_GET_RICH_SCHEMA_response
needing to support JSON-LD and custom-defined JSON-LD types.
from indy-hipe.
- in meta block of the txn, should type be excluded since it is another form of the 201 txn.type?
from indy-hipe.
I think get_rich_schema
should take the schema @id
as the parameter to retrieve the rich schema instead of a dest, name, version (, tag?).
Forcing the client to keep track of dest, name, version (, tag?) just so those values can be used to recreate the id on the server-side is not user-friendly and may cause client code to parse an @id
to retrieve them. I understand they are separated so they could be used as search queries on the ledger, but this functionality is not present and there is no published timeline to build out such functionality.
from indy-hipe.
when creating txnId
, is the marker value 8?
from indy-hipe.
- It is unclear to me who is creating the schema
@id
, the client or server? Should the@id
be included in the txn set request? If so, the rich schema example is missing an@id
key in the data.schema dict. I think the@id
needs to be created by the client because the client signs the txn before it is sent. If the server creates the@id
and appends it into the schema, the signature for the data being stored in the rocks DB will be different than the original signed data in the txn, which does not feel right to me.
The client should create the '@id'. The schema creation (SET_RICH_SCHEMA) should include the '@id'. The example should be modified to reflect this.
from indy-hipe.
- Is
txnId
in the set response the same thing as@id
?
No. The 'txnId' is independent of the '@id'. The 'txId' is whatever the ledger wants to use to identify the transaction on the ledger.
txnId
in set response has the form ofL5AD5g65TDQr1PPHHRoiGf1|recipeIngredient|1.0
, with '|' as the delimiter while the currenttxnId
s have ':' as the delimiter, for example,FC4aWomrA13YyvYC1Mxw7:3:CL:14:some_tag
. Is there a good reason to break up continuity and use '|' instead of ':'?
'txnId's are not specified by this HIPE.
from indy-hipe.
what is the schema of a
txnId
? Does this support tags as in othertxnId
?
for example,
L5AD5g65TDQr1PPHHRoiGf1|recipeIngredient|1.0
vs
L5AD5g65TDQr1PPHHRoiGf1|recipeIngredient|1.0|someTag
.
I believe your question is, "Should tags be supported?" Current schemas do not appear to support tags. We do not anticipate adding them to rich schema schemas.
from indy-hipe.
I think a note should be added around
indy_parse_GET_RICH_SCHEMA_response
needing to support JSON-LD and custom-defined JSON-LD types.
We will add a note.
from indy-hipe.
- in meta block of the txn, should type be excluded since it is another form of the 201 txn.type?
Type is being included to support future discoverability functionality.
from indy-hipe.
I think
get_rich_schema
should take the schema@id
as the parameter to retrieve the rich schema instead of a dest, name, version (, tag?).
Forcing the client to keep track of dest, name, version (, tag?) just so those values can be used to recreate the id on the server-side is not user-friendly and may cause client code to parse an@id
to retrieve them. I understand they are separated so they could be used as search queries on the ledger, but this functionality is not present and there is no published timeline to build out such functionality.
Agreed. The client could be simplified by allowing the rich-schema schema to be retrieved by the '@id' value instead of dest, name, version.
from indy-hipe.
when creating
txnId
, is the marker value 8?
8 would follow the existing pattern as the next available marker for rich-schema schemas.
from indy-hipe.
Related Issues (2)
- Review of HIPE 138 HOT 3
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 indy-hipe.