UNPKG

@nucypher/taco

Version:

### [`nucypher/taco-web`](../../README.md)

8 lines (7 loc) 712 B
import { DkgPublicKey, ThresholdMessageKit } from '@nucypher/nucypher-core'; import { Domain, PorterClient } from '@nucypher/shared'; import { ethers } from 'ethers'; import { ConditionExpression } from './conditions/condition-expr'; import { ConditionContext } from './conditions/context'; export declare const encryptMessage: (plaintext: Uint8Array | string, encryptingKey: DkgPublicKey, conditions: ConditionExpression, authSigner: ethers.Signer) => Promise<ThresholdMessageKit>; export declare const retrieveAndDecrypt: (provider: ethers.providers.Provider, domain: Domain, porter: PorterClient, thresholdMessageKit: ThresholdMessageKit, ritualId: number, context?: ConditionContext) => Promise<Uint8Array>;