@@ -1,20 +0,0 @@ | |||||
package com.jd.blockchain; | |||||
import static org.junit.Assert.assertTrue; | |||||
import org.junit.Test; | |||||
/** | |||||
* Unit test for simple App. | |||||
*/ | |||||
public class AppTest | |||||
{ | |||||
/** | |||||
* Rigorous Test :-) | |||||
*/ | |||||
@Test | |||||
public void shouldAnswerWithTrue() | |||||
{ | |||||
assertTrue( true ); | |||||
} | |||||
} |
@@ -66,6 +66,28 @@ | |||||
</execution> | </execution> | ||||
</executions> | </executions> | ||||
</plugin> | </plugin> | ||||
<!-- 生成SHA-256校验文件 --> | |||||
<plugin> | |||||
<groupId>net.nicoulaj.maven.plugins</groupId> | |||||
<artifactId>checksum-maven-plugin</artifactId> | |||||
<version>1.8</version> | |||||
<executions> | |||||
<execution> | |||||
<goals> | |||||
<goal>artifacts</goal> | |||||
</goals> | |||||
</execution> | |||||
</executions> | |||||
<configuration> | |||||
<algorithms> | |||||
<algorithm>SHA-256</algorithm> <!--采用SHA-256算法,还支持其他算法--> | |||||
</algorithms> | |||||
<file>${project.basedir}/target/deployment-peer-${project.version}.zip</file><!--给zip文件进行加密--> | |||||
<xmlSummary>true</xmlSummary><!--生成XML格式的md5文件--> | |||||
<xmlSummaryFile>${project.basedir}/target/SHA-256.xml</xmlSummaryFile> | |||||
</configuration> | |||||
</plugin> | |||||
</plugins> | </plugins> | ||||
</build> | </build> | ||||
</project> | </project> |
@@ -101,6 +101,28 @@ | |||||
</executions> | </executions> | ||||
</plugin> | </plugin> | ||||
<!-- 生成SHA-256校验文件 --> | |||||
<plugin> | |||||
<groupId>net.nicoulaj.maven.plugins</groupId> | |||||
<artifactId>checksum-maven-plugin</artifactId> | |||||
<version>1.8</version> | |||||
<executions> | |||||
<execution> | |||||
<goals> | |||||
<goal>artifacts</goal> | |||||
</goals> | |||||
</execution> | |||||
</executions> | |||||
<configuration> | |||||
<algorithms> | |||||
<algorithm>SHA-256</algorithm> <!--采用SHA-256算法,还支持其他算法--> | |||||
</algorithms> | |||||
<file>${project.basedir}/target/deployment-peer-${project.version}.zip</file><!--给zip文件进行加密--> | |||||
<xmlSummary>true</xmlSummary><!--生成XML格式的md5文件--> | |||||
<xmlSummaryFile>${project.basedir}/target/SHA-256.xml</xmlSummaryFile> | |||||
</configuration> | |||||
</plugin> | |||||
</plugins> | </plugins> | ||||
</build> | </build> | ||||
</project> | </project> |
@@ -36,8 +36,8 @@ | |||||
<properties> | <properties> | ||||
<bft-smart.version>0.3.0.RELEASE</bft-smart.version> | <bft-smart.version>0.3.0.RELEASE</bft-smart.version> | ||||
<data-explorer.version>1.1.0.RELEASE</data-explorer.version> | |||||
<manager-explorer.version>1.1.0.RELEASE</manager-explorer.version> | |||||
<data-explorer.version>1.2.0-SNAPSHOT</data-explorer.version> | |||||
<manager-explorer.version>1.2.0-SNAPSHOT</manager-explorer.version> | |||||
<commons-io.version>2.4</commons-io.version> | <commons-io.version>2.4</commons-io.version> | ||||
<mongo.driver.version>3.3.0</mongo.driver.version> | <mongo.driver.version>3.3.0</mongo.driver.version> | ||||
<shiro.version>1.2.2</shiro.version> | <shiro.version>1.2.2</shiro.version> | ||||
@@ -8,13 +8,10 @@ import com.jd.blockchain.crypto.AsymmetricKeypair; | |||||
import com.jd.blockchain.crypto.Crypto; | import com.jd.blockchain.crypto.Crypto; | ||||
import com.jd.blockchain.crypto.HashDigest; | import com.jd.blockchain.crypto.HashDigest; | ||||
import com.jd.blockchain.crypto.HashFunction; | import com.jd.blockchain.crypto.HashFunction; | ||||
import com.jd.blockchain.crypto.SignatureDigest; | |||||
import com.jd.blockchain.crypto.SignatureFunction; | |||||
import com.jd.blockchain.ledger.DigitalSignature; | import com.jd.blockchain.ledger.DigitalSignature; | ||||
import com.jd.blockchain.ledger.NodeRequest; | import com.jd.blockchain.ledger.NodeRequest; | ||||
import com.jd.blockchain.ledger.TransactionRequest; | import com.jd.blockchain.ledger.TransactionRequest; | ||||
import com.jd.blockchain.ledger.TransactionResponse; | import com.jd.blockchain.ledger.TransactionResponse; | ||||
import com.jd.blockchain.transaction.DigitalSignatureBlob; | |||||
import com.jd.blockchain.transaction.SignatureUtils; | import com.jd.blockchain.transaction.SignatureUtils; | ||||
import com.jd.blockchain.transaction.TransactionService; | import com.jd.blockchain.transaction.TransactionService; | ||||
import com.jd.blockchain.transaction.TxRequestMessage; | import com.jd.blockchain.transaction.TxRequestMessage; | ||||