Skip to content

ordinalsreserve/did-btco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

BTC Ordinals DID Method

Latest version: 0.1.0

The BTC Ordinals DID method is a decentralized identifiers (DIDs) method that leverages the BTC blockchain and ordinal theory. By uniquely identifying individual satoshis, this method enables creating, resolving, updating, and deactivating DIDs without altering the BTC network or requiring additional sidechains or tokens.

Implementations

  • btc-ordinal-dids - Typescript and bun implementation that relies on the ord explorer and wallet

DID Syntax and DID Document

DIDs in this method have a specific syntax, which includes a method-specific identifier derived from the ordinal position of a satoshi. The syntax can be represented as did:btco: and can be in it's name, number or decimal format as described by Ordinal Theory.

A DID Document contains a DID's public keys, authentication information, and service endpoints. The data model follows the W3C DID Core Specification, using JSON or JSON-LD as the serialization format.

Operations

Creating a DID Document

  1. Select a unique identifier using ordinal theory to determine a specific satoshi within the BTC blockchain.
  2. Create a public/private key pair for cryptographic operations and authentication.
  3. Define any necessary service endpoints for communication or interaction with the DID.
  4. Create a DID Document with the required properties following the DID Core Specification.
  5. Inscribe a text document with the DID onto the satoshi with the ordinal number mentioned in the identifier and using the DID Document as metadata.

Resolving a DID Document

  1. Retrieve the content from the most recent inscription on the satoshi associated with the method-specific identifier.
  2. If the content is a valid DID retrieve the metadata and CBOR decode it as JSON to retrieve the current document.
  3. Ensure the document id property matches the inscription content.
  4. Ensure the inscription is on the sat specified in the method-specific identifier.

Updating a DID Document

  1. Perform the same operation as creation however perform a reinscription onto the specified sat.

Deactivating a DID

  1. Perform an update with the inscription content 🔥 and no metadata.

Conclusion

The BTC Ordinals DID method provides a practical and secure solution for managing digital identities within the decentralized identity ecosystem. By leveraging the existing BTC blockchain and ordinal theory, this method enables a range of innovative use cases and applications.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published