Evidence

Description

A piece of evidence supporting a hypercert claim.

Lexicon

Lexicon ID: org.hypercerts.claim.evidence

PropertyTypeRequiredDescriptionComments
activityrefA strong reference to the activity this evidence is forThe record referenced must conform with the lexicon org.hypercerts.claim.activity
contentunionA piece of evidence (URI or blobs) supporting a hypercert claim
titlestringTitle to describe the nature of the evidence
shortDescriptionstringShort description explaining what this evidence demonstrates or proves
descriptionstringOptional longer description describing the impact claim evidence.
createdAtstringClient-declared timestamp when this hypercert claim was originally created

Code Example

The SDK is in active development. Package names and API methods may change.

Create an evidence record:

TypeScript
import { BskyAgent } from '@atproto/api'


const agent = new BskyAgent({ service: 'https://pds.example.com' })
await agent.login({ identifier: 'your-handle', password: 'your-app-password' })


const response = await agent.api.com.atproto.repo.createRecord({
  repo: agent.session.did,
  collection: 'org.hypercerts.claim.evidence',
  record: {
    // Title describing the nature of the evidence
    title: 'GitHub Repository',
    // Short description of what this evidence demonstrates
    shortDescription: 'Source code repository for the maintained library',
    // Evidence content (URI or blob)
    content: {
      $type: 'org.hypercerts.defs#uri',
      uri: 'https://github.com/example/library',
    },
    // Timestamp when this record was created
    createdAt: new Date().toISOString(),
  },
})


console.log('Created:', response.data.uri)