@@ -462,12 +462,8 @@ async def send_create_did_message(self, did: str) -> MyDataDIDRegistryDIDCommTra
462
462
pairwise_local_did_record .verkey , key_type = KeyType .ED25519 )
463
463
464
464
# to_did
465
- pairwise_remote_did_record = await storage .search_records (
466
- type_filter = ConnectionManager .RECORD_TYPE_DID_KEY ,
467
- tag_query = {"did" : connection_record .their_did }
468
- ).fetch_single ()
469
465
to_did = DIDMyData .from_public_key_b58 (
470
- pairwise_remote_did_record . value , key_type = KeyType .ED25519 )
466
+ connection_record . their_did , key_type = KeyType .ED25519 )
471
467
472
468
# to be created did
473
469
# Fetch local did record for verkey provided.
@@ -682,12 +678,8 @@ async def send_read_did_message(self, did: str) -> MyDataDIDRegistryDIDCommTrans
682
678
pairwise_local_did_record .verkey , key_type = KeyType .ED25519 )
683
679
684
680
# to_did
685
- pairwise_remote_did_record = await storage .search_records (
686
- type_filter = ConnectionManager .RECORD_TYPE_DID_KEY ,
687
- tag_query = {"did" : connection_record .their_did }
688
- ).fetch_single ()
689
681
to_did = DIDMyData .from_public_key_b58 (
690
- pairwise_remote_did_record . value , key_type = KeyType .ED25519 )
682
+ connection_record . their_did , key_type = KeyType .ED25519 )
691
683
692
684
# Create read-did message
693
685
read_did_message = ReadDIDMessage (
@@ -919,12 +911,8 @@ async def send_delete_did_message(self, did: str) -> MyDataDIDRegistryDIDCommTra
919
911
pairwise_local_did_record .verkey , key_type = KeyType .ED25519 )
920
912
921
913
# to_did
922
- pairwise_remote_did_record = await storage .search_records (
923
- type_filter = ConnectionManager .RECORD_TYPE_DID_KEY ,
924
- tag_query = {"did" : connection_record .their_did }
925
- ).fetch_single ()
926
914
to_did = DIDMyData .from_public_key_b58 (
927
- pairwise_remote_did_record . value , key_type = KeyType .ED25519 )
915
+ connection_record . their_did , key_type = KeyType .ED25519 )
928
916
929
917
# To be deleted did
930
918
@@ -2315,12 +2303,8 @@ async def construct_data_agreement_offer_message(self, connection_record: Connec
2315
2303
remote_records [0 ].tags .get ("did" ))
2316
2304
2317
2305
# Principle DID from connection record
2318
- pairwise_remote_did_record = await storage .search_records (
2319
- type_filter = ConnectionManager .RECORD_TYPE_DID_KEY ,
2320
- tag_query = {"did" : connection_record .their_did }
2321
- ).fetch_single ()
2322
2306
principle_did = DIDMyData .from_public_key_b58 (
2323
- pairwise_remote_did_record . value , key_type = KeyType .ED25519 )
2307
+ connection_record . their_did , key_type = KeyType .ED25519 )
2324
2308
2325
2309
# Construct data agreement negotiation offer message
2326
2310
@@ -2496,12 +2480,8 @@ async def resolve_remote_mydata_did(self, *, mydata_did: str) -> MyDataDIDRespon
2496
2480
pairwise_local_did_record .verkey , key_type = KeyType .ED25519 )
2497
2481
2498
2482
# to_did
2499
- pairwise_remote_did_record = await storage .search_records (
2500
- type_filter = ConnectionManager .RECORD_TYPE_DID_KEY ,
2501
- tag_query = {"did" : connection_record .their_did }
2502
- ).fetch_single ()
2503
2483
to_did = DIDMyData .from_public_key_b58 (
2504
- pairwise_remote_did_record . value , key_type = KeyType .ED25519 )
2484
+ connection_record . their_did , key_type = KeyType .ED25519 )
2505
2485
2506
2486
# Create read-did message
2507
2487
read_did_message = ReadDIDMessage (
@@ -3030,12 +3010,8 @@ async def construct_data_agreement_verify_request(self, *, data_agreement_id: st
3030
3010
pairwise_local_did_record .verkey , key_type = KeyType .ED25519 )
3031
3011
3032
3012
# to_did
3033
- pairwise_remote_did_record = await storage .search_records (
3034
- type_filter = ConnectionManager .RECORD_TYPE_DID_KEY ,
3035
- tag_query = {"did" : auditor_connection_record .their_did }
3036
- ).fetch_single ()
3037
3013
to_did = DIDMyData .from_public_key_b58 (
3038
- pairwise_remote_did_record . value , key_type = KeyType .ED25519 )
3014
+ connection_record . their_did , key_type = KeyType .ED25519 )
3039
3015
3040
3016
# Fetch data agreement instance
3041
3017
data_agreement_instances = await self .query_data_agreement_instances (
0 commit comments