Skip to content

Smart contracts and provider interface for `did:algo` on-chain storage.

Notifications You must be signed in to change notification settings

aidtechnology/did-algo-storage

Repository files navigation

Contract

contracts/algo-did.algo.ts is a smart contract for mapping public keys to a DID document.

SDK

src/index.ts is an SDK for uploading and resolving DID Documents.

Methods

uploadDIDDocument

Uploads a DID document for a public key in an Algorand DID contract. This function will upload the data to box storage and then read back the data for validation.

resolveDID

Given a DID (algo:did:${address}-${appID}), returns the data stored in box storage of the given app ID for the given address.

Tests

__test__/algo-did.test.ts contains tests for uploading and resolving both big (multi-box) and small (single-box) documents.

About

Smart contracts and provider interface for `did:algo` on-chain storage.

Resources

Stars

Watchers

Forks