• Encodes note to bytes When note is provided then uses the TexEncoder to convert note to bytes. When noteb64 is provided then uses base64 decoder to convert base64 text to bytes. Throws an error if both note and noteb64 are provided.

    Parameters

    • note: undefined | string | Uint8Array
    • noteb64: undefined | string

    Returns Uint8Array | undefined

Generated using TypeDoc