# ai.newnal.trustsquare.verification

> Published by [bezalel-newnal.bsky.social](https://lexicon.garden/identity/did:plc:75qhtany5zmo7d3i2ni5d7nf)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.verification)
- [Documentation](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.verification/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.verification/examples)

## Definitions

### `ai.newnal.trustsquare.verification`

**Type**: `record`

Public, PII-free proof that this account passed identity verification with the Newnal verifier. The attestation is a compact JWS signed by the issuer; the AppView rejects records whose signature or payload does not match.

**Key**: `literal:self`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `issuer` | `string` (did) | Yes | did:web:trustsquare.newnal.ai |
| `subject` | `string` (did) | Yes | Must equal the repository DID. |
| `provider` | `string` | Yes |  |
| `expiresAt` | `string` (datetime) | Yes |  |
| `disclosure` | `ref` → `ai.newnal.trustsquare.defs#disclosure` | Yes |  |
| `verifiedAt` | `string` (datetime) | Yes |  |
| `attestation` | `ref` → `#attestation` | Yes |  |
| `verificationId` | `string` | Yes | Opaque id used for status/revocation lookups. |

### `ai.newnal.trustsquare.verification#attestation`

**Type**: `object`

Verifier signature over the canonical attestation payload.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `kid` | `string` | Yes | Key id in the issuer DID document. |
| `value` | `string` | Yes | Compact JWS over the canonical attestation payload (see 04-identity-verification.md). |
| `format` | `string` | Yes |  |

## Raw Schema

```json
{
  "id": "ai.newnal.trustsquare.verification",
  "defs": {
    "main": {
      "key": "literal:self",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "issuer",
          "subject",
          "verificationId",
          "provider",
          "disclosure",
          "verifiedAt",
          "expiresAt",
          "attestation"
        ],
        "properties": {
          "issuer": {
            "type": "string",
            "format": "did",
            "description": "did:web:trustsquare.newnal.ai"
          },
          "subject": {
            "type": "string",
            "format": "did",
            "description": "Must equal the repository DID."
          },
          "provider": {
            "type": "string",
            "knownValues": [
              "naver",
              "kakao",
              "toss",
              "pass",
              "mock-sms"
            ]
          },
          "expiresAt": {
            "type": "string",
            "format": "datetime"
          },
          "disclosure": {
            "ref": "ai.newnal.trustsquare.defs#disclosure",
            "type": "ref"
          },
          "verifiedAt": {
            "type": "string",
            "format": "datetime"
          },
          "attestation": {
            "ref": "#attestation",
            "type": "ref"
          },
          "verificationId": {
            "type": "string",
            "maxLength": 64,
            "description": "Opaque id used for status/revocation lookups."
          }
        }
      },
      "description": "Public, PII-free proof that this account passed identity verification with the Newnal verifier. The attestation is a compact JWS signed by the issuer; the AppView rejects records whose signature or payload does not match."
    },
    "attestation": {
      "type": "object",
      "required": [
        "format",
        "kid",
        "value"
      ],
      "properties": {
        "kid": {
          "type": "string",
          "maxLength": 128,
          "description": "Key id in the issuer DID document."
        },
        "value": {
          "type": "string",
          "maxLength": 8192,
          "description": "Compact JWS over the canonical attestation payload (see 04-identity-verification.md)."
        },
        "format": {
          "type": "string",
          "knownValues": [
            "jws-compact"
          ]
        }
      },
      "description": "Verifier signature over the canonical attestation payload."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
