7
7
from hashlib import sha256
8
8
from typing import List , Optional , Sequence , Tuple , Union
9
9
10
+ from ..core .profile import Profile
10
11
from ..indy .issuer import DEFAULT_CRED_DEF_TAG , IndyIssuer , IndyIssuerError
11
12
from ..messaging .valid import IndyDID
12
13
from ..utils import sentinel
@@ -175,7 +176,7 @@ async def rotate_public_did_keypair(self, next_seed: Optional[str] = None) -> No
175
176
"""
176
177
177
178
@abstractmethod
178
- async def get_wallet_public_did (self ) -> DIDInfo :
179
+ async def get_wallet_public_did (self , profile : Optional [ Profile ] = None ) -> DIDInfo :
179
180
"""Fetch the public DID from the wallet."""
180
181
181
182
@abstractmethod
@@ -193,7 +194,7 @@ async def accept_txn_author_agreement(
193
194
"""Save a new record recording the acceptance of the TAA."""
194
195
195
196
@abstractmethod
196
- async def get_latest_txn_author_acceptance (self ):
197
+ async def get_latest_txn_author_acceptance (self , profile : Optional [ Profile ] = None ):
197
198
"""Look up the latest TAA acceptance."""
198
199
199
200
def taa_digest (self , version : str , text : str ):
@@ -219,6 +220,7 @@ async def txn_submit(
219
220
taa_accept : Optional [bool ] = None ,
220
221
sign_did : DIDInfo = sentinel ,
221
222
write_ledger : bool = True ,
223
+ profile : Optional [Profile ] = None ,
222
224
) -> str :
223
225
"""Write the provided (signed and possibly endorsed) transaction to the ledger."""
224
226
@@ -414,6 +416,7 @@ async def send_revoc_reg_entry(
414
416
issuer_did : Optional [str ] = None ,
415
417
write_ledger : bool = True ,
416
418
endorser_did : Optional [str ] = None ,
419
+ profile : Optional [Profile ] = None ,
417
420
) -> dict :
418
421
"""Publish a revocation registry entry to the ledger."""
419
422
0 commit comments