Comments (11)
Why not just have an owner()
function that returns the owner of the DN404 base contract?
from dn404.
Opensea does not rely on owner or OwnershipTransferred because it’s easily spoofable.
from dn404.
Event easily spoofable for sure, owner is what the contract considers owner.
from dn404.
Proposed solution here:
#43
from dn404.
Event easily spoofable for sure, owner is what the contract considers owner.
Yup, but OpenSea typically doesn't use this to group things under an address's 'created tokens' because that can also be faked. i.e. I can hardcode the owner() to return as you, and have these tokens as 'created by you' if OpenSea trusted the contract return values as the source of provenance.
from dn404.
Well, if I'm the owner of the contract, it makes sense that the items were created by me...
from dn404.
Well, if I'm the owner of the contract, it makes sense that the items were created by me...
Not necessarily. I could create a contract with a fake owner function and inject tokens into your collection. Similar exploit has been used in the past to make fake beeples which is why rarible and opensea moved away from relying on owner.
from dn404.
Yeah @wwhchung is correct here - it's extremely easy to game owner()
to make it look like someone else deployed your contract
from dn404.
Why is the owner needed at all? I’ve got a version of ERC404 on my TW3404 repo that uses ERC1155 instead of ERC721 which allows for batch transfers natively.
from dn404.
Why is the owner needed at all?
For marketplaces collection management
from dn404.
Looks like a good solution would be to implement ERC-7015 since Opensea uses this for proof of ownership. (https://docs.opensea.io/docs/contract-level-metadata)
from dn404.
Related Issues (20)
- EIP-2612 support HOT 8
- DoS Vector: Transfering relatively large amounts of DN404 always `oog`s HOT 6
- 🐞 At example contract **NFTMintDN404** the minting checking allows to mint only once. HOT 3
- Get the NFT inventory of the wallet. HOT 1
- Revert on dn404Fallback if fn selector is not recognized. HOT 1
- ✨ Overrideable _msgSender() HOT 1
- Inquiry on Potential Gas or Security Issues for Large Supply Collections HOT 1
- I've completely rebuilt ERC404 to fix all issues(?)
- Problem for configuration setbaseuri tokenuri HOT 7
- Batch Minting like 721A's HOT 2
- ⚡️ Make tokenURI into internal _tokenURI
- Enhancing Liquidity for Existing NFTs: Implementing Lock-up Mechanism to Return DN404 Tokens with Matching Token IDs HOT 6
- Transfer on/off HOT 2
- Dosn't work with SafeTransferLib ? HOT 1
- ⚡️ Use updated FindFirstSet formulation
- ✨ Overrideable option to safe transfer NFTs
- 📢 Audit fixes incoming
- Set log handlers as internal virtual instead of private HOT 2
- ✨ Zero Indexed optionality
- ✨Omnichain compatibility using LayerZero
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dn404.