77from hashlib import sha256
88from typing import List , Optional , Sequence , Tuple , Union
99
10+ from ..core .profile import Profile
1011from ..indy .issuer import DEFAULT_CRED_DEF_TAG , IndyIssuer , IndyIssuerError
1112from ..messaging .valid import IndyDID
1213from ..utils import sentinel
@@ -175,7 +176,7 @@ async def rotate_public_did_keypair(self, next_seed: Optional[str] = None) -> No
175176 """
176177
177178 @abstractmethod
178- async def get_wallet_public_did (self ) -> DIDInfo :
179+ async def get_wallet_public_did (self , profile : Optional [ Profile ] = None ) -> DIDInfo :
179180 """Fetch the public DID from the wallet."""
180181
181182 @abstractmethod
@@ -193,7 +194,7 @@ async def accept_txn_author_agreement(
193194 """Save a new record recording the acceptance of the TAA."""
194195
195196 @abstractmethod
196- async def get_latest_txn_author_acceptance (self ):
197+ async def get_latest_txn_author_acceptance (self , profile : Optional [ Profile ] = None ):
197198 """Look up the latest TAA acceptance."""
198199
199200 def taa_digest (self , version : str , text : str ):
@@ -219,6 +220,7 @@ async def txn_submit(
219220 taa_accept : Optional [bool ] = None ,
220221 sign_did : DIDInfo = sentinel ,
221222 write_ledger : bool = True ,
223+ profile : Optional [Profile ] = None ,
222224 ) -> str :
223225 """Write the provided (signed and possibly endorsed) transaction to the ledger."""
224226
@@ -414,6 +416,7 @@ async def send_revoc_reg_entry(
414416 issuer_did : Optional [str ] = None ,
415417 write_ledger : bool = True ,
416418 endorser_did : Optional [str ] = None ,
419+ profile : Optional [Profile ] = None ,
417420 ) -> dict :
418421 """Publish a revocation registry entry to the ledger."""
419422
0 commit comments