MCPcopy
hub / github.com/BlueWallet/BlueWallet / stringToUint8Array

Function stringToUint8Array

blue_modules/uint8array-extras/index.js:138–141  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

136const cachedEncoder = new globalThis.TextEncoder();
137
138export function stringToUint8Array(string) {
139 assertString(string);
140 return cachedEncoder.encode(string);
141}
142
143function base64ToBase64Url(base64) {
144 return base64.replaceAll('+', '-').replaceAll('/', '_').replace(/[=]+$/, '');

Callers 5

_getRealmFunction · 0.90
encodeURFunction · 0.90
decodeURFunction · 0.90
stringToBase64Function · 0.85

Calls 1

assertStringFunction · 0.85

Tested by

no test coverage detected