Documentation
    Preparing search index...

    The exporter interface.

    interface Exporter {
        export(exporterContext: ArrayBuffer, len: number): Promise<ArrayBuffer>;
    }

    Hierarchy (View Summary)

    Index

    Methods

    Methods

    • Exports a secret using a variable-length pseudorandom function.

      If the error occurred, throws ExportError.

      Parameters

      • exporterContext: ArrayBuffer

        An exporter context string as bytes. The maximum length is 128 bytes.

      • len: number

        A desired length in bytes of the output secret.

      Returns Promise<ArrayBuffer>

      A secret string as bytes.

      ExportError