corda

How to deploy a cordapp with a business logic which is private to selected parties?

我是研究僧i 提交于 2019-12-06 13:31:13
I have a network with 5 nodes, where node 1 is Company ABC and node 2 to node 5 are customer1, customer2 , customer3 etc. If customer1 uses Company ABC's product and if he gets a profit , he has to pay certain amount to Company ABC. The profit formula varies from customer to customer and customers should not see other customers profit formula. One customer can use the formula as A * B , where another customer can use as A+B*10 I referred the link: When deploying Corda nodes across the network, which JARs have to be exactly the same? My doubts. In my scenario , where should I write the formula

Migrating data from Corda 2 to Corda 3

霸气de小男生 提交于 2019-12-06 11:12:33
问题 https://docs.corda.net/changelog.html#version-3-0 states that "an H2 database instance of Corda 1.0 and 2.0 cannot be reused for Corda 3.0". Does this means that if I have a Cordapp running Corda 2.0 and I want to upgrade my CorDapp to Corda 3.0, I need to discard all my node's stored information from Corda 2.0, start fresh and re-run all the transactions that were processed before accepting new ones? Let's take an example. I have a Corda 2.0 CorDapp to record cash-in and cash-out. This

Implementing schedulable states in corda [closed]

喜夏-厌秋 提交于 2019-12-06 10:18:38
Closed . This question needs to be more focused . It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post . Closed 2 years ago . How do we implement schedulable state in corda? In my case i need to issue a monthly statement, so can schedulablestate be used for this? There are a number of things you need to do. Firstly, your state object needs to implement the SchedulableState interface. It adds an additional method: interface SchedulableState : ContractState { /** * Indicate whether there is some activity

In Corda, how can nodes be assigned public roles?

空扰寡人 提交于 2019-12-06 09:37:13
问题 I have written a CorDapp where I want to treat counterparty nodes differently based on their "role". For example, I may want to check that a counterparty node has the "cash issuer" role before requesting cash issuance from them. What's the best way to define public node roles in this way? 回答1: As of Corda 3, there isn't built-in support for this feature. Support is expected to be added in a future release. In the meantime, there are several workarounds: Using an oracle, as Kid101 mentions

Is it possible to suspend a flow such that it can be resumed with an RPC-call?

非 Y 不嫁゛ 提交于 2019-12-06 03:39:08
I am trying to implement the following use-case in Corda: FlowA has been invoked on PartyA via startFlowDynamic . FlowA creates a partially signed transaction and invokes FlowB on PartyB via sendAndReceive . A human user shall now review and manually approve this transaction. Ideally FlowB should suspend after receiving the transaction. I would like to be able to query for suspended instances of FlowB via RPC, and present those (or rather some representation of the transaction therein) to the user in my UI. Then, after the user actions his approval, I would like to resume FlowB via RPC, which

IllegalStateException Error while generating node info files

风流意气都作罢 提交于 2019-12-05 20:52:35
I am getting the following issue when I perform the gradle clean deployNodes command on AWS Ubuntu machine for Corda project: Error while generating node info files I am using Corda ENT libs. And interestingly the same corda project works on the Windows machine but fails on AWS machine. JDK 1.8.181 and gradle 4.10.2 on AWS and windows machine. It asks to check logs files but logs show nothing related to any error ... Can you please help with this issue? It's giving an exception for: if (!process.waitFor(3, TimeUnit.MINUTES)) { process.destroyForcibly() throw IllegalStateException("Error while

Browse Corda database tables using H2 web interface shows synonyms errors

老子叫甜甜 提交于 2019-12-05 12:53:57
I followed the instructions at this link to browse corda database. However, I am getting below errors when I queried for tables. Error: Table "SYNONYMS" not found; SQL statement: SELECT TABLE_CAT, TABLE_SCHEM, TABLE_NAME, TABLE_TYPE, REMARKS, TYPE_CAT, TYPE_SCHEM, TYPE_NAME, SELF_REFERENCING_COL_NAME, REF_GENERATION, SQL FROM (SELECT SYNONYM_CATALOG TABLE_CAT, SYNONYM_SCHEMA TABLE_SCHEM, SYNONYM_NAME as TABLE_NAME, TYPE_NAME AS TABLE_TYPE, REMARKS, TYPE_NAME TYPE_CAT, TYPE_NAME TYPE_SCHEM, TYPE_NAME AS TYPE_NAME, TYPE_NAME SELF_REFERENCING_COL_NAME, TYPE_NAME REF_GENERATION, NULL AS SQL FROM

Need to create a new node without redeploying nodes in Corda?

与世无争的帅哥 提交于 2019-12-05 07:13:38
问题 I want to create a new node without redeploying my existing nodes in Corda environment . Is it possible to add another node from within the application without deploying it again . If yes then how we will specify its ports for rpc and database . For example : In my application I have a system in which there are different merchants and I want to add a new merchant to the system without redeployment . 回答1: Yes it is possible (Imagine a configuration where nodes / actors couldn't join or leave

How can I configure security per node in Corda using Gradle?

送分小仙女□ 提交于 2019-12-04 22:33:14
I want to add the security property to my node configuration using Gradle. I'm trying to do something like the below: node { name "O=Bank_A,L=New York,C=US" p2pPort 10005 rpcSettings { address("localhost:10006") adminAddress("localhost:10046") } h2Port 9005 cordapps = [ "$project.group:bank-abc:$project.version", "$project.group:shared-contracts-states:$project.version", "$corda_release_group:corda-finance:$corda_release_version" ] security = { authService = { dataSource = { type = "DB" passwordEncryption = "SHIRO_1_CRYPT" connection = { jdbcUrl = "jdbc:h2:tcp://10.0.75.1:9014/node" username =

How do I define multiple responder flows, each in a different CorDapp?

扶醉桌前 提交于 2019-12-04 15:32:44
In Corda, I want to create several different versions of a responder flow, each to be used by a different node. To do so, I understand that I need to define each responder flow in a separate CorDapp. However, they also all need to depend on the initiating flow class via the InitiatedBy annotation. How can I structure the CorDapps containing the different implementations of the responder flow so that they all depend on this common initiating flow, without including all the responder flows in the same CorDapp where I defined the initiating flow? Well, the question comes that, Why owner of