0x-relayer-registry icon indicating copy to clipboard operation
0x-relayer-registry copied to clipboard

Add feeRecipient or taker signature to prove ownership

Open BMillman19 opened this issue 7 years ago • 6 comments

BMillman19 avatar Apr 10 '18 17:04 BMillman19

what about in cases where these addresses are smart contracts?

BMillman19 avatar Apr 20 '18 20:04 BMillman19

Can probably just sign with the address that deployed the fee_recipient contract, no?

tomhschmidt avatar Apr 20 '18 20:04 tomhschmidt

hm.. I guess so, but the deployer is not always the "owner" of the contract, for example, a fees splitting contract that has some voting mechanism to select fee receivers that initially disburses fees to the some set of addresses including the deployer but over time votes the deploying address out.

BMillman19 avatar Apr 22 '18 14:04 BMillman19

I like this idea.

fabioberger avatar Apr 23 '18 01:04 fabioberger

OpenRelay uses a contract factory to deploy our affiliate contracts. The fee recipients are contracts, and thus have no keys with which to sign messages, and they were deployed by a contract, so it has no keys with to sign messages.

We don't consider affiliate addresses to be "our" addresses (our affiliates are welcome to report them as their own), but if there were a signature element it would need to go back to whoever submitted the transaction to create the contract, even though the contract was actually created via a contract call.

We have attempted to address this by adding a "relayerName" property to our affiliate contracts, so people can look them up easily even if they're not here.

AusIV avatar Sep 10 '18 22:09 AusIV

Yeah, that's a fair point -- this is partially why we added the endpoint for fee recipient addresses in SRA V2. The information in this repo is intended to be helpful, not critical, and I don't really see potential fund loss or vulnerabilities coming from an attack here.

tomhschmidt avatar Sep 13 '18 12:09 tomhschmidt