@openvireo/sdk - v0.2.0
    Preparing search index...

    Variable opaqueServerForTestsConst

    opaqueServerForTests: {
        credentialResponse(
            ke1: Uint8Array,
            storedRecord: Uint8Array,
            ids: OpaqueIds,
            context?: string,
        ): Promise<
            { ke2: Uint8Array<ArrayBufferLike>; sec: Uint8Array<ArrayBufferLike> },
        >;
        registrationResponse(
            request: Uint8Array,
        ): Promise<
            {
                response: Uint8Array<ArrayBufferLike>;
                sec: Uint8Array<ArrayBufferLike>;
            },
        >;
        storeRecord(
            sec: Uint8Array,
            record: Uint8Array,
        ): Promise<Uint8Array<ArrayBufferLike>>;
        userAuth(
            sec: Uint8Array,
            authU: Uint8Array,
        ): Promise<Uint8Array<ArrayBufferLike> | null>;
    } = ...

    Server-side functions of the same module (opaque-ke's server, one ServerSetup per user), for tests and local mock servers only. The real server is libopaque's C core through its Python binding (Flask).

    Type Declaration

    • credentialResponse: function
      • Parameters

        • ke1: Uint8Array
        • storedRecord: Uint8Array
        • ids: OpaqueIds
        • context: string = OPAQUE_CONTEXT

        Returns Promise<{ ke2: Uint8Array<ArrayBufferLike>; sec: Uint8Array<ArrayBufferLike> }>

    • registrationResponse: function
      • Parameters

        • request: Uint8Array

        Returns Promise<
            {
                response: Uint8Array<ArrayBufferLike>;
                sec: Uint8Array<ArrayBufferLike>;
            },
        >

    • storeRecord: function
      • Parameters

        • sec: Uint8Array
        • record: Uint8Array

        Returns Promise<Uint8Array<ArrayBufferLike>>

    • userAuth: function
      • Checks the client's authU; returns the server's session key, or null when it is wrong.

        Parameters

        • sec: Uint8Array
        • authU: Uint8Array

        Returns Promise<Uint8Array<ArrayBufferLike> | null>