Class TriggerFullCycle
java.lang.Object
net.finmath.decryptionoracle.keys.demo.base.OnChainCallBase
net.finmath.decryptionoracle.keys.demo.TriggerFullCycle
Triggers a test request by calling:
DummyDecryptionOracleCallback.requestDecrypt(oracle, id, encryptedKey,
receiver, txNote)
It generates a fresh random key (32 bytes), encrypts it with the oracle's RSA
public key using OAEP(SHA-256), base64-encodes the ciphertext, and passes
that as the encryptedKey.
Expected off-chain decryptor: RSA/ECB/OAEPWithSHA-256AndMGF1Padding
Public key PEM path is resolved in this order: 1) env ORACLE_RSA_PUBLIC_PEM
2) deployments/oracle-public.pem
- Author:
- Christian Fries
-
Field Summary
Fields inherited from class net.finmath.decryptionoracle.keys.demo.base.OnChainCallBase
callbackAddr, oracleAddr, rp, txMgr -
Constructor Summary
Constructors -
Method Summary