com.founder.mip.utils.SM2KeyPair Maven / Gradle / Ivy
package com.founder.mip.utils;
import java.math.BigInteger;
import org.bouncycastle.math.ec.ECPoint;
public class SM2KeyPair {
private final ECPoint publicKey;
private final BigInteger privateKey;
public SM2KeyPair(ECPoint publicKey, BigInteger privateKey) {
this.publicKey = publicKey;
this.privateKey = privateKey;
}
public ECPoint getPublicKey() {
return this.publicKey;
}
public BigInteger getPrivateKey() {
return this.privateKey;
}
}