When to use arrays vs mappings in Solidity?
Arrays are useful when you know the size of the collection in advance, and you need to be able to iterate over the elements in a specific order. Mappings are useful when you don't know the size of the collection in advance, and you need to be able to quickly lookup values. Here are a few specific scenarios where you might choose to use one over the other: 1. Use an array when you need to store a collection of items that need to be accessed by index. 2. Use a mapping when you need to asso...
Bored Ape Yacht Club: Smart Contract Breakdown
Bored Ape Yacht Club (BAYC) is a popular NFT collection created by Yuga Labs. In this post, we’ll go over BAYC smart contract code. The source code is available on EtherScan.ERC721BAYC is implemented as an ERC721 token, a standard that defines a set of functions that a smart contract must implement in order to be considered a compliant ERC721 token. These functions include the ability to transfer tokens, approve other addresses to manage your tokens, and check token ownership.ERC721 interface...
EIP vs ERC
In the Ethereum world, EIP and ERC phrases come up quite often. What exactly is the difference between the two? EIP stands for Ethereum Improvement Proposal. It is a design document that outlines a proposed change or improvement to Ethereum. Once an EIP has been authorized and confirmed by a committee, it becomes an ERC. ERC stands for Ethereum Request for Comment. It is a protocol for proposing and implementing new Ethereum-based tokens, smart contracts, and other related features. EIPs can ...
Co-founder & CTO of Blank. Building software and helping companies enter web3.
When to use arrays vs mappings in Solidity?
Arrays are useful when you know the size of the collection in advance, and you need to be able to iterate over the elements in a specific order. Mappings are useful when you don't know the size of the collection in advance, and you need to be able to quickly lookup values. Here are a few specific scenarios where you might choose to use one over the other: 1. Use an array when you need to store a collection of items that need to be accessed by index. 2. Use a mapping when you need to asso...
Bored Ape Yacht Club: Smart Contract Breakdown
Bored Ape Yacht Club (BAYC) is a popular NFT collection created by Yuga Labs. In this post, we’ll go over BAYC smart contract code. The source code is available on EtherScan.ERC721BAYC is implemented as an ERC721 token, a standard that defines a set of functions that a smart contract must implement in order to be considered a compliant ERC721 token. These functions include the ability to transfer tokens, approve other addresses to manage your tokens, and check token ownership.ERC721 interface...
EIP vs ERC
In the Ethereum world, EIP and ERC phrases come up quite often. What exactly is the difference between the two? EIP stands for Ethereum Improvement Proposal. It is a design document that outlines a proposed change or improvement to Ethereum. Once an EIP has been authorized and confirmed by a committee, it becomes an ERC. ERC stands for Ethereum Request for Comment. It is a protocol for proposing and implementing new Ethereum-based tokens, smart contracts, and other related features. EIPs can ...
Co-founder & CTO of Blank. Building software and helping companies enter web3.
Share Dialog
Share Dialog

Subscribe to 0xMarko

Subscribe to 0xMarko
<100 subscribers
<100 subscribers
Ethereum vanity address is a one-of-a-kind customized address that has portions of it chosen rather than being created at random.
Why would you create a vanity address?
First of all, it looks cool. The second thing it can help you with is to reinforce your brand and make you more noticeable.
How to generate your own vanity address?
Creating a vanity address is a straightforward trial-and-error process. When performing high-risk cryptographic operations, such as private key creation, it is important to use trusted and audited tools.
The best thing is to run generator software on a secure machine that is not connected to the internet. One example of the tool you can download is - https://github.com/10gic/vanityge
You can also use online tools like VANITY-ETH. It’s less secure since PK is generated in the browser. Vanity-ETH is an open-source tool using your web browser to generate Ethereum vanity addresses - https://vanity-eth.tk.
Enter the prefix/suffix of your choice, and click ‘generate’. Your browser will generate lots of random addresses until one matches your input. Once an address is found, you can reveal the private key, or click the 'save' button to download a password-encrypted keystore file.
How long does it take to generate an address?
The time to generate an address depends on how long is the desired prefix/suffix.
A popular vanity address is 0x000000000000000000000000000000000000dead (with 'dead' at the end), used instead of the default NULL address. Generating the private key for this address would take thousands of years.
Ethereum vanity address is a one-of-a-kind customized address that has portions of it chosen rather than being created at random.
Why would you create a vanity address?
First of all, it looks cool. The second thing it can help you with is to reinforce your brand and make you more noticeable.
How to generate your own vanity address?
Creating a vanity address is a straightforward trial-and-error process. When performing high-risk cryptographic operations, such as private key creation, it is important to use trusted and audited tools.
The best thing is to run generator software on a secure machine that is not connected to the internet. One example of the tool you can download is - https://github.com/10gic/vanityge
You can also use online tools like VANITY-ETH. It’s less secure since PK is generated in the browser. Vanity-ETH is an open-source tool using your web browser to generate Ethereum vanity addresses - https://vanity-eth.tk.
Enter the prefix/suffix of your choice, and click ‘generate’. Your browser will generate lots of random addresses until one matches your input. Once an address is found, you can reveal the private key, or click the 'save' button to download a password-encrypted keystore file.
How long does it take to generate an address?
The time to generate an address depends on how long is the desired prefix/suffix.
A popular vanity address is 0x000000000000000000000000000000000000dead (with 'dead' at the end), used instead of the default NULL address. Generating the private key for this address would take thousands of years.
No activity yet