01Router-
02Key cache-
03Verifier-
04Extractor (patterns)-
05Extractor (LLM)-
attest - crextract - cr

Lacre

00 / 07 Idle
Drop a signed .eml

Integrate: require_attestation in your contract.

Produce attestations: gateway, mailbox or MCP with credits, or your own wallet paying the fee.

INPUT
A signed test message from a throwaway account.
EXTRACTION
ATTESTATION PROVISIONAL
Job id
Sender domain
Record id
Attest tx
Extract tx
VALID
ALIGNED
PLUGIN 03
APIREST

                  
                
MCPSTREAMABLE HTTP

                  
                
MAILBOXSMTP

HOW IT WORKS

  1. 01
    Queued< 1 min
  2. 02
    Attesting≈ 2 min
  3. 03
    Finalizing≈ 35 min
  4. 04
    Serving body≈ 1 min
  5. 05
    Extracting≈ 3 min
  6. 06
    Finalizing≈ 35 min
  7. 07
    Recorded-

Drop a signed email and GenLayer validators fetch the sender's keys and check the signature by consensus.

Once that is final, the body is served and its fields are read, agreed on the same way.

Only then is it recorded.

PRIMITIVES

Records live here; your contract reads them by id.

INTEGRATE require_attestation asks the Verifier the Router names now, and reads it at FINALIZED only.
def final(address):
    # A record read before FINALIZED can still be appealed away (rule 1), so
    # nothing here reads any other state.
    return gl.get_contract_at(address).view(state=StorageType.LATEST_FINAL)


def resolved(router, name):
    # Resolved on every use and never stored: when the Router moves a name
    # after its 48 hour notice, this contract follows without a redeploy.
    found = str(final(router).resolve(name))
    return Address(found) if found else None


def attested(router, record_id, domain, min_key_bits):
    """(Verifier, record) for a record that passes check_for, or (None, {}).

    Never raises: an unreadable Router or Verifier reads as no attestation.
    """
    try:
        verifier = resolved(router, "verifier")
        if verifier is None:
            return None, {}
        record = dict(final(verifier).get(record_id))
        if not record:
            return None, {}
        # check_for binds a requester. This app accepts a record whoever paid
        # for it, since the requester proves nothing about who received the
        # message (rule 6), so the record's own is passed and the Verifier's
        # own comparisons decide validity, alignment, domain and key size
        # (rule 3). An app that pays out to the requester passes its own.
        ok = final(verifier).check_for(record_id, str(domain), int(min_key_bits),
                                       str(record.get("requester", "")))
        return (verifier, record) if ok is True else (None, {})
    except Exception:
        return None, {}
01

Router

Resolves each role to its current contract, so a new version needs no client change.

-
02

Key cache

Holds the sender keys the validators agreed on, with a quarantine the first time a key is seen for a domain and selector.

-
03

Verifier

Checks a signed email against the cached key and records whether it is valid and aligned.

-
04

Extractor (patterns)

Reads the fields of a message with patterns agreed per sender domain.

-
05

Extractor (LLM)

Reads the fields of a message with a model, accepted only when the validators read it alike.

-
Read from the Router on Bradbury at FINALIZED, at most ten minutes ago. Built on Lacre

WHY GENLAYER

01

Keys obtained
by consensus

Validators each fetch the sender's signing key and must agree on it, so no single resolver decides.

02

New senders
as data

An unknown domain needs no integration: its key is fetched and recorded the first time it signs.

03

Interpretation
by consensus

What the email says is accepted only when independent validators read it the same way.

MCP

PLUGIN 03
APIREST
curl -X POST https://lacre.in-sidr.xyz/attest \
  -H "X-API-Key: $LACRE_KEY" \
  -F "[email protected]" \
  -F "extract=auto"
MCPSTREAMABLE HTTP
{
  "mcpServers": {
    "lacre": {
      "type": "http",
      "url": "https://lacre.in-sidr.xyz/mcp",
      "headers": { "X-API-Key": "YOUR_KEY" }
    }
  }
}
MAILBOXSMTP
CREATE MAILBOX
TOOLS13

ACCESS

01NO ACCOUNT

Integrate

Your contract reads records by id with require_attestation. Nothing to sign up for.

SEE THE SNIPPET
02GATEWAY · MAILBOX · MCP

Get credits

Request an API key. The gateway pays the fee and the gas, and you pay it in credits.

BRADBURY

Use your wallet

Have GEN? Sign attest_inline yourself and pay the fee. No account.

Bradbury GEN from the faucet