corda

How Do I Kill A Flow In The Hospital?

风流意气都作罢 提交于 2020-12-13 03:21:06
问题 The Hospital docs says: you should be able to call killFlow with the UUID associated with the failing flow in the node’s log messages. I obviously can't access the node logs from my RPC client. So how am I supposed to get a list of flows in the hospital, find the reason why they were put in the hospital and kill the ones that I know will never complete? 回答1: Open the node terminal. Type run stateMachinesSnapshot to see all of the current flows. Get the ID of the hospitalized flow then run

Is FungibleAsset compatible with Java CorDapps?

隐身守侯 提交于 2020-08-10 19:17:19
问题 This has been asked here but I will try to approach the question differently. A quick review of Corda's code: interface FungibleState<T : Any> : ContractState { val amount: Amount<T> } FungibleAsset then extends FungibleState: interface FungibleAsset<T : Any> : FungibleState<Issued<T>>, OwnableState { override val amount: Amount<Issued<T>> @get:SerializableCalculatedProperty val exitKeys: Collection<PublicKey> fun withNewOwnerAndAmount(newAmount: Amount<Issued<T>>, newOwner: AbstractParty):

公链分析报告

大城市里の小女人 提交于 2020-08-06 20:13:38
对于许可链,三种区块链协议已成为首选: Hyperledger Fabric , Enterprise Ethereum 和 R3 Corda 。Fabric和企业以太坊都是任何行业的通用工具,而Corda是为金融行业定制设计的。每个协议选项都有非常不同的沿袭和设计重点,并且这三个协议都已被当今运行于生产质量系统上的严肃的企业和政府广泛采用。 Enterprise Ethereum Fabric Corda 节点许可 基于智能合约的规则,将基于文件的每个节点的规则作为本地替代。 可在节点,通道和联盟级别上配置。 受信任的网络地图服务在每个节点上均辅以基于文件的配置。Corda网络被划分为由单独的证书颁发机构管理的兼容性区域。 身分识别 公钥-分布式,并且在基于以太坊的链之间可互操作。通过证明与PKI耦合。 基于具有本地组织身份的PKI。在共识和许可中始终使用组织身份,而不是个人身份。 基于具有个人和组织身份的PKI。 密码学 secp256k1 可插拔(具有secp256r1和secp384r1内置的ECDSA)。 ed25519 secp256r1 secp256k1 RSA(3072bit)PKCS#1 SPHINCS-256(实验性) 交易共识 定序->执行/验证 执行->定序->验证 执行/验证->定序/公证 应用责任 将签名的事务发送到网络中的一个节点。

Corda view consumed states in terminal

青春壹個敷衍的年華 提交于 2020-07-19 01:59:51
问题 is there an easy way to view the consumed states in the terminal with the CordaRPCOps interface? It seems that vaultQuery returns unconsumed states by default and I can't figure out how to use vaultQueryBy or anything with the criteria. I know that there should be consumed states because I can see them with H2 回答1: Hi you could always write a short API to expose the states: there is a sample for /asset in corda existing samples: here is a code snippet api for your scenario: @GET @Path("asset"