Hyperledger design for multiple asset types -
i working on hyperledger prototype multiple currency savings account scenario students. in basic terms, need support multiple users different schools, each user able store in e-wallet in multiple currencies. @ first, support usd , cny.
what hyperledger fabric design (better scalability, maintainability in case new currencies supported in future)?
- use json string value in data store, use couchdb better rich queries on chaincode data. e.g. key=user,value={"usd":100, "cny":100}
- each currency handling new channel, own set of chaincode.
please guys, new hyperledger , useful if can explain response too.
thank in advance!
in order implement currency on top of hyperledger fabric need implement own vscc (validation system chaincode) because need prevent double spending.
then need plug file.
Comments
Post a Comment