Code References

Encrypted Mempool

chevron-rightrequest_encrypt_txhashtag
// RPC request for encrypting the transaction
pub async fn request_encrypt_tx(
    rpc_endpoint: Endpoint,
    parameter: EncryptTx,
) -> Option<EncryptTxResponse> 
chevron-rightencrypt_tx_with_zkphashtag
pub fn encrypt_tx_with_zkp(
    raw_tx: String,
    time_lock_puzzle_param: TimeLockPuzzleParam,
    key_validation_zkp_param: ParamsKZG<Bn256>,
    key_validation_proving_key: ProvingKey<G1Affine>,
    encryption_zkp_param: ParamsKZG<Bn256>,
    encryption_proving_key: ProvingKey<G1Affine>,
) -> Result<(EncryptedTx, DecryptionKey, Option<PvdeZkp>)
chevron-rightEncryptTxResponsehashtag
pub struct EncryptTxResponse {
    pub encrypted_tx: EncryptedTx,
    pub decryption_key: DecryptionKey,
    pub pvde_zkp: Option<PvdeZkp>,
}
chevron-rightEncryptedTxhashtag
pub struct EncryptedTx {
   raw_tx_hash: RawTxHash,
   encrypted_data: EncryptedData,
   time_lock_puzzle: TimeLockPuzzle,
}
chevron-rightSendEncryptedTxhashtag
pub struct SendEncryptedTx {
    pub rollup_id: RollupId,
    pub encrypted_tx: EncryptedTx,
    pub pvde_zkp: Option<PvdeZkp>,
}
chevron-rightSendEncryptedTxResponsehashtag
chevron-rightprovide_decryption_keyhashtag
chevron-rightProvideDecryptionKeyhashtag

Sequencing Layer ↔ User

chevron-rightsend_encrypted_txhashtag
chevron-rightadd_encrypted_txhashtag

Sequencing Layer ↔ Rolup

chevron-rightAddRolluphashtag
chevron-rightRollupTypehashtag
chevron-rightOperatorhashtag
chevron-rightadd_rolluphashtag
chevron-rightGetRawTxListhashtag
chevron-rightGetRawTxListResponsehashtag
chevron-rightget_raw_tx_listhashtag
chevron-rightBlockMetadatahashtag
chevron-rightBlockhashtag
chevron-rightimpl BlockMetadatahashtag
chevron-rightblock is not closedhashtag
chevron-rightblock is empty, no decrypted transactionshashtag
chevron-rightblock is not empty, all transactions are decryptedhashtag
chevron-rightblock is not empty, not all transactions are decryptedhashtag

Leader-based

chevron-rightforwarding to the leaderhashtag
chevron-rightrequest from followers to synchashtag

Last updated