Module keychain/util

Index

Functions

certificateForKey

  • certificateForKey(key: any, privateKey: any): Uint8Array
  • Parameters

    • key: any
    • privateKey: any

    Returns Uint8Array

findAsync

  • findAsync(array: any[], asyncCompare: (arg0: any) => any): Promise<any>
  • Finds the first item in a collection that is matched in the asyncCompare function.

    asyncCompare is an async function that must resolve to either true or false.

    Parameters

    • array: any[]
    • asyncCompare: (arg0: any) => any

      An async function that returns a boolean

        • (arg0: any): any
        • Parameters

          • arg0: any

          Returns any

    Returns Promise<any>