Class Secp256k1KeyParser

java.lang.Object
io.github.cdimascio.crypto.Secp256k1KeyParser

public class Secp256k1KeyParser extends Object
  • 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

      public static ECPrivateKey parseSecp256k1PrivateKey(byte[] privateKeyBytes) throws Exception
      parse secp 256k1 private key
      Parameters:
      privateKeyBytes - private key bytes
      Returns:
      private key
      Throws:
      Exception - exception