Module crypt.api

Interface IAddress


public interface IAddress
The interface IAddress represents an address in a blockchain system.

This interface defines methods for getting and setting the hash, name, and public key associated with a blockchain address.

  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Gets the hash of the blockchain address.
    Gets the name associated with the blockchain address.
    byte[]
    Gets the public key of the blockchain address.
    void
    setHash(byte[] hash)
    Sets the hash of the blockchain address.
    void
    Sets the name associated with the blockchain address.
    void
    setPublicKey(byte[] publicKey)
    Sets the public key of the blockchain address.
  • Method Details

    • getHash

      byte[] getHash()
      Gets the hash of the blockchain address.
      Returns:
      the hash as a byte array
    • setHash

      void setHash(byte[] hash)
      Sets the hash of the blockchain address.
      Parameters:
      hash - the hash to set, as a byte array
    • getName

      String getName()
      Gets the name associated with the blockchain address.
      Returns:
      the name as a String
    • setName

      void setName(String name)
      Sets the name associated with the blockchain address.
      Parameters:
      name - the name to set, as a String
    • getPublicKey

      byte[] getPublicKey()
      Gets the public key of the blockchain address.
      Returns:
      the public key as a byte array
    • setPublicKey

      void setPublicKey(byte[] publicKey)
      Sets the public key of the blockchain address.
      Parameters:
      publicKey - the public key to set, as a byte array