UMIS SDK
    Preparing search index...

    Function setupCrypto

    • Picks the cryptographic backend of this runtime and makes it the default of the SDK: WebCrypto where the runtime has it, otherwise the audited @noble libraries with the random numbers of getRandomValues (expo-crypto unless given). Call it once at app start, after installRnPolyfills and before any other call of the SDK; a runtime without a TextDecoder means the polyfills were not installed, and the call fails.

      Parameters

      • opts: { getRandomValues?: <T extends Uint8Array<ArrayBufferLike>>(a: T) => T } = {}

      Returns CryptoProvider