---
# System prepended metadata

title: XID Documents Notes

---

---
robots: noindex, nofollow
---

# XID Documents Notes

## FOAF-Based Example

```
{
    XID(A) [
        'allow': 'all'
        'key': PublicKeyBase
        'knows': XID(B)
    ]
} [
    'verifiedBy': Signature
]

{
    XID(B) [
        'allow': 'all'
        'key': PublicKeyBase
        'knows': XID(A)
    ]
} [
    'verifiedBy': Signature
]
```

## Credential

```
{
    XID(Christopher) [
        'credential': [
            'allow': 'accessHouse'
            'grantedBy': XID(Wolf)
            'startDate': 2024-01-29
            'endDate': 2024-12-31
            'endpoint': "https://wolf.house/access"
        ]
    ]
} [
    'verifiedBy': Signature
]
```

## Credential Presentation

```
{
    request(ARID(c66be27d)) [
        'body': «accessHouse» [
            ❰authorization❱: {
                XID(Christopher) [
                    'credential': [
                        'allow': 'accessHouse'
                        'grantedBy': XID(Wolf)
                        'startDate': 2024-01-29
                        'endDate': 2024-12-31
                        'endpoint': "https://wolf.house/access"
                    ]
                ]
            } [
                'verifiedBy': Signature
            ]
        ]
        'senderPublicKey': PublicKeyBase
    ]
} [
    'verifiedBy': Signature
]
```

## Peer Example

```
{
    XID(A) [
        'allow': 'all'
        'key': PublicKeyBase
        'knows': XID(B) [
            'via': XID(C)
        ]
    ]
} [
    'verifiedBy': Signature
]

{
    XID(B) [
        'allow': 'all'
        'key': PublicKeyBase
        'knows': XID(A) [
            'via': XID(C)
        ]
    ]
} [
    'verifiedBy': Signature
]

{
    XID(C) [
        'isA': 'EdgeIdentifier' [
            'peer': XID(A)
            'peer': XID(B)
        ]
        'allow': 'all'
        'key': PublicKeyBase
    ]
} [
    'verifiedBy': Signature
]

XID(C) [
    'isA': 'EdgeIdentifier' [
        'peer': XID(A)
        'peer': XID(B)
    ]
    'allow': 'all'
    'key': PublicKeyBase
]
```



## Peer Proof

```
{
    XID(A) [
        'allow': 'all'
        'key': PublicKeyBase
        'knows': XID(B) [
            'via': XID(C)
        ]
    ]
} [
    'verifiedBy': Signature
]

{
    XID(B) [
        'allow': 'all'
        'key': PublicKeyBase
        'knows': XID(A) [
            'via': XID(C)
        ]
    ]
} [
    'verifiedBy': Signature
]

{
    XID(C) [
        'allow': 'all'
        'key': PublicKeyBase
        ELIDED
    ]
} [
    'verifiedBy': Signature
]

{
    XID(C) [
        'isA': 'EdgeIdentifier' [
            'peer': XID(A)
            'peer': XID(B)
        ]
        'allow': 'all'
        'key': PublicKeyBase
    ]
} [
    'verifiedBy': Signature
]
```