CBDE BTA Certified Blockchain Developer - Ethereum Questions and Answers
Question # 6
With the truffle config file you can manage:
A.
the amount of gas your contract deployment and transactions, against your contract, will need. This way you can essentially lower the gas costs over traditional web3.js dApps.
B.
different Networks to deploy your contracts to. This way you can easily deploy to a local blockchain, the main-net or the Ropsten/Rinkeby Test-Net with only one parameter.
C.
you can manage your secret API keys to the Ethereum Network. This way you can get access to several different Ethereum nodes at the same time without the need to switch your keyfiles.
can be destroyed using the selfdestruct keyword. This way all remaining ether will be sent to the receiver address, regardless if they have a fallback function or not.
B.
are bound to a private key which is necessary to sign transactions outgoing from that account.
C.
are logical opcodes running on the ethereum blockchain very similar to smart contracts.
When solidity is compiled then also Metadata is generated:
A.
the Metadata contains the ABI Array, which defines the Interface to interact with the Smart Contract. Metadata can also contain the address of the smart contract when it gets deployed.
B.
metadata contains the address, and the size of the smart contract. The ABI Array is generated externally upon deploying the smart contract.
C.
the ABI array and the Metadata are not generated when solidity is compiled to bytecode, its generated by a migration software which deploys the smart contract on the blockchain.
Keccack256 while internally to hash values it's easy to use the Dagger-Hashimoto to create a meaningful hash.
B.
the Dagger-Hashimoto hashing while internally the EVM uses SHA256 which is an alias for Keccack256.
C.
the Dagger-Hashimoto hashing while internally the EVM uses Keccack256 which is almost similar to SHA256, but has a different padding so produces different hashes.
Why is it important to follow the same Interfaces?
A.
Websites that try to interface with the Token would have to know the exact ABI. It is upfront clear how the interaction has to be with the standard Interfaces.
B.
The Ethereum Foundation can easily validate the Tokens and approve any audits by following the standard interface.