pub struct BlockParser;Expand description
Block parser for extracting transactions from UDS block data
Implementations§
Source§impl BlockParser
impl BlockParser
Sourcepub fn parse_block(data: &[u8]) -> Result<BlockParseResult, BlockParseError>
pub fn parse_block(data: &[u8]) -> Result<BlockParseResult, BlockParseError>
Parse block data with cryptographic verification and extract transactions
Sourcepub fn parse_block_legacy(data: &[u8]) -> Result<Vec<Vec<u8>>, String>
👎Deprecated: Use parse_block instead
pub fn parse_block_legacy(data: &[u8]) -> Result<Vec<Vec<u8>>, String>
Legacy function for backward compatibility - will be removed after integration update
Sourcepub fn extract_transaction_signature(tx_data: &[u8]) -> Result<String, String>
pub fn extract_transaction_signature(tx_data: &[u8]) -> Result<String, String>
Extract transaction signature from transaction data and convert to ts… format
Sourcepub fn extract_account_mentions(
transactions: &[Vec<u8>],
) -> Result<HashSet<String>, BlockParseError>
pub fn extract_account_mentions( transactions: &[Vec<u8>], ) -> Result<HashSet<String>, BlockParseError>
Extract all account mentions from block transactions Returns a HashSet of base64-encoded account addresses
Auto Trait Implementations§
impl Freeze for BlockParser
impl RefUnwindSafe for BlockParser
impl Send for BlockParser
impl Sync for BlockParser
impl Unpin for BlockParser
impl UnwindSafe for BlockParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more