Skip to content

Commit 09bfb7d

Browse files
committed
Add rortate keypair for DID from wallet controller
1 parent 6ffda81 commit 09bfb7d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

aries_cloudcontroller/controllers/wallet.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ async def get_dids(self):
1616
async def create_did(self):
1717
return await self.admin_POST(f"{self.base_url}/did/create")
1818

19+
async def rotate_pub_key_pair(self, did: str):
20+
return await self.admin_PATCH(
21+
f"{self.base_url}/did/local/rotate-keypair?did={did}"
22+
)
23+
1924
async def get_public_did(self):
2025
return await self.admin_GET(f"{self.base_url}/did/public")
2126

@@ -32,5 +37,3 @@ async def set_did_endpoint(self, did, endpoint, endpoint_type):
3237
return await self.admin_POST(
3338
f"{self.base_url}/set-did-endpoint", json_data=body
3439
)
35-
36-
## TODO Patch rotate-keypair

0 commit comments

Comments
 (0)