pub fn rct_output_to_output_on_chain(
rct_output: &RctOutput,
get_txid: bool,
table_tx_unlock_time: &impl DatabaseRo<TxUnlockTime>,
table_block_txs_hashes: &impl DatabaseRo<BlockTxsHashes>,
table_block_infos: &impl DatabaseRo<BlockInfos>,
table_tx_blobs: &impl DatabaseRo<TxBlobs>,
) -> DbResult<OutputOnChain>Expand description
Map an RctOutput to a cuprate_types::OutputOnChain.
§Panics
This function will panic if rct_output’s commitment fails to decompress
into a valid Ed25519 point.
This should normally not happen as commitments that are stored in the database should always be valid.
§Errors
This function returns cuprate_database::RuntimeError::KeyNotFound if the input (if applicable) doesn’t exist or other RuntimeError’s on database errors.