mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-11 10:56:14 +03:00
14 lines
391 B
Python
14 lines
391 B
Python
from blspy import AugSchemeMPL
|
|
|
|
from src.wallet.puzzles import p2_delegated_puzzle
|
|
from src.util.ints import uint32
|
|
from src.wallet.derive_keys import master_sk_to_wallet_sk
|
|
|
|
MASTER_KEY = AugSchemeMPL.key_gen(bytes([1] * 32))
|
|
|
|
|
|
def puzzle_program_for_index(index: uint32):
|
|
return p2_delegated_puzzle.puzzle_for_pk(
|
|
bytes(master_sk_to_wallet_sk(MASTER_KEY, index).get_g1())
|
|
)
|