Class KeyGenUtil


  • public class KeyGenUtil
    extends java.lang.Object
    • Constructor Detail

      • KeyGenUtil

        public KeyGenUtil()
    • Method Detail

      • generateKey

        public static Keys generateKey()
                                throws com.bloxbean.cardano.client.exception.CborSerializationException
        Throws:
        com.bloxbean.cardano.client.exception.CborSerializationException
      • getPublicKeyFromPrivateKey

        public static VerificationKey getPublicKeyFromPrivateKey​(SecretKey secretKey)
                                                          throws com.bloxbean.cardano.client.exception.CborSerializationException
        Throws:
        com.bloxbean.cardano.client.exception.CborSerializationException
      • getKeyHash

        public static java.lang.String getKeyHash​(VerificationKey vkey)
        Generate a 28 bytes hash using blake2b from a verification key
        Parameters:
        vkey -
        Returns:
        hash
      • getKeyHash

        public static java.lang.String getKeyHash​(@NonNull
                                                  @lombok.NonNull byte[] bytes)
        Generate a 28 bytes hash using blake2b from key bytes
        Parameters:
        bytes -
        Returns:
        hash
      • getPublicKeyFromPrivateKey

        public static byte[] getPublicKeyFromPrivateKey​(byte[] privateKeyBytes)