Blockchain Commons Components TypeScript Library - v1.0.0-alpha.13
    Preparing search index...

    Function fromBase64

    • Convert a base64-encoded string to a Uint8Array.

      This function works in both browser and Node.js environments. Uses atob which is available in browsers and Node.js 16+.

      Parameters

      • base64: string

        A base64-encoded string

      Returns Uint8Array

      The decoded byte array

      fromBase64("SGVsbG8="); // Uint8Array([72, 101, 108, 108, 111])