GithubHelp home page GithubHelp logo

Vanity Contract Address about vanity-eth HOT 10 CLOSED

bokub avatar bokub commented on July 26, 2024
Vanity Contract Address

from vanity-eth.

Comments (10)

0xjluis avatar 0xjluis commented on July 26, 2024 2

Wut? @9-9-9-9 The addresses in this project are also calculated via brute force.
The only two factors to consider in calculating the contract address are the deployer wallet address and the wallet nonce.
And you don't have to deploy to calculate the address, you can do it locally.

More info here:
https://ethereum.stackexchange.com/questions/760/how-is-the-address-of-an-ethereum-contract-computed

from vanity-eth.

0xjluis avatar 0xjluis commented on July 26, 2024 1

@9-9-9-9 the target is generating an address with the ability to deploy a vanity contract in a given nonce.

from vanity-eth.

9-9-9-9 avatar 9-9-9-9 commented on July 26, 2024

This project is kinda brute-force so it is unable to do it with contract since you must deploy millions/billions contracts to fit your need. Nowadays, deploy a contract into ETH main net costs around $800 each

from vanity-eth.

9-9-9-9 avatar 9-9-9-9 commented on July 26, 2024

@Siul293 idk about this, thanks man

from vanity-eth.

bokub avatar bokub commented on July 26, 2024

I currently don't have enough knowledge about contracts and contracts addresses, but I might work on it someday if I find enough free time.

from vanity-eth.

9-9-9-9 avatar 9-9-9-9 commented on July 26, 2024

@Siul293 I see, so the target is to generate an address with ability to deploy a vanity contract at nonce 2

Or better if can generate a vanity address with ability to deploy a vanity contract at nonce 2

Is that right?

from vanity-eth.

9-9-9-9 avatar 9-9-9-9 commented on July 26, 2024

hey man @bokub , it's good to go now

const rlp = require('rlp');
const util = require('ethereumjs-util');

const addr = '0x6ac7ea33f8831ea9dcc53393aaa88b25a785dbf0'
const addressAsBytes = util.toBuffer(addr);

for (let nonce = 0; nonce <= 3; nonce++) {
    let calculatedAddressAsBytes = util.keccak256(util.arrToBufArr(rlp.encode([addressAsBytes, nonce]))).slice(12);
    console.log(`nonce${nonce}= "0x${calculatedAddressAsBytes.toString('hex')}"`);
}

/* Output:
nonce0= "0xcd234a471b72ba2f1ccf0a70fcaba648a5eecd8d"
nonce1= "0x343c43a37d37dff08ae8c4a11544c718abb4fcf8"
nonce2= "0xf778b86fa74e846c4f0a1fbd1335fe81c00a0c91"
nonce3= "0xfffd933a0bc612844eaf0c6fe3e5b8e9b6c1d19c"
*/

Test case from here referenced by @Siul293

from vanity-eth.

9-9-9-9 avatar 9-9-9-9 commented on July 26, 2024

@Siul293 hey, it's here
https://github.com/9-9-9-9/Vanity-ERC20-Contract-Address-Generator

from vanity-eth.

bokub avatar bokub commented on July 26, 2024

If you don't mind using a command-line tool, MyEtherWallet's VanityEth also supports contract addresses.

from vanity-eth.

0xjluis avatar 0xjluis commented on July 26, 2024

Great !!! Thanks

from vanity-eth.

Related Issues (20)

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.