corda

How to create custom schema with Corda Vault Extension

无人久伴 提交于 2019-12-11 02:51:35
问题 From Corda documents, it says we can have custom schema in Vault Extension. However there is not much clarity for Vault Extension which should have ability to create/manage custom database schema pertaining to node vault database. Are we going to publish API in feature release of Corda 回答1: Inside flows, the node exposes a JDBC connection that allows you to write native custom SQL queries (as a vault extension). You can access this JDBC connection using serviceHub.jdbcSession() . If your

Corda ActiveMQConnectionTimedOutException while running server

假如想象 提交于 2019-12-11 01:45:07
问题 I am trying to run Corda application after modifying the given template. After running nodes, I am trying to run a template server. Below are the details for Corda Version: 4.0 ActiveMQ running on port 8161 task runTemplateServer(type: JavaExec) { classpath = sourceSets.main.runtimeClasspath main = 'com.template.webserver.ServerKt' args '--server.port=10050', '--config.rpc.host=localhost', '--config.rpc.port=8161', '--config.rpc.username=admin', '--config.rpc.password=admin' } After running

How backup/restore corda node?

半世苍凉 提交于 2019-12-11 01:25:26
问题 Once Corda node failed, what is the appropriate process of recovery? Corda transactions are shared only with qualified nodes for specific business network, not with every nodes. Therefore, when recovering failure node, copying data from other node would not work well, recovering from backup is required. However, backup image is not completely same for other correct nodes, I would like to know how recover consistency of corda node. 回答1: Node data storage A Corda node stores its vital

Does Corda really require a notary to achieve uniqueness consensus?

微笑、不失礼 提交于 2019-12-10 23:06:01
问题 The Corda introduction to consensus says "uniqueness consensus is provided by notaries." Are we saying that without a notary that it would be possible for A to convince B to commit a transaction to its ledger involving a state X as an input and at the same time, or later, convince C to commit a different transaction involving X to its ledger? In this situation the ledger of A would be inconsistent with that of C (or B or both depending on what transaction, if any, it chooses to commit) and A

IntelliJ IDEA - could not find org.jetbrains.kotlin:kotlin-gradle-plugins

我的梦境 提交于 2019-12-10 16:12:21
问题 Trying to open a Corda demo in IntelliJ IDEA and getting this error when it tries to import gradle settings Error:Could not find org.jetbrains.kotlin:kotlin-gradle-plugins:1.1.4. Searched in the following locations: file:/C:/Users/Default/.m2/repository/org/jetbrains/kotlin/kotlin-gradle-plugins/1.1.4/kotlin-gradle-plugins-1.1.4.pom file:/C:/Users/Default/.m2/repository/org/jetbrains/kotlin/kotlin-gradle-plugins/1.1.4/kotlin-gradle-plugins-1.1.4.jar https://repo1.maven.org/maven2/org

How to resolve a “NotSerializableException” thrown when unit testing a plain implementation of “LinearState”

五迷三道 提交于 2019-12-10 12:23:13
问题 I have a plain implementation of "LinearState" where the only parameter is a UniqueIdentifier. I have a simple Contract to go with it. When I try to put it through unit testing, however, I keep getting "NotSerializabeException". I'm using the Corda v4 java template. Testing setup with Gradle Runner on IntelliJ. I've tried annotating the class with @CordaSerializable, and the constructor with @ConstructorForDeserialization @CordaSerializable public class InvestorState implements LinearState {

Can either side of a Corda flow exist in separate Cordapps?

不打扰是莪最后的温柔 提交于 2019-12-10 11:39:30
问题 If a node wants to perform their own specific business logic within one side of a flow, how can this be implemented? For example if a company wants to call an internal company api to validate the incoming transaction data, can it do this within the flow? If so, does the flow need to be written generically so that all companies using the same Cordapp (and flow) call out to their own internal apis. Maybe the api url is stored in a local config file. Or is another option to have each company

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

a 夏天 提交于 2019-12-10 11:13:25
问题 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

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

天大地大妈咪最大 提交于 2019-12-09 22:34:21
问题 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

Error when try to deploy a node: “java.lang.IllegalArgumentException: Unrecognised algorithm: 1.2.840.10040.4.1”

妖精的绣舞 提交于 2019-12-09 19:36:29
问题 I developed a Cordapp and tried to deploy it to my workstation as a node. I followed instruction https://docs.corda.net/deploying-a-node.html#windows-installing-and-running-corda-as-a-windows-service After service starts, a server.log generates the following error message: ______ __ / ____/ _________/ /___ _ / / __ / ___/ __ / __ `/ Computer science and finance together. / /___ /_/ / / / /_/ / /_/ / You should see our crazy Christmas parties! \____/ /_/ \__,_/\__,_/ --- Corda Open Source 2.0