Giter Club home page Giter Club logo

Comments (8)

paulmillr avatar paulmillr commented on May 24, 2024 1

That seems useful.

from micro-eth-signer.

paulmillr avatar paulmillr commented on May 24, 2024 1

c8a86a6

from micro-eth-signer.

paulmillr avatar paulmillr commented on May 24, 2024

This one? erc-55 doesn't mention anything about chainid

addChecksum(nonChecksummedAddress: string): string {
const low = addr.parse(nonChecksummedAddress).data.toLowerCase();
const hash = bytesToHex(keccak_256(low));
let checksummed = '';
for (let i = 0; i < low.length; i++) {
const hi = Number.parseInt(hash[i], 16);
const li = low[i];
checksummed += hi <= 7 ? li : li.toUpperCase(); // if char is 9-f, upcase it
}
return add0x(checksummed);

from micro-eth-signer.

sambacha avatar sambacha commented on May 24, 2024

whoops, meant this one sorry! https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1191.md

from micro-eth-signer.

sambacha avatar sambacha commented on May 24, 2024

example:

EIP-1191 Checksum for mevETH

0x24aE2dA0F361AA4bE46B48EB19c91e02c5E4F27e

Normal Checksum

0x24Ae2dA0f361AA4BE46b48EB19C91e02c5e4f27E

from micro-eth-signer.

sambacha avatar sambacha commented on May 24, 2024

Hell yeah, thanks for getting this done so quickly!

from micro-eth-signer.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.