How to use the @ethersproject/basex.Base58.encode function in @ethersproject/basex

To help you get started, we’ve selected a few @ethersproject/basex examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ethers-io / ethers.js / packages / hdnode / lib.esm / index.js View on Github external
function base58check(data) {
    return Base58.encode(concat([data, hexDataSlice(sha256(sha256(data)), 0, 4)]));
}
const _constructorGuard = {};
github ethers-io / ethers.js / packages / cli / lib.esm / bin / ethers-ens.js View on Github external
let content = yield resolver.contenthash(nodehash).then((hash) => {
                        if (hash === "0x") {
                            return "";
                        }
                        if (hash.substring(0, 10) === "0xe3010170" && ethers.utils.isHexString(hash, 38)) {
                            return Base58.encode(ethers.utils.hexDataSlice(hash, 4)) + " (IPFS)";
                        }
                        return hash + " (unknown format)";
                    }, (error) => (""));
                    if (content) {
github ethers-io / ethers.js / packages / hdnode / src.ts / index.ts View on Github external
function base58check(data: Uint8Array): string {
    return Base58.encode(concat([ data, hexDataSlice(sha256(sha256(data)), 0, 4) ]));
}

@ethersproject/basex

Base-X without Buffer.

MIT
Latest version published 2 years ago

Package Health Score

65 / 100
Full package analysis