Class Ed25519PublicKey

    • Constructor Detail

      • Ed25519PublicKey

        public Ed25519PublicKey​(byte[] publicKey)
      • Ed25519PublicKey

        public Ed25519PublicKey()
    • Method Detail

      • loadPublicKey

        public void loadPublicKey​(byte[] publicKey)
        Description copied from class: AbstractPublicKey
        Loads a public key from a byte array
        Specified by:
        loadPublicKey in class AbstractPublicKey
        Parameters:
        publicKey - the public key bytes
      • readPublicKey

        public void readPublicKey​(java.io.Reader reader)
                           throws java.io.IOException
        Description copied from class: AbstractPublicKey
        Reads the public key from a file
        Specified by:
        readPublicKey in class AbstractPublicKey
        Parameters:
        reader - the source filename
        Throws:
        java.io.IOException - thrown if an error occurs reading the file
      • writePublicKey

        public void writePublicKey​(java.io.Writer writer)
                            throws java.io.IOException
        Description copied from class: AbstractPublicKey
        Writes the public key to a file
        Specified by:
        writePublicKey in class AbstractPublicKey
        Parameters:
        writer - the target to write the public key
        Throws:
        java.io.IOException - thrown if an error occurs writing the file
      • verify

        public java.lang.Boolean verify​(byte[] message,
                                        byte[] signature)
        Description copied from class: AbstractPublicKey
        Verifies message with given signature
        Specified by:
        verify in class AbstractPublicKey
        Parameters:
        message - the signed message
        signature - the signature to check against
        Returns:
        true if matches, false otherwise