MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / decrypt_geohash_payload

Function decrypt_geohash_payload

nodedb-spatial/src/persist.rs:75–80  ·  view source on GitHub ↗

Decrypt a geohash msgpack payload (called from `geohash_index.rs`).

(
    key: &nodedb_wal::crypto::WalEncryptionKey,
    blob: &[u8],
)

Source from the content-addressed store, hash-verified

73
74/// Decrypt a geohash msgpack payload (called from `geohash_index.rs`).
75pub(crate) fn decrypt_geohash_payload(
76 key: &nodedb_wal::crypto::WalEncryptionKey,
77 blob: &[u8],
78) -> Result<Vec<u8>, RTreeCheckpointError> {
79 decrypt_payload(key, blob)
80}
81
82// ── Metadata types ─────────────────────────────────────────────────────────
83

Callers 1

from_checkpointMethod · 0.85

Calls 1

decrypt_payloadFunction · 0.85

Tested by

no test coverage detected