MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / encodeBase58Check

Function encodeBase58Check

lib.esm/wallet/hdwallet.js:34–39  ·  view source on GitHub ↗
(_value)

Source from the content-addressed store, hash-verified

32 return "0x" + result;
33}
34function encodeBase58Check(_value) {
35 const value = getBytes(_value);
36 const check = dataSlice(sha256(sha256(value)), 0, 4);
37 const bytes = concat([value, check]);
38 return encodeBase58(bytes);
39}
40const _guard = {};
41function ser_I(index, chainCode, publicKey, privateKey) {
42 const data = new Uint8Array(37);

Callers 3

extendedKeyMethod · 0.70
fromExtendedKeyMethod · 0.70
extendedKeyMethod · 0.70

Calls 5

getBytesFunction · 0.90
dataSliceFunction · 0.90
sha256Function · 0.90
concatFunction · 0.90
encodeBase58Function · 0.90

Tested by

no test coverage detected