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

Function encrypt_geohash_payload

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

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

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

Source from the content-addressed store, hash-verified

65
66/// Encrypt a geohash msgpack payload (called from `geohash_index.rs`).
67pub(crate) fn encrypt_geohash_payload(
68 key: &nodedb_wal::crypto::WalEncryptionKey,
69 plaintext: &[u8],
70) -> Result<Vec<u8>, RTreeCheckpointError> {
71 encrypt_payload(key, plaintext)
72}
73
74/// Decrypt a geohash msgpack payload (called from `geohash_index.rs`).
75pub(crate) fn decrypt_geohash_payload(

Callers 1

checkpoint_to_bytesMethod · 0.85

Calls 1

encrypt_payloadFunction · 0.85

Tested by

no test coverage detected