Giter VIP home page Giter VIP logo

hyperledger-composer-rest-server's People

Contributors

ypeckstadt avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hyperledger-composer-rest-server's Issues

Disconnect business network after every transaction or query

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.

issue in gulp file

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 driver

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)

Register new identity for new driver

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);

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.