New answers tagged

0 votes

Safe, Secure, Random Number using only Vyper smart contracts (NO CHAINLINK VRF)

It's perfectly possible to be your own oracle of randomness, but you have to do it with a commit-reveal. No amount of hashing will protect you, as pointed out by @Babs people monitor the mempool and ...
Mouradif's user avatar
  • 289
0 votes

Safe, Secure, Random Number using only Vyper smart contracts (NO CHAINLINK VRF)

You cannot generate secure on chain randomness because the existence of a public mempool of pending transactions. Anyone can see your randomness function that was called with it's static argument ...
Babs's user avatar
  • 1
1 vote
Accepted

solidity_keccak not matching JS keccak256(abi.encodePacked(

It says it is toEthSignedMessageHash are you encoding the message before signing? From the contract you link: function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) { ...
Maka's user avatar
  • 850
1 vote

How can I get a private key from a mnemonic phrase? in python or other

You can use the Account class of eth_account by installing the eth-account module in Python: pip install eth-account Here's the code: from eth_account import Account Account....
SYED ASAD KAZMI's user avatar

Top 50 recent answers are included