brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.63k stars 2.29k forks source link

Add support for Bitcoin Ordinals #34771

Open nvonpentz opened 10 months ago

nvonpentz commented 10 months ago

Probably just autodiscovery + image fetching APIs to start

### Tasks
- [ ] [Show ordinals warning only for transactions spending ordinals](https://github.com/brave/brave-browser/issues/37249)
- [ ] Support spending utxo with ordinals, but return owning sats back as change
- [ ] Present owned ordinals to user
- [ ] Support BRC-20 tokens
bbondy commented 9 months ago

I assume it is for this... From chatGPT:

Bitcoin Ordinals, a relatively recent development in the world of cryptocurrencies, brings a new layer of functionality to the Bitcoin blockchain. This concept revolves around the idea of "inscribing" or embedding unique pieces of data, such as images, text, or other digital artifacts, directly onto individual satoshis, which are the smallest unit of Bitcoin (1 Bitcoin = 100,000,000 satoshis).

Key points about Bitcoin Ordinals include:

  1. Unique Inscriptions: Each ordinal can have a unique inscription, which is stored directly on the Bitcoin blockchain. This inscription can be anything digital, like an image, a piece of text, or any other type of data.

  2. NFT-like Characteristics: While not exactly NFTs (Non-Fungible Tokens) as seen in Ethereum and other blockchains, Bitcoin Ordinals share some similarities. Each inscribed satoshi is unique, and the data inscribed on it can confer a sort of uniqueness similar to that of NFTs.

  3. No Smart Contracts Required: Unlike Ethereum's NFTs, which rely on smart contracts, Bitcoin Ordinals function without them. Bitcoin's recent Taproot upgrade, which improved scripting capabilities and privacy, partly enables this functionality, although Ordinals don't use complex scripts like Ethereum's smart contracts.

  4. Direct Storage on the Blockchain: The data for these inscriptions is stored directly on the Bitcoin blockchain, which is different from most Ethereum NFTs, where the token on the blockchain typically points to data stored elsewhere (like a URL to an image).

  5. Scarcity and Ownership: Each inscribed satoshi is unique, creating a form of digital scarcity. Ownership of these inscribed satoshis is tracked on the blockchain, similar to how Bitcoin ownership is tracked.

  6. Impact on the Blockchain: The introduction of Ordinals and inscriptions has implications for the Bitcoin blockchain, such as potential impacts on block size, data storage, and network throughput.

  7. Community Reception: The Bitcoin community's reaction to Ordinals has been mixed, with some seeing it as an innovative use of the blockchain and others concerned about bloating the blockchain with non-financial data.

  8. Compatibility with Bitcoin Wallets and Exchanges: There may be challenges in how these inscribed satoshis are handled by existing wallets and exchanges, as these platforms need to recognize and support the unique nature of inscribed satoshis.

Overall, Bitcoin Ordinals introduce a novel way of leveraging the Bitcoin blockchain for storing unique digital artifacts, expanding the use cases of Bitcoin beyond just a financial asset. This development reflects the ongoing evolution and experimentation within the cryptocurrency space.

lukemulks commented 9 months ago

This will be fantastic. Udi has offered support, if needed, but looks like you all have what you need.