forked from Chia-Network/chia-blockchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge DID into main (Chia-Network#1720)
* rebase DID off main * fix indentation and imports * lint fixes * fix test_compilation paths for new puzzles * added _init__.py for did_wallet * mypy typing fixes * included did_wallet in setup.py module list * stored pubkey & puzhash so that recovery_spend can choose not take them * black missing comma
- Loading branch information
1 parent
b3f70a1
commit 5e1bf6d
Showing
19 changed files
with
2,272 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,9 @@ vdf_bench | |
# Backup Files | ||
*.backup | ||
|
||
# Attest Files | ||
*.attest | ||
|
||
# Compiled CLVM | ||
main.sym | ||
*.recompiled | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from dataclasses import dataclass | ||
from typing import List, Optional, Tuple | ||
|
||
from chia.types.blockchain_format.sized_bytes import bytes32 | ||
from chia.util.ints import uint64 | ||
from chia.util.streamable import streamable, Streamable | ||
from chia.wallet.cc_wallet.ccparent import CCParent | ||
from chia.types.blockchain_format.program import Program | ||
from chia.types.blockchain_format.coin import Coin | ||
|
||
|
||
@dataclass(frozen=True) | ||
@streamable | ||
class DIDInfo(Streamable): | ||
my_did: Optional[bytes] | ||
backup_ids: List[bytes] | ||
num_of_backup_ids_needed: uint64 | ||
parent_info: List[Tuple[bytes32, Optional[CCParent]]] # {coin.name(): CCParent} | ||
current_inner: Optional[Program] # represents a Program as bytes | ||
temp_coin: Optional[Coin] # partially recovered wallet uses these to hold info | ||
temp_puzhash: Optional[bytes32] | ||
temp_pubkey: Optional[bytes] |
Oops, something went wrong.