import * as UCAN from '@ipld/dag-ucan' export interface KeyExchangeKeypair { deriveSharedKey: (otherDID: UCAN.DID) => Promise encryptForDid: (data: string, otherDID: UCAN.DID) => Promise decryptFromDid: (data: string, otherDID: UCAN.DID) => Promise did: UCAN.DID pubkey: () => Promise } export interface EncryptionKeypair { encrypt: (data: string) => Promise decrypt: (data: string) => Promise }