@@ -4,14 +4,12 @@ import { bip32 } from 'bitcoinjs-lib';
44import { Just, Nothing } from 'folktale/maybe';
55import * as secp256k1 from 'secp256k1';
66import * as kg from 'urbit-key-generation';
7−import { publicToAddress } from 'ethereumjs-util';
8−import { toHex } from 'web3-utils';
9−import { bufferedPublicKeyToAddress } from './utils/crypto';
7+import { publicToAddress } from './utils/address';
108
119export function EthereumWallet(privateKey) {
1210 this.privateKey = privateKey;
1311 this.publicKey = secp256k1.publicKeyCreate(this.privateKey);
14− this.address = bufferedPublicKeyToAddress(this.publicKey);
12+ this.address = publicToAddress(this.publicKey);
1513}
1614
1715export const urbitWalletFromTicket = async (ticket, point, passphrase) => {
@@ -37,7 +35,7 @@ export const walletFromMnemonic = (
3735 let wal;
3836 const hd = bip32.fromSeed(sd);
3937 wal = hd.derivePath(path);
40− wal.address = bufferedPublicKeyToAddress(wal.publicKey);
38+ wal.address = publicToAddress(wal.publicKey);
4139 wal.passphrase = passphrase || '';
4240 wal = Just(wal);
4341 return wal;