ypeckstadt / hyperledger-composer-rest-server Goto Github PK
View Code? Open in Web Editor NEWHyperledger Composer implementation wtih custom REST server
Hyperledger Composer implementation wtih custom REST server
Due to time constraints and slapping this code together quite fast, I forgot a few important features.
Currently I am not closing the business network connection after every connect
I need to call businessNetworkConnection.disconnect()
at the end of every promise chain.
In the gulpfile.js, version 3 gulp is used i mean syntax of gulp 3 but the packages specifies that gulp 4 .
either update the code in gulpfile.js or degrade the version.
thanks in advance
Revoke identity when deleting a driver is missing.
The id here is a unique ID that is returned when issueing a new identity. It is not the driver id-email. It is a UUID.
Needs to be stored in the passport-token or driver data so it can be accessed on deletion.
composerConnection.bizNetworkConnection.revokeIdentity(id)
Due to time constraints and slapping this code together quite fast, I forgot a few important features.
When creating a driver a new identity needs to be registered and the id card needs to be imported.
// issue a new identity by composer-client
const identity = await composerConnection.bizNetworkConnection.issueIdentity(
composerConnection.composerModelFactory.getNamespaceForResource(ComposerTypes.Driver, payload.id),
payload.email
);
// import new Id card
await this.connectionManager.importNewIdCard(identity.userID, identity.userSecret);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.