> For the complete documentation index, see [llms.txt](https://docs.stamp.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stamp.network/devs/tutorials/getting-rank-scores.md).

# Getting Rank Scores

[GitHub Repository](https://github.com/circle-dot/eigenscore)

### Overview

EigenScore is a trust scoring system that leverages the OpenRank EigenScore algorithm to calculate reputation within specific communities based on attestations and interactions.

### Trust Score Calculation

#### Core Components

**1. Attestation-Based Trust**

* Scores are derived from attestations between community members
* Each attestation represents a trust relationship between:
  * Attester (source of trust)
  * Recipient (destination of trust)

**2. Pretrust Mechanism**

* Designated addresses serve as trust anchors
* These addresses have higher weight in calculations
* Help bootstrap the trust network

**3. Local Trust Network**

* Built from direct attestations between members
* Each attestation carries a base value of 1 (by default)
* Excludes self-attestations
* Forms the primary trust graph

#### Calculation Process

1. **Data Collection**
   * Fetches attestations from specified schemas
   * Filters relevant trust relationships
   * Builds local trust network
2. **Trust Propagation**
   * Uses EigenTrust algorithm
   * Iteratively propagates trust through network
   * Converges to stable trust scores
3. **Score Normalization**
   * Final scores are normalized
   * Ranked relative to community
   * Stored with position tracking

### Implementation Notes

* Scores update periodically via cronjob
* Supports multiple community configurations
* Includes sybil resistance measures
* Real-time score querying available

### Limitations

* Requires active attestation network
* Trust anchors (pretrust) influence heavily
* Score quality depends on network size
* Only considers on-chain attestations

### Security Considerations

* Protected API endpoints
* Origin verification
* Rate limiting
* Attestation validation


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.stamp.network/devs/tutorials/getting-rank-scores.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
