-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from jpeng-go/master
add gm
- Loading branch information
Showing
7 changed files
with
1,331 additions
and
1,154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 30 additions & 30 deletions
60
...chain33/javasdk/model/sm2/SM2KeyPair.java → .../chain33/javasdk/model/gm/SM2KeyPair.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
Oops, something went wrong.