Skip to main content

find_record

Function find_record 

Source
pub async fn find_record(
    session: &mut Session,
    id: &KeyPair,
    key: [u8; 32],
) -> Result<Record, DhtError>
Expand description

Fetches one record by its storage key (see procedure_key / station_endpoint_key). Returns DhtError::NotFound if none exists — the caller’s signature should still be checked via verify before the payload is trusted; this function does not verify on the caller’s behalf.