All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.quorum.tessera.recovery.workflow.DecodePayloadHandler Maven / Gradle / Ivy

Go to download

Tessera is a stateless Java system that is used to enable the encryption, decryption, and distribution of private transactions for Quorum.

There is a newer version: 24.4.2
Show newest version
package com.quorum.tessera.recovery.workflow;

import com.quorum.tessera.data.EncryptedTransaction;
import com.quorum.tessera.enclave.EncodedPayload;
import com.quorum.tessera.enclave.PayloadEncoder;

public class DecodePayloadHandler implements BatchWorkflowAction {

  private PayloadEncoder encoder;

  public DecodePayloadHandler(PayloadEncoder encoder) {
    this.encoder = encoder;
  }

  @Override
  public boolean execute(BatchWorkflowContext event) {

    EncryptedTransaction encryptedTransaction = event.getEncryptedTransaction();

    EncodedPayload encodedPayload = encoder.decode(encryptedTransaction.getEncodedPayload());

    event.setEncodedPayload(encodedPayload);

    return true;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy