0.9.0 • Published 2 years ago

@ew-did-registry/did-resolver-interface v0.9.0

Weekly downloads
350
License
ISC
Repository
-
Last release
2 years ago

DID Resolver Interface

EW-DID library has a design goal to support different DID methods. did-document allows management of keys, authorisation, delegation and service endpoints in standardised way. In the practical scenario, the CRUD behaviour of the did-document needs to be specific to the DID method's underlying implementation. EW-DID aims to handle this through the DID method specific resolver implementation.

did-resolver-interface defines the contract required for CRUD behaviour of the did-document. did-ethr-resolver provides a reference implementation of ERC 1056 standard.

Class Diagram

npm.io

Pseudo example of implementation

// MyResolver - Implement the read only behaviour for your DID Method
class Resolver implements IResolver{
        
    read(){
    // return the whole DID Document
    }
    
    readAttribute(){
    // read an attribute as per did method requirement 
    }
    
    validDelegate(){
    //validate a delegate as per did method requirement
    }

}

// MyResolver - Implement the update and revoke behaviour for your DID Method
class Operator extends Resolver implements IOperator {

    create(){
    //create specific to did method
    }

    update(){
    //update specific to did method
    }

    deactivate(){
    //deactivate specific to did method
    }

    revokeDelegate(){
    //revokeDelegate specific to did method
    }
    
    revokeAttribute(){
    //revoke attribute specific to did method
    }

}
0.9.0

2 years ago

0.8.0

3 years ago

0.7.0

3 years ago

0.6.0

4 years ago

0.5.2-alpha.96.0

4 years ago

0.5.2-alpha.94.0

4 years ago

0.5.2-alpha.90.0

4 years ago

0.5.2-alpha.84.0

4 years ago

0.5.2-alpha.78.0

4 years ago

0.5.2-alpha.75.0

4 years ago

0.5.2-alpha.65.0

4 years ago

0.5.2-alpha.62.0

4 years ago

0.5.2-alpha.57.0

4 years ago

0.5.2-alpha.52.0

4 years ago

0.5.2-alpha.44.0

4 years ago

0.5.2-alpha.40.0

4 years ago

0.5.2-alpha.41.0

4 years ago

0.5.2-alpha.3.0

4 years ago

0.5.2-alpha.2.0

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0-alpha.0

4 years ago