Giter VIP home page Giter VIP logo

did's Introduction

API Documentation Build Status

About

“Decentralized identifiers (DIDs) are a new type of identifier that enables verifiable, decentralized digital identity. A DID refers to any subject (e.g., a person, organization, thing, data model, abstract entity, etc.) as determined by the controller of the DID. In contrast to typical, federated identifiers, DIDs have been designed so that they may be decoupled from centralized registries, identity providers, and certificate authorities.”

The implementation fully covers W3C's standard without any third party libraries. Developers can follow their own preference for technologies such as JWK or multibase if needed.

This is free and unencumbered software released into the public domain.

did's People

Contributors

pascaldekloe avatar

Watchers

 avatar  avatar  avatar

did's Issues

Colon In Method Specific ID

The standard allows colons anywhere in the ID as long as it is not the last character.

method-specific-id = *( *idchar ":" ) 1*idchar

The specification has no mention of wat such colon means, nor why this last character is different. Is there any difference between an escaped ("%3A") or a literal (":") value?

Unknown Character Location On SyntaxError

The use of url.Parse in did.ParseURL causes wrapped errors, and an unknown [negative] character position/index. Not much of a stretch to include a custom query parser from here.

URL ResolveReference Absent

Did.URL inherits ResolveReference from did.DID. This method does not take the URL attributes into account (obviously).

The specification suggests to treat a DID URI path as a regular URI path, which it technically is not due to the opaque structure.

“When resolving a relative DID URL reference, the algorithm specified in RFC3986 Section 5: Reference Resolution MUST be used. The base URI value is the DID that is associated with the DID subject, see 5.1.1 DID Subject. The scheme is did. The authority is a combination of :, and the path, query, and fragment values are those defined in Path, Query, and Fragment, respectively.”

As such, the base did.URI RawPath should serve as a reference to any relative URI reference not starting with a slash.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.