Package io.github.cdimascio.crypto
Class Secp256k1KeyParser
java.lang.Object
io.github.cdimascio.crypto.Secp256k1KeyParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ECPublicKeyparseSecp256k1CompressedPublicKey(byte[] compressedPublicKeyBytes) parse secp256k1 public keystatic ECPrivateKeyparseSecp256k1PrivateKey(byte[] privateKeyBytes) parse secp 256k1 private key
-
Constructor Details
-
Secp256k1KeyParser
public Secp256k1KeyParser()
-
-
Method Details
-
parseSecp256k1CompressedPublicKey
public static ECPublicKey parseSecp256k1CompressedPublicKey(byte[] compressedPublicKeyBytes) throws Exception parse secp256k1 public key- Parameters:
compressedPublicKeyBytes- compressed public key bytes- Returns:
- public key
- Throws:
Exception- exception
-
parseSecp256k1PrivateKey
parse secp 256k1 private key- Parameters:
privateKeyBytes- private key bytes- Returns:
- private key
- Throws:
Exception- exception
-