Lookup first key not default.
@@ -194,7 +194,7 @@ public class PartyInfoResource {
EncodedPayload payload = payloadEncoder.decode(payloadData);
- PublicKey mykey = enclave.defaultPublicKey();
+ PublicKey mykey = payload.getRecipientKeys().iterator().next();
byte[] result = enclave.unencryptTransaction(payload, mykey);
