public boolean isSignatureValid(Pubkey pubkey) throws IOException { if (isEncrypted()) throw new IllegalStateException("Payload must be decrypted first"); return Security.isSignatureValid(getBytesToSign(), payload.getSignature(), pubkey); }
public boolean isSignatureValid(Pubkey pubkey) throws IOException { if (isEncrypted()) throw new IllegalStateException("Payload must be decrypted first"); return Security.isSignatureValid(getBytesToSign(), payload.getSignature(), pubkey); }