# Welcome to Stamp ⊙

Attestation engine

<figure><img src="https://3446230904-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAl5YJNoLavEJeDaKWm6P%2Fuploads%2FErvTQHkfYRiE2SYhmgJq%2Fstamplogo.png?alt=media&amp;token=20c8de68-f5b6-4552-a9f4-82c756a0d57f" alt="Stamp Logo - A circle and a dot in the middle. All yellow" width="129"><figcaption></figcaption></figure>

## What is Stamp Network?

Stamp is a layer of composable attestations on top of EAS that helps communities understand their members and collaborate, using Zupass as an interoperability & privacy layer.&#x20;

## What is an attestation?

An **attestation** refers to a signed statement or proof provided by an entity (usually a user or a smart contract) regarding a specific date or event. In decentralized systems like Ethereum, attestations can be used to validate or confirm facts or actions in a trustless manner, without the need for intermediaries.

## Use Cases

These layers of attestations can take many forms, from creating a web of trust to endorsements for people's skills and capabilities for organizations or AI agents.


# Getting Started

Using Stamp Network

Schemas\
\
Architecture


# Tutorials


# 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


# Verify Credentials

Verify a users tickets and passports

This tutorial will teach you how to verify a user's credentials. This can be used as a login system, gating mechanism, or one-time redemption. \
\
Stamp Passports are PODs (Provable Object Data) that can be verified while maintaining different levels of an account's privacy.&#x20;

### Privacy

When you verify a passport, you must define which fields the user must disclose. Each proof from a POD comes with a nullifier parameter, which is unique and can be used to do single-use verification while maintaining the user's privacy.&#x20;

### Verification Code

Coming soon...


# EAS and Resolvers

### Overview

The project utilizes the Ethereum Attestation Service (EAS) to create a web of trust system through two main schemas:

* Pretrust Schema
* Vouch Schema

### Schemas

#### Pretrust Schema

The pretrust schema serves as the seeding group for the web of trust. Its primary purpose is to ensure that each unique Zupass credential is linked to only one Ethereum address.

**Schema Structure:**

```solidity
bytes32 nullifier,
bytes32 category,
bytes32 subcategory,
bytes32 issuer,
bytes32 credentialType,
bytes32 platform
```

**Schema URL:** [Base EAS Scanner - Pretrust Schema](https://base.easscan.org/schema/view/0xe6428e26d2e2c1a92ac3f5b30014a228940017aa3e621e9f16f02f0ecb748de9)

**Pretrust Resolver**

The pretrust resolver implements the following key functionality:

* Validates Zupass credentials
* Ensures one-to-one mapping between credentials and addresses
* Prevents duplicate attestations for the same credential

#### Vouch Schema

The vouch schema represents endorsements between users within the system.

**Schema Structure:**

```solidity
bytes32 platform,
bytes32 category,
bytes32 subCategory
```

**Schema URL:** [Base EAS Scanner - Vouch Schema](https://base.easscan.org/schema/view/0xb6b4f5642693a970d1c43bfd55b34a6a32cdce692c390958f201a5f529eb6893)

**Vouch Resolver**

The vouch resolver provides the following capabilities:

* Season management by admins
* Vouch limit enforcement per user per season
* Admin management system
* Query interface for season and user data

### Base Sepolia

[Vouch Resolver Contract ](https://sepolia.basescan.org/address/0x000000abc3f5670c699c40bf8aedb99a145524ae#readContract)

[Vouch Schema](https://base-sepolia.easscan.org/schema/view/0xa142412d946732a5a336236267a625ab2bc5c51b9d6f0703317bc979432ced66)

### Add new Communities and/or Categories

Currently, you need to be whitelisted for this. Join this telegram group for requests: <https://t.me/+BEa8nA1BW-swMzk5>&#x20;

1. Head to Resolver Contract
2. Go to `Read Contract` and then to `getVouchCode`
3. Go to `Write Contract` and then fill the Code you got from previous step in `setVouchingLimit`&#x20;


# RoboID

\[WIP]

DID-based identifiers for digital entities.&#x20;


# Access Control

Access control lets developers define what actions can be performed by each human or digital entity. \
\
Based on OCAPs (Object Capabilities), it allows advanced permissions while also seamless integration with [SIWE](https://login.xyz/) (Sign in With Ethereum). This is enabled by [CAIP-196: CACAO](https://chainagnostic.org/CAIPs/caip-196).


# Web of Trust for Communities

A **Web of Trust (WoT)** is a decentralized trust model where users establish trust relationships by directly verifying each other’s identities, or by relying on other trusted users to do so. It is based on peer-to-peer trust rather than a hierarchical structure (like certificate authorities in Public Key Infrastructure, PKI).

## Credentials

There are \***tickets\***, which are acquired when purchasing a ticket. These do not necessarily imply trust.

Users can vouch for each other through **\*stamps\***, which are attestations and can be revoked.&#x20;

When a user gets a high trust score, by collecting stamps from other users, a **\*passport\*** is emitted. Each community can define a different threshold that lets users obtain there. Depending on the trust required to safeguard the community, this can be higher or lower.&#x20;

## New communities

To request the inclusion of a new community, for now please contact <petra@circledot.tech> . In the future, this might be permissionless. &#x20;


# AI Capabilities

WIP


# Talent Endorsement

WIP


# Roadmap

The roadmap is under WIP. \
\
If you want to help shape the future of Stamp Network, you can signal what you think should be built. here: <https://stamp.canny.io/features>\
\
Or join our telegram: <https://t.me/+cuIT_6-R3R00M2Ux><br>


# Ecosystem

Want to be part of the ecosystem? Reach out to [petra@](mailto:petra@stamp.network)[circledot.tech](mailto:petra@circledot.tech)


