=== Proof of Type Input ===
Contributors: yogev77
Tags: comments, spam, anti-bot, human verification, contact form 7
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Comments and forms typed by real people: a text box that proves a person typed the words, letter by letter, and signed them on their phone.

== Description ==

Generated text is free and endless. Proof of Type Input is a text box that proves a real person typed what's in it:

* signed in to Proof of Type,
* typed letter by letter (no paste, no generated text),
* and signed on their phone.

Your site gets the text plus a signed proof, and the plugin checks every proof on your server before it saves anything. Each proof works once, for this site only, and only for ten minutes.

**Comments.** Turn on "Comments must be typed by a person" and the comment box becomes the Proof of Type input. Every verified comment shows "✓ Typed by a human · proof", linking to its public proof page.

**Contact Form 7.** Add `[proofoftype your-message]` to a form. The mail tag `[your-message]` is the verified text and `[your-message-proof]` is the proof link.

**Any form.** Use the "Proof of Type input" block or the `[proofoftype name="message"]` shortcode inside a form. The form sends `message` (the text) and `message_proof` (the proof). Check it in your handler:

`$proof = proofoftype_verify_submission( 'message' );`

It returns the text, the Proof of Type username and the proof link, or a `WP_Error` to show.

What people need: a free Proof of Type account and the Proof of Type phone app (iPhone or Android).

= External service =

This plugin relies on Proof of Type (https://www.proofoftype.com), the service that provides the input and the proofs:

* The input is shown in a frame served by www.proofoftype.com. People sign in and type there; Proof of Type checks what was typed and how (typing rhythm, the phone signature) to make the proof, but does not store the text. The text is sent to your site.
* Your server sends each submitted text and its proof to https://www.proofoftype.com/api/v1/verify to check it, together with your site's address. Proof of Type checks the signature and that the text matches; it does not keep the text.
* Proof links point to https://www.proofoftype.com/v/…, a public page that shows who signed, when, and a hash of the text.

Terms: https://www.proofoftype.com/terms · Privacy: https://www.proofoftype.com/privacy · Developer docs: https://www.proofoftype.com/developers

== Installation ==

1. Upload the plugin, or install the zip from Plugins → Add New → Upload, and activate it.
2. Go to Settings → Proof of Type.
3. Turn on comments, or add the block / shortcode to a form.

== Frequently Asked Questions ==

= Can someone copy text from elsewhere and retype it? =

Yes. The proof shows a person typed it on their own keyboard and approved it on their phone. It stops bots, pasting and generated text from being sent automatically; it can't stop a person from retyping something by hand.

= What happens to comments from people without the app? =

They can't comment while the setting is on. People who can moderate comments can still comment without it (you can switch that off).

= Does it work with caching plugins? =

Yes. The input is a frame and a small script; the check happens when the form is sent.

== Changelog ==

= 1.0.0 =
* First release: comments, Contact Form 7, block, shortcode, and proofoftype_verify_submission().
