thomas779 / multi-owner

Multisig wallet using hashmaps and arrays

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

multi-owner

Multisig wallet implemented with hash-maps and arrays.

  • Elements are added, removed, and checked for existence in constant time (O(1)).
  • Elements are enumerated in O(n). No guarantees are made on the ordering.
  • Hasmaps faster, optimised and gas efficient but unable to iterate over keys/values.
  • A mixture of arrays and hash-maps can also be implemented as

Complexity Chart

Next steps?

  • Optimise removeOwner() in both implementations
  • Use OZ EnumerateSet.sol ─ I wanted to expiriment for myself being the prime optimizooor that I am.

Goerli Testnet

About

Multisig wallet using hashmaps and arrays


Languages

Language:Solidity 100.0%