Skip to main content

EncryptionPublicKeyResolver

Type Alias EncryptionPublicKeyResolver 

Source
pub type EncryptionPublicKeyResolver = Box<dyn Fn(CoinPublicKey) -> Option<EncPublicKey> + Send + Sync>;
Expand description

Resolves a CoinPublicKey to the EncPublicKey used to seal outputs addressed to that coin key.

Returning None means “I don’t know this recipient” — the caller (typically zswap_state_to_offer) treats that as a hard error because a zswap output with no known encryption key can’t be constructed.

Port of TS EncryptionPublicKeyResolver.

Aliased Type§

pub struct EncryptionPublicKeyResolver(/* private fields */);