hyperchain / hyperchain Goto Github PK
View Code? Open in Web Editor NEWOfficial Go implementation of the hyperchain protocol
Home Page: http://docs.hyperchain.cn/
License: GNU Lesser General Public License v3.0
Official Go implementation of the hyperchain protocol
Home Page: http://docs.hyperchain.cn/
License: GNU Lesser General Public License v3.0
Tcert | Tcert (Transaction Cert)为交易证书,不同于其他几类证书需要部署前线下签发,TCert是节点在运行中使用ECert自动签发的。TCert 用于实现伪匿名交易,在发起交易的时候需要使用TCert相匹配的私钥对交易进行加密,TCert可通过API接口向节点申请,并由节点签发,每一条Transaction可以用一个新的TCert进行签名,可以实现每条交易的相对匿名,但是可以由签发方审查。这里需注意的是向A节点申请的TCert只能用于和A节点间的通信。 |
---|
这个Tcert 的意思没有太明白,是如果client要发送一笔交易,比如我有一个私钥,那我需要申请一个与这个私钥相对应的Tcert 证书,并且用这个私钥对交易进行签名。才可以将交易投送到我这个节点的交易池或者才可以将交易转发给他节点进行打包,我的理解在将这笔交易投送的交易池或者转发给其他节点的时候,这笔交易已经是解密后的了吧,这样所有其他节点才可以执行啊。不知道Tcert 的意义是什么?
用免费试用版(合并版,参考的wiki:https://docs.hyperchain.cn/document/detail?type=1&id=58)的安装包搭建了4个节点区块链
在调用时间复杂度大概1e6的合约方法的时候,抛出了异常,信息如下:
Exception in thread "main" cn.hyperchain.sdk.exception.RequestException: Invoke contract failed: INVOKE_CONTRACT_FAILED:
Caused by: java/lang/RuntimeException:out of gas
at cn.hyperchain.sdk.request.Request.send(Request.java:139)
at cn.hyperchain.sdk.request.PollingRequest.send(PollingRequest.java:64)
at cn.hyperchain.sdk.response.PollingResponse.polling(PollingResponse.java:65)
请问如何解决?
在本地跑了一下2.0版本的flato,部署合约时总是报错invalid signature,原本以为是我代码问题,尝试装了1.0版本,重新部署合约,问题得到解决。
HyperchainAPI.newAccountRawSM2() got exception:
Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.bouncycastle.math.ec.ECPoint$AbstractFp.(Lorg/bouncycastle/math/ec/ECCurve;Lorg/bouncycastle/math/ec/ECFieldElement;Lorg/bouncycastle/math/ec/ECFieldElement;)V from class cn.hyperchain.sdk.sm.sm2.SM2
cn.hyperchain.sdk.exception.RequestException: Deploy contract failed: DEPLOY_CONTRACT_FAILED:param error:
Caused by: missing contract jar buf or buf length
at cn.hyperchain.sdk.request.Request.send(Request.java:58)
at cn.hyperchain.sdk.request.PollingRequest.send(PollingRequest.java:47)
at cn.hyperchain.sdk.response.TxHashResponse.polling(TxHashResponse.java:51)
at TestSBank.testSBank(TestSBank.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:220)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:53)
502 Bad Gateway
nginx/1.12.2
hyperchain源代码没有开源么,请问是否有开源计划
May I know where is your code and running script?
I wanna have a try!
运行不了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.