Interface CryptoStore

Abstraction of things that can store data required for end-to-end encryption

Hierarchy

  • CryptoStore

Implemented by

Methods

  • Parameters

    • roomId: string
    • senderKey: string
    • sessionId: string
    • Optional txn: unknown

    Returns void

  • Parameters

    • txn: unknown
    • func: ((count: number) => void)
        • (count: number): void
        • Parameters

          • count: number

          Returns void

    Returns void

  • Parameters

    • Optional txn: unknown

    Returns Promise<number>

  • Type Parameters

    • T

    Parameters

    • mode: Mode
    • stores: Iterable<string>
    • func: ((txn: unknown) => T)
        • (txn: unknown): T
        • Parameters

          • txn: unknown

          Returns T

    • Optional log: PrefixedLogger

    Returns Promise<T>

  • Parameters

    • txn: unknown
    • func: ((accountPickle: null | string) => void)
        • (accountPickle: null | string): void
        • Parameters

          • accountPickle: null | string

          Returns void

    Returns void

  • Parameters

    • txn: unknown
    • func: ((session: null | ISession) => void)
        • (session: null | ISession): void
        • Parameters

          Returns void

    Returns void

  • Parameters

    • deviceKey: string
    • txn: unknown
    • func: ((sessions: {
          [sessionId: string]: ISessionInfo;
      }) => void)
        • (sessions: {
              [sessionId: string]: ISessionInfo;
          }): void
        • Parameters

          Returns void

    Returns void

  • Parameters

    • roomId: string
    • Optional txn: unknown

    Returns Promise<[senderKey: string, sessionId: string][]>

  • Parameters

    • txn: unknown
    • accountPickle: string

    Returns void

  • Parameters

    • senderCurve25519Key: string
    • sessionId: string
    • sessionData: IWithheld
    • txn: unknown

    Returns void

  • Parameters

    • deviceKey: string
    • type: string
    • fixed: boolean

    Returns Promise<void>

Generated using TypeDoc