0.9.0 • Published 6 months ago

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

Weekly downloads
350
License
ISC
Repository
-
Last release
6 months 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.1-alpha.1263.0

6 months ago

0.9.1-alpha.1210.0

8 months ago

0.9.1-alpha.1177.0

9 months ago

0.9.1-alpha.1184.0

9 months ago

0.9.1-alpha.1196.0

9 months ago

0.9.1-alpha.1253.0

7 months ago

0.9.1-alpha.1181.0

9 months ago

0.9.1-alpha.1167.0

10 months ago

0.9.1-alpha.1239.0

7 months ago

0.9.1-alpha.1179.0

9 months ago

0.9.1-alpha.1186.0

9 months ago

0.9.0

10 months ago

0.9.1-alpha.1265.0

6 months ago

0.8.1-alpha.1147.0

10 months ago

0.8.1-alpha.1162.0

10 months ago

0.9.1-alpha.1171.0

9 months ago

0.9.1-alpha.1175.0

9 months ago

0.9.1-alpha.1194.0

9 months ago

0.9.1-alpha.1190.0

9 months ago

0.8.1-alpha.1140.0

10 months ago

0.8.1-alpha.1137.0

10 months ago

0.8.1-alpha.1122.0

11 months ago

0.8.1-alpha.1129.0

11 months ago

0.8.0

2 years ago

0.7.0

2 years ago

0.6.0

3 years ago

0.5.2-alpha.96.0

3 years ago

0.5.2-alpha.94.0

3 years ago

0.5.2-alpha.90.0

3 years ago

0.5.2-alpha.84.0

3 years ago

0.5.2-alpha.78.0

3 years ago

0.5.2-alpha.75.0

3 years ago

0.5.2-alpha.65.0

3 years ago

0.5.2-alpha.62.0

3 years ago

0.5.2-alpha.57.0

3 years ago

0.5.2-alpha.52.0

3 years ago

0.5.2-alpha.44.0

3 years ago

0.5.2-alpha.40.0

3 years ago

0.5.2-alpha.41.0

3 years ago

0.5.2-alpha.3.0

3 years ago

0.5.2-alpha.2.0

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.0-alpha.0

3 years ago