SecretRequestPolicy typedef

  1. @experimental
SecretRequestPolicy = FutureOr<bool> Function(ReceivedEnvelope request, KeyPackage requester)

Decides whether to answer an inbound kind:'request' secret pull from requester (already resolved + authorized as a key package of the request's namespace). Return true to share the requested held secrets, false to ignore. Set PairwiseSecretSharing.answerSecretRequests to override the default (answer any authorized same-atSign requester — the atServer already gates deliverability by namespace).

Implementation

@experimental
typedef SecretRequestPolicy = FutureOr<bool> Function(
    ReceivedEnvelope request, KeyPackage requester);