Links

Create Security Optionality With Reusable Cohorts

Providing configurable security to end-users is easy with Reusable Cohorts. Below we define three cohorts: small, medium, and large.
smallCohort, mediumCohort, and largeCohort can then be reused by multiple Strategies.
const smallConfig = {
threshold: 3,
shares: 5,
porterUri: 'https://porter-tapir.nucypher.community',
};
const mediumConfig = {
threshold: 11,
shares: 20,
porterUri: 'https://porter-tapir.nucypher.community',
};
const largeConfig = {
threshold: 51,
shares: 100,
porterUri: 'https://porter-tapir.nucypher.community',
};
const smallCohort = await Cohort.create(smallConfig);
const mediumCohort = await Cohort.create(mediumConfig);
const largeCohort = await Cohort.create(largeConfig);