Skip to content

Commit

Permalink
fix: removal for now of keri client verification.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Czeladka committed Sep 9, 2024
1 parent 6435671 commit db99c07
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 80 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.cardano.foundation.voting.client.ChainFollowerClient;
import org.cardano.foundation.voting.client.KeriVerificationClient;
import org.cardano.foundation.voting.domain.*;
import org.cardano.foundation.voting.utils.Enums;
import org.cardanofoundation.cip30.CIP30Verifier;
Expand All @@ -32,7 +31,6 @@
public class VoteVerificationService {

private final ChainFollowerClient chainFollowerClient;
private final KeriVerificationClient keriVerificationClient;

private final Network network;

Expand Down Expand Up @@ -165,15 +163,6 @@ private Either<Problem, VoteVerificationResult> verifyForKeri(VoteVerificationRe

val payload = voteVerificationRequest.getPayload().orElseThrow();

val keriVerificationResultE = keriVerificationClient.verifySignature(walletId, signature, payload);
if (keriVerificationResultE.isLeft()) {
return Either.left(Problem.builder()
.withTitle("INVALID_VOTE")
.withStatus(BAD_REQUEST)
.withDetail("Invalid KERI signature")
.build());
}

try {
val jsonNode = parseJson(new String(HexUtil.decodeHexString(payload)));
val dataNode = jsonNode.get("data");
Expand Down

0 comments on commit db99c07

Please sign in to comment.