@Nullable
public String signAsOwner(PledgingWallet wallet, String message, @Nullable KeyParameter aesKey) {
DeterministicKey realKey = wallet.getAuthKeyFromIndexOrPubKey(authKey, authKeyIndex);
if (realKey == null || (aesKey == null && realKey.isEncrypted()))
return null;
return realKey.signMessage(message, aesKey);
}
public void authenticateOwner(String message, String signatureBase64) throws SignatureException {
ECKey.fromPublicOnly(authKey).verifyMessage(message, signatureBase64);
}