=== BlockFact Verified Images ===
Contributors: knightfoxapps
Tags: blockchain, image verification, media authenticity, journalism, content provenance
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Upload, display, and verify blockchain-authenticated .facti images in WordPress.

== Description ==

BlockFact Verified Images lets you use .facti files — blockchain-verified photos — directly in your WordPress site.

Every .facti file contains a photo with embedded provenance: who took it, when, where, and a cryptographic proof registered on the StarkNet blockchain. This plugin makes those files work natively in WordPress.

**Features:**

* Upload .facti files to the WordPress Media Library
* Automatic thumbnail generation for media grid
* Gutenberg block: "BlockFact Verified Image" with verification badge
* Verification badge links directly to the blockchain proof
* REST API endpoint for accessing .facti metadata
* Works with both StarkNet mainnet and Sepolia testnet

**Built for journalists and newsrooms** who need to prove their photos are authentic.

== Installation ==

1. Upload the `blockfact` folder to `/wp-content/plugins/`
2. Activate the plugin through the Plugins menu
3. Upload .facti files via Media > Add New
4. Insert verified images using the "BlockFact Verified Image" Gutenberg block

== Frequently Asked Questions ==

= What is a .facti file? =

A .facti file is a blockchain-verified image container created by the BlockFact app. It wraps a standard JPEG or PNG with cryptographic metadata proving when, where, and on what device the photo was taken.

= Do I need a blockchain wallet? =

No. The plugin reads the verification data from the .facti file and links to the public blockchain proof. No wallet or crypto knowledge needed.

= Is it free? =

Yes. The plugin is free and open source.

== Screenshots ==

1. .facti files in the WordPress Media Library
2. BlockFact Verified Image Gutenberg block
3. Verification badge on a published post

== Changelog ==

= 1.0.1 =
* Hardening: sanitize and cast all request IDs (REST metadata route and image serve handler) with absint()
* Added REST argument validation and sanitization callbacks
* Internationalization: load text domain and make user-facing strings translatable
* readme "Tested up to" updated

= 1.0.0 =
* Initial release
* .facti MIME type registration
* Media Library support with thumbnail generation
* Gutenberg block with server-side rendering
* Verification badge with blockchain link
* REST API for metadata access
