Skip to content

Commit

Permalink
Merge pull request #26 from jpeng-go/master
Browse files Browse the repository at this point in the history
add gm
  • Loading branch information
andyYuanFZM authored Jun 3, 2020
2 parents aea1305 + da99df6 commit 1c026e5
Show file tree
Hide file tree
Showing 7 changed files with 1,331 additions and 1,154 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.59</version>
<version>1.65</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
package cn.chain33.javasdk.model.sm2;

import java.math.BigInteger;

import org.bouncycastle.math.ec.ECPoint;

/**
* SM2密钥对Bean
* @author Potato
*
*/
public class SM2KeyPair {

private final ECPoint publicKey;
private final BigInteger privateKey;

SM2KeyPair(ECPoint publicKey, BigInteger privateKey) {
this.publicKey = publicKey;
this.privateKey = privateKey;
}

public ECPoint getPublicKey() {
return publicKey;
}

public BigInteger getPrivateKey() {
return privateKey;
}

}
package cn.chain33.javasdk.model.gm;

import java.math.BigInteger;

import org.bouncycastle.math.ec.ECPoint;

/**
* SM2密钥对Bean
* @author Potato
*
*/
public class SM2KeyPair {

private final ECPoint publicKey;
private final BigInteger privateKey;

SM2KeyPair(ECPoint publicKey, BigInteger privateKey) {
this.publicKey = publicKey;
this.privateKey = privateKey;
}

public ECPoint getPublicKey() {
return publicKey;
}

public BigInteger getPrivateKey() {
return privateKey;
}

}
Loading

0 comments on commit 1c026e5

Please sign in to comment.