ScriptHash extends NeoSerializable implements Comparable<ScriptHash> { @Override public void deserialize(BinaryReader reader) throws DeserializationException { try { this.scriptHash = reader.readBytes(NeoConstants.SCRIPTHASH_SIZE); } catch (IOException e) { throw new DeserializationException(e); } } ScriptHash();  ScriptHash(byte[] scriptHash);  ScriptHash(String scriptHash); @Override void deserialize(BinaryReader reader); @Override void serialize(BinaryWriter writer); @Override int getSize(); @Override byte[] toArray(); String toString(); String toAddress(); static ScriptHash fromAddress(String address); static ScriptHash fromScript(byte[] script); static ScriptHash fromPublicKey(byte[] encodedPublicKey); static ScriptHash fromPublicKeys(List<byte[]> encodedPublicKeys, int signingThreshold); static ScriptHash fromScript(String script); @Override int compareTo(ScriptHash o); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void deserialize() throws DeserializationException { byte[] data = ArrayUtils.reverseArray(Numeric.hexStringToByteArray( "23ba2703c53263e8d6e522dc32203339dcd8eee9")); ScriptHash sh = NeoSerializableInterface.from(data, ScriptHash.class); assertThat(sh.toString(), is("23ba2703c53263e8d6e522dc32203339dcd8eee9")); }