0.1.6 • Published 4 months ago

@atcute/did-plc v0.1.6

Weekly downloads
-
License
0BSD
Repository
github
Last release
4 months ago

@atcute/did-plc

validations, type definitions and schemas for did:plc operations

import { defs, validateIndexedOperationLog } from '@atcute/did-plc';

const did = `did:plc:ragtjsm2j2vknwkz3zp4oxrd`;

const response = await fetch(`https://plc.directory/${did}/log/audit`);
const json = await response.json();

const logs = defs.indexedOperationLog.parse(json);
await validateIndexedOperationLog(did, logs);
0.1.6

4 months ago

0.1.5

5 months ago

0.1.4

5 months ago

0.1.3

6 months ago

0.1.2

6 months ago

0.1.1

7 months ago

0.1.0

7 months ago