daml-on-sawtooth | DAML smart contract runtime engine | Blockchain library
kandi X-RAY | daml-on-sawtooth Summary
kandi X-RAY | daml-on-sawtooth Summary
daml-on-sawtooth is an integration of the DAML smart contract runtime engine, created and open sourced by Digital Asset, with Hyperledger Sawtooth blockchain as the backing DLT.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Main method .
- Convert DamlPermissionBatch batch to DamlSubmissionBatch .
- Handles events .
- Creates an address for a given namespace .
- Convenience method to convert a DAMlOperation batch to a DAML operation batch .
- Commits a commit .
- Make a leaf address .
- Returns the current health status .
- The participant id .
daml-on-sawtooth Key Features
daml-on-sawtooth Examples and Code Snippets
Community Discussions
Trending Discussions on daml-on-sawtooth
QUESTION
I am trying to understand the adoption of a DAML smart on sawtooth network. According to this tutorial https://github.com/blockchaintp/daml-on-sawtooth there is:
Sawtooth network which contains:
Rest-api
Validator
Transaction processor
postgres
devmode-engine
That are essential for the network.
- What is the role of daml-rpc and daml-tp? They act as connectors?
For example, a daml user communicates with an api with the daml platform like this image https://docs.daml.com/getting-started/app-architecture.html and after that is adopted from sawtooth network?
- Finally, where is stored the xxx.dar file?
ANSWER
Answered 2020-Oct-01 at 20:47DAML-on-Sawtooth is a specific DAML ledger implementation integrated using a full Sawtooth network deployment. leveraging Sawtooth's validation features for persistence.
The rest-api you see in that repository is actually the Sawtooth REST api used for communicating to the Sawtooth network, and that validator an implementation of Sawtooth validation as part of the commit protocol, and the transaction processor to handle DAML transactions on the Sawtooth network.
The sawtooth-daml-rpc is what implements the DAML Ledger API gRPC services, and this exposes the Ledger API that the application code interacts with. Postgres is used as an underlying index db service supporting the Ledger API.
In the https://docs.daml.com/getting-started/app-architecture.html you can conceptually swap the "Sandbox" box with "Sawtooth Network", as in the DAML-on-Sawtooth case it is the full Sawtooth network which is able to consume and return DAML that is the ledger implementation.
As with all DAML ledgers, the DAR files are uploaded through the package upload gRPC APIs and are persisted on the ledger (in this case the Sawtooth network), as are parties and transactions through the party allocation and transaction submission APIs, respectively.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install daml-on-sawtooth
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page