New answers tagged

0

If you're worried about someone bruteforcing (or rainbow tables as your question suggests) the input you can use something called Salts ( https://en.wikipedia.org/wiki/Salt_(cryptography) ). That way there's no way to bruteforce the input if the salt is kept secret as well. People can't change their secret upon will without spending a lot of effort in ...


1

They are approximately the same. Your fixed-size array lays out a very large address space where every possible address equivalent has a slot. That's logically equivalent to what mapping does, although laid out differently (See Ismael's comment below) and slight different in gas cost as a result. I would incline to the mapping for readability. Solidity ...


1

UPDATE: The answer below refers to the difference between: a mapping(address => uint) an array of struct {address key; uint value;} elements Which is not what's being asked here. I'm leaving it here because I feel that it still contributes something in the context of this question... I hope that this table answers your question: |----------------|---...


1

Ethereum and others are protocols. The protocols are silent on implementation details such as language and physical storage. Ethereum is perhaps the truest to this ideal in that they released multiple clients on day 1 (go, c++). Among other things, this helped ensure that the protocol spec was authoritative and no implementation quirks would rise to the ...


4

you have to configure a new network to connect to via Metamask open Metamask go to settings > network > add network ! and there add your new network if it's a local node in RPC URL put: http://127.0.0.1:7545 and chose a name for it and save then go on the top menu of Metamask and choose your newly created network to be the host of the communication and that'...


0

In the case you like to use web3 without Metamask you have to include web3.js for the browser and connect with a provider (here ganache on local host): <!DOCTYPE html> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> <html> <head> <...


0

You account are only persisted in your local state and probably do not exist on Ropsten yet. If you have the account connected to metamask you can check


0

Ethereum does not charge rent for storing data, so in many cases it is more gas-efficient to keep in storage data, that is not needed anymore, rather than to delete it. Self destruct (a.k.a. suicide) opcode was supposed to address this, by deleting storage of the contracts not needed anymore, but it caused more problems than solved, so now its usage is ...


Top 50 recent answers are included