brinktrade / brink-core

Core smart contracts for Brink accounts
GNU General Public License v3.0
12 stars 7 forks source link

add metaDelegateCall_EIP1271 function to Account.sol #10

Closed mikec closed 2 years ago

mikec commented 2 years ago

this adds support for smart contracts as the account proxyOwner, as long as the proxyOwner implements EIP-1271 isValidSignature. The primary use case for adding this is to support GnosisSafe contracts as Brink signers.

The metaDelegateCall function exists to provide support for EOA signers. metaDelegateCall_EIP1271 won't work for EOA signers, it can only be used if the proxyOwner is a smart contract.