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

Function encodeBase58Check

lib.commonjs/wallet/hdwallet.js:37–42  ·  view source on GitHub ↗
(_value)

Source from the content-addressed store, hash-verified

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

Callers 3

extendedKeyMethod · 0.70
fromExtendedKeyMethod · 0.70
extendedKeyMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected