daml-on-fabric | Enabling DAML applications to run on Hyperledger Fabric | Blockchain library

 by   digital-asset Java Version: Current License: Apache-2.0

kandi X-RAY | daml-on-fabric Summary

kandi X-RAY | daml-on-fabric Summary

daml-on-fabric is a Java library typically used in Financial Services, Banks, Payments, Blockchain applications. daml-on-fabric has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. However daml-on-fabric build file is not available. You can download it from GitHub.

Ledger implementation enabling DAML applications to run on Hyperledger Fabric 2.x.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              daml-on-fabric has a low active ecosystem.
              It has 23 star(s) with 17 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 3 open issues and 15 have been closed. On average issues are closed in 25 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of daml-on-fabric is current.

            kandi-Quality Quality

              daml-on-fabric has 0 bugs and 0 code smells.

            kandi-Security Security

              daml-on-fabric has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              daml-on-fabric code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              daml-on-fabric is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              daml-on-fabric releases are not available. You will need to build from source code and install.
              daml-on-fabric has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed daml-on-fabric and discovered the below as its top functions. This is intended to give you an instant insight into daml-on-fabric implemented functionality, and help decide if they suit your requirements.
            • Init network configuration
            • Get local user
            • Creates the properties
            • Runs the chaincode
            • Convert a yaml policy file to byte array
            • Parse identities from identity map
            • Parse the endorsement policy from the document
            • Returns the current time in milliseconds
            • Given a chaincode response return an error string
            • Query chaincode
            • Get the list of package names
            • Query the byte array for package list
            • Gets the package
            • Gunzip the given data
            • Returns the Ledger ID for this application
            • Query a system chaincode
            • Writes the given commit log
            • Gets the ledger ID for this context
            • Returns the height of the commit block
            • Reads the commit
            • Returns the value associated with the specified key
            Get all kandi verified functions for this library.

            daml-on-fabric Key Features

            No Key Features are available at this moment for daml-on-fabric.

            daml-on-fabric Examples and Code Snippets

            No Code Snippets are available at this moment for daml-on-fabric.

            Community Discussions

            QUESTION

            How a DAML application is adapted from Fabric network?
            Asked 2020-Sep-09 at 09:20

            I was reading this documentation https://github.com/digital-asset/daml-on-fabric but I am confused. I am trying to understand the workflow and the architecture for the daml on fabric network. The network has 2 orgs and each org has 1 peer.On step 4 are allocating 5 daml parties. Quickstart example has 3 signatories(issuer,owner,buyer). To sum up, what is the match between daml parties and fabric orgs? I think that could be allocated even more daml parties without to change fabric network. They interact from one node? What is the purpose to add other nodes on step 11?

            ...

            ANSWER

            Answered 2020-Sep-09 at 09:20

            Parties don't have a cryptographic identity in DAML Ledgers, only nodes do. As part of the shared ledger state, every DAML-enabled infrastructure maintains a mapping from Party to Node. This relationship is usually described as a Node "hosting" a Party. The Node hosting a Party is able to submit transactions using that Party's authority and is guaranteed to receive any transactions visible to that Party.

            In the tutorial you are referring to, all parties are allocated on a single Node, which then hosts them. This does indeed not make that much sense in practice. It would be more sensible to set up a network with three orgs and allocate the three parties on the peer nodes in the three orgs, respectively. Given the way the example is set up, that should be straightforward.

            Source https://stackoverflow.com/questions/63758955

            QUESTION

            Is it possible to deploy a daml smart contract with bots to Hyperledger Fabric?
            Asked 2020-Mar-11 at 00:11

            I deployed quickstart tutorial based on the example "daml-on-fabric" https://github.com/hacera/daml-on-fabric and after that i tried to deploy the pingpong example from dazl https://github.com/digital-asset/dazl-client/tree/master/samples/ping-pong. The bots from the example works fine on daml ledger. However, when i try to deploy this example on fabric the bots are unable to send the transactions. Everything works fine based on this read me from https://github.com/hacera/daml-on-fabric/blob/master/README.md. The smart contract look like to be deployed on Fabric. The error is when i try to use the bots from pingpong python files https://github.com/digital-asset/dazl-client/blob/master/samples/ping-pong/README.md

            ...

            ANSWER

            Answered 2020-Mar-11 at 00:11

            From the error message it looks like the parties defined in the quick start example have not been allocated on the ledger, hence the "Party not known on ledger" error.

            You can follow the steps in https://docs.daml.com/deploy/index.html with use of daml deploy --host= --port=, which will both upload the dars and allocate the parties on the ledger.

            You can also run just the allocate party command daml ledger allocate-parties, which will allocate based on the parties defined you your daml.yaml.

            Source https://stackoverflow.com/questions/60619163

            QUESTION

            PartyNotKnownOnLedger (Party not known on ledger)
            Asked 2020-Feb-20 at 18:00

            I am using DAML-on-Fabric (running DAML based on Hyperledger Fabric).

            When I login with Alice and issue a IOU, the app shows PartyNotKnownOnLedger (Party not known on ledger).

            How do I fix this?

            ...

            ANSWER

            Answered 2020-Feb-20 at 18:00

            As of DAML 0.13.52, the sandbox shipped in the SDK implicitly "allocates" parties for you. This is usually not the case when using actual distributed ledgers (such as Hyperledger Fabric).

            To allocate the party, you can either use the SDK assistant daml ledger allocate-parties command or apply the allocateParty function using DAML script (documentation here).

            Alternatively, apps from other languages can use the AllocateParty RPC in the PartyManagementService in the Ledger API. The Ledger API has available bindings in Java and Scala; there is no available wrapper for the PartyManagementService but you can use the raw gRPC-generated code to use them (more on the Ledger API here).

            Since the Ledger API is defined with gRPC you can use any other language with gRPC support (more on the topic here).

            Source https://stackoverflow.com/questions/60296316

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install daml-on-fabric

            You can download it from GitHub.
            You can use daml-on-fabric like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the daml-on-fabric component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/digital-asset/daml-on-fabric.git

          • CLI

            gh repo clone digital-asset/daml-on-fabric

          • sshUrl

            git@github.com:digital-asset/daml-on-fabric.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Blockchain Libraries

            bitcoin

            by bitcoin

            go-ethereum

            by ethereum

            lerna

            by lerna

            openzeppelin-contracts

            by OpenZeppelin

            bitcoinbook

            by bitcoinbook

            Try Top Libraries by digital-asset

            daml

            by digital-assetScala

            canton

            by digital-assetScala

            dev-env

            by digital-assetShell

            ex-cbdc

            by digital-assetTypeScript

            ex-supply-chain

            by digital-assetTypeScript