Skip to content

Commit

Permalink
[CHIA-1934] Remove get_new_* from DIDWallet (#18968)
Browse files Browse the repository at this point in the history
* remove `get_new_*` from `DIDWallet`

* remove `get_puzzle` entirely
  • Loading branch information
Quexington authored Dec 4, 2024
1 parent 215327a commit 0cda424
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions chia/wallet/did_wallet/did_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,11 +553,6 @@ def puzzle_hash_for_pk(self, pubkey: G1Element) -> bytes32:
)
return create_singleton_puzzle_hash(innerpuz_hash, origin_coin_name)

async def get_new_puzzle(self) -> Program:
return self.puzzle_for_pk(
(await self.wallet_state_manager.get_unused_derivation_record(self.wallet_info.id)).pubkey
)

def get_my_DID(self) -> str:
assert self.did_info.origin_coin is not None
core = self.did_info.origin_coin.name()
Expand Down Expand Up @@ -1108,13 +1103,6 @@ async def get_p2_inner_hash(self, new: bool) -> bytes32:
async def get_p2_inner_puzzle(self, new: bool) -> Program:
return await self.standard_wallet.get_puzzle(new=new)

async def get_new_p2_inner_hash(self) -> bytes32:
puzzle = await self.get_new_p2_inner_puzzle()
return puzzle.get_tree_hash()

async def get_new_p2_inner_puzzle(self) -> Program:
return await self.standard_wallet.get_new_puzzle()

async def get_did_innerpuz(self, new: bool, origin_id: Optional[bytes32] = None) -> Program:
if self.did_info.origin_coin is not None:
launcher_id = self.did_info.origin_coin.name()
Expand Down

0 comments on commit 0cda424

Please sign in to comment.