Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compression code integration #4247

Open
rosieRRRRR opened this issue Feb 28, 2025 · 3 comments
Open

Compression code integration #4247

rosieRRRRR opened this issue Feb 28, 2025 · 3 comments

Comments

@rosieRRRRR
Copy link

Hey guys, just wondering if there’s any compression code built into the Ordinals Protocol?

If not I had an idea that you could possibly integrate Huffman Coding (or something similar) to seamlessly compress and decompress files.

Proposed workflow:

User selects a file to inscribe.

Client side compression occurs in the background before initiating the txn.

User inscribes a smaller file than they would have otherwise.

Decompression code allows files to be displayed in wallets, marketplaces and explorers.

@raphjaph
Copy link
Collaborator

You can already compress with brotli and use the br content-encoding as a field in the inscription.

@rosieRRRRR
Copy link
Author

Cool thanks, I was thinking more along forced compression lines

@raphjaph
Copy link
Collaborator

raphjaph commented Mar 3, 2025

What do you mean by forced compression?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants