Trust score for keys
trust_scoreScore Nostr keys by analyzing network vouching: follower counts, trusted key proximity, interactions, and age. Identify new or existing keys.
Instructions
Scores how much the network vouches for keys, using what the configured relays hold about who follows whom: how many keys follow it, how many of those followers are themselves followed (established), how close it is to keys YOU trust (pass them as trusted: a trusted key following it counts most), how many different keys interacted with it, and how long it has been seen. Give pubkeys, or leave them out to examine the NEW keys of a recent window (keys not seen on any relay before it). A web-of-trust aid, not a verdict or an identity check: keys can follow each other in rings, and "unknown" means nothing vouches for it here, not that it is bad.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| relays | No | Relays to read from; each must be configured. Default: all configured. The first one is where new keys are looked for. | |
| pubkeys | No | Keys to score (hex or npub). Omit to take the new keys of the last `recentHours` seen on the FIRST relay and not seen before on any of the relays. | |
| trusted | No | Keys you trust (hex or npub), e.g. your own. Without them the "close to a trusted key" points are not available. | |
| recentHours | No | When no pubkeys are given: the window in which a key must have appeared for the first time (default 48). |