Verify & Sign
Web Components for document verification and DID signing. Drop them into any page — no framework, no backend, no API keys.
What is @attestto/verify?
@attestto/verify is a library of Web Components that give any web page the ability to
verify PDF documents and sign them with decentralized identity wallets. The entire verification
pipeline runs in the browser. Your documents are never uploaded, never transmitted, never logged.
Two components, one import
The library ships two Web Components:
| Component | Purpose |
|---|---|
<attestto-verify> | Drop a PDF → get hash, signatures, forensic audit, and trust level |
<attestto-sign> | Sign a document with any DID wallet → produces a Verifiable Credential |
Both are standard Custom Elements. They work in plain HTML, React, Vue, Svelte, Angular, Astro — anywhere that renders HTML. Shadow DOM encapsulation means they will never conflict with your existing styles.
Trust levels
Every verified document is assigned a trust level based on what the component can confirm:
Architecture at a glance
The verification pipeline processes documents in four stages. Each stage can be extended with plugins.
Extract data from PDF
Verify signatures
Resolve anchors & CAs
Identity & trust level
Next steps
- Installation — CDN, npm, or individual imports
- <attestto-verify> API — attributes, events, CSS parts
- <attestto-sign> API — wallet-based document signing
- Theming — CSS custom properties and ::part() selectors
- Plugins — extend verification with custom stages
- Playground — try it live in the browser