Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • The issue with this is someone could make a similar contract to mine except it defines creator as my address instead of msg.sender. This would look identical to a contract made by me wouldnt it? Commented Mar 8, 2017 at 13:21
  • In that case, instead of checking the creator. You could simply try to share a secret between the factory and the contract. For a given contract, if the factory doesn't know the secret (in a map for example), it can't be trusted. Commented Mar 8, 2017 at 13:34
  • Im not entirely sure what type of secret you mean. I considered using signing but contracts dont have private addresses Commented Mar 8, 2017 at 13:39