Interface TransactionMessage


  • public interface TransactionMessage
    An Exonum transaction message.
    • Method Detail

      • getAuthor

        PublicKey getAuthor()
        Returns a public key of the author of the transaction message.
      • getServiceId

        short getServiceId()
        Returns the identifier of the service this message belongs to.
      • getTransactionId

        short getTransactionId()
        Returns the transaction type identifier which is unique within the service.
      • getPayload

        byte[] getPayload()
        Returns the payload containing the serialized transaction parameters.
      • hash

        HashCode hash()
        Returns the SHA-256 hash of the binary message representation.
      • getSignature

        byte[] getSignature()
        Returns the Ed25519 signature over this binary message.

        The signature is not guaranteed to be valid and must be verified against the signer’s public key.

        See Also:
        CryptoFunctions.ed25519()
      • toBytes

        byte[] toBytes()
        Returns the transaction message in binary format.
      • size

        int size()
        Returns the transaction message size in bytes.
      • fromBytes

        static TransactionMessage fromBytes​(byte[] bytes)
        Creates the transaction message from the given bytes array.