setAddrHash method

void setAddrHash(
  1. ByteArray addrHash
)

Sets the address hash portion of the address. Copies the first ADDR_TAG_LEN bytes from the provided addrHash into the address hash section. @param addrHash The byte array containing the new address hash.

Implementation

void setAddrHash(ByteArray addrHash) {
  _address.setAll(
      ADDR_TAG_LEN, addrHash.sublist(0, TXADDRLEN - ADDR_TAG_LEN));
}