Resetter Approval
Any client could take a resetter role for another client and respond to her client's request with did_resetter_approve operation. The server will take the consensus of all resetters and decide whether to approve or reject the request.
In practice, a client could register multiple DIDs and use her own DIDs to be resetters of another DID. This is discouraged since a client could lose all private keys of all of her DIDs.
Unlike the did_register_resetters and did_revoke_resetters operations that are initiated by the DID owner, the did_resetter_approve is initiated by a DID resetter.
As a resetter, there are three consensus types:
did_register_resettersapproves a resetter registration for a DID. A set of resetters will become active after all resetters in the set approve the registration.did_revoke_resettersapproves a resetter revocation for a DID. A set of resetters will be revoked, i.e. become deactivated, if the combined voting powers of all resetters surpass"acceptable_votes".did_resetapproves a DID reset, i.e. resetting all key series in the DID. The reset will take place if the combined voting powers of all resetters surpass"acceptable_votes".
In the HTTP request for did_resetter_approve, a resetter must specify the attribute "consensus" that contains (i) the consensus type, (ii) DID address of the target client and (iii) the DID address of the resetter who makes this HTTP request, which are seperated by | as follows:
"consensus": "consensus_name|target_did_address|resetter_did_address"did_resetter_approve
POST https://test-network.finema.co/did/<resetter_did_address>/approve
Request Body
operation
string
The method's name that is "did_resetter_approve".
did_address
string
The DID address.
current_key
string
The current public key in the series. It is used to verify the request's signature.
next_key_hash
string
The SHA-256 hash of the next public key in the series.
consensus
string
The name of the invoked resetter consensus.
new_key_hash
string
The SHA-256 hash of the first public key in the new series.
nonce
number
The request nonce.
Example Messages and Requests
If that the resetter DID is did:idin:03e450465cd3bd268163dde7223bfb99efe03e3cbf279f6b1772050e09e09fbfand the target DID address is did:idin:9cd19d4cbab9ca1d6f4c6a4b9117fb8904f250b47307cf4f484424f44e0c8370 , then the field "consensus" must have the following form:
where consensus_name could be either (i) did_register_resetters, (ii) did_revoke_resetters or (iii) did_reset.
1. Approve a resetter registration:
The above message can then be encoded in Base64 and signed with ECDSA to obtain the following HTTP request
2. Approves a resetter revocation:
The above message can then be encoded in Base64 and signed with ECDSA to obtain the following HTTP request
3. Approve a DID reset:
The above message can then be encoded in Base64 and signed with ECDSA to obtain the following HTTP request
Last updated
Was this helpful?