---
title: "locker.key-change@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/locker.key-change"
updated: null
---

# locker.key-change@1 · OpenVibe.Services

HTML: [locker.key-change@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/locker.key-change)

# LockerKeyChange `locker.key-change@1`

Generated at 2026-11-13 06:25:48 UTC from [`openvibe-contracts v0.419.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.419.0) and [`openvibe-sdk v0.161.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.161.0).

- Version: 1.0.0
- Owner: network
- Visibility: public
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/locker/key-change.v1.json`](/docs/contracts/locker.key-change.json)

locker.key-change@1: a record that a person's locker keys changed, so the share sheet can warn before sharing with a key that is not the one people saw before.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `subject` | [identity.subject-ref](/docs/contracts/identity.subject-ref) | yes |  |  |
| `reason` | enum | yes |  | - `one of "created", "rotated", "restored"` |
| `changed_at` | string | yes |  | - `format date-time` |
| `fingerprint` | string | yes | The eight words of the new keys, in two groups of four joined by a middle dot. | - `pattern ^[a-z]+ [a-z]+ [a-z]+ [a-z]+ · [a-z]+ [a-z]+ [a-z]+ [a-z]+$` |
| `previous_fingerprint` | string |  | The eight words before the change, when there were any. | - `pattern ^[a-z]+ [a-z]+ [a-z]+ [a-z]+ · [a-z]+ [a-z]+ [a-z]+ [a-z]+$` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: example

~~~~
{
  "subject": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
  },
  "reason": "rotated",
  "changed_at": "2026-11-06T00:00:00Z",
  "fingerprint": "amber quiet harbor cedar · mist dawn ember willow",
  "previous_fingerprint": "amber quiet harbor stone · lake fern moss reed"
}
~~~~

Rejected: reason

~~~~
{
  "subject": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
  },
  "reason": "stolen",
  "changed_at": "2026-11-06T00:00:00Z",
  "fingerprint": "amber quiet harbor cedar · mist dawn ember willow"
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('locker.key-change@1', value);   // { valid, errors: [{ path, message }] }
~~~~
