How to use @ethersproject/wallet - 3 common examples

To help you get started, we’ve selected a few @ethersproject/wallet 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 / ethers / utils.js View on Github external
exports.toUtf8Bytes = strings_1.toUtf8Bytes;
exports.toUtf8CodePoints = strings_1.toUtf8CodePoints;
exports.toUtf8String = strings_1.toUtf8String;
var transactions_1 = require("@ethersproject/transactions");
exports.computeAddress = transactions_1.computeAddress;
exports.parseTransaction = transactions_1.parse;
exports.recoverAddress = transactions_1.recoverAddress;
exports.serializeTransaction = transactions_1.serialize;
var units_1 = require("@ethersproject/units");
exports.commify = units_1.commify;
exports.formatEther = units_1.formatEther;
exports.parseEther = units_1.parseEther;
exports.formatUnits = units_1.formatUnits;
exports.parseUnits = units_1.parseUnits;
var wallet_1 = require("@ethersproject/wallet");
exports.verifyMessage = wallet_1.verifyMessage;
var web_1 = require("@ethersproject/web");
exports.fetchJson = web_1.fetchJson;
exports.poll = web_1.poll;
////////////////////////
// Enums
var sha2_2 = require("@ethersproject/sha2");
exports.SupportedAlgorithms = sha2_2.SupportedAlgorithms;
var strings_2 = require("@ethersproject/strings");
exports.UnicodeNormalizationForm = strings_2.UnicodeNormalizationForm;
github 3box / identity-wallet-js / src / keyring.js View on Github external
managementWallet () {
    return new Wallet(this._rootKeys.managementKey.privateKey)
  }
github 3box / identity-wallet-js / src / keyring.js View on Github external
static walletForAuthSecret (authSecret) {
    const node = HDNode.fromSeed(ensure0x(authSecret)).derivePath(AUTH_PATH_WALLET)
    return new Wallet(node.privateKey)
  }

@ethersproject/wallet

Classes for managing, encrypting and decrypting Ethereum private keys as a Signer for ethers.

MIT
Latest version published 2 years ago

Package Health Score

65 / 100
Full package analysis