bestSuiteFor method

String? bestSuiteFor(
  1. List<String> senderSuites
)

The first suite in senderSuites order (strongest first) that this package's holder can also open, or null if there is no overlap.

A sender with no overlap must not fall back to stamping its own preference: the holder would receive an envelope it cannot unwrap, and the failure arrives as an opaque AEAD error on the far side.

Implementation

String? bestSuiteFor(List<String> senderSuites) =>
    SecretSharingAlgos.bestSuiteBetween(senderSuites, suites);