diff options
author | Florian Dold <florian@dold.me> | 2021-07-13 14:13:38 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-07-13 14:13:38 +0200 |
commit | 72f7664c709ce2e2bb383ec4559cdf2703d7592a (patch) | |
tree | b46f65da2207a53dd7d5437316d31f079df57ce0 /packages/taler-wallet-core/src/crypto | |
parent | e2287d6d5ba01868263d8a08d45ddc60b0ab91fb (diff) | |
download | wallet-core-72f7664c709ce2e2bb383ec4559cdf2703d7592a.tar.xz |
comment
Diffstat (limited to 'packages/taler-wallet-core/src/crypto')
-rw-r--r-- | packages/taler-wallet-core/src/crypto/talerCrypto.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/crypto/talerCrypto.ts b/packages/taler-wallet-core/src/crypto/talerCrypto.ts index 7e08d2051..71a804f98 100644 --- a/packages/taler-wallet-core/src/crypto/talerCrypto.ts +++ b/packages/taler-wallet-core/src/crypto/talerCrypto.ts @@ -194,6 +194,12 @@ function kdfMod( } } +// Newer versions of node have TextEncoder and TextDecoder as a global, +// just like modern browsers. +// In older versions of node or environments that do not have these +// globals, they must be polyfilled (by adding them to globa/globalThis) +// before stringToBytes or bytesToString is called the first time. + let encoder: any; let decoder: any; |