### Question:
TrustAddressGenerator { public static String getTrustAddress(String contractAddress, String digest) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeySpecException { return preimageToAddress((contractAddress + "TRUST" + digest).getBytes()); }  static String getTrustAddress(String contractAddress, String digest); static String getRevokeAddress(String contractAddress, String digest); static String preimageToAddress(byte[] preimage); static void main(String args[]); Response DeriveTrustAddress(Request req); static final byte[] masterPubKey; }### Answer:
@Test public void generateTrustAddress() throws Exception { System.out.println("digest:" + digest); String trustAddress = TrustAddressGenerator.getTrustAddress("0x63cCEF733a093E5Bd773b41C96D3eCE361464942", digest); assert(trustAddress.equals("0x2e02934b4ed1bee0defa7a58061dd8ee9440094c")); }