repo stringlengths 7 90 | file_url stringlengths 81 315 | file_path stringlengths 4 228 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:38:15 2026-01-05 02:33:18 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/puzzles/singleton_top_layer.py | flax/wallet/puzzles/singleton_top_layer.py | from typing import Iterator, List, Tuple, Optional
from flax.types.blockchain_format.coin import Coin
from flax.types.blockchain_format.program import Program
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.types.condition_opcodes import ConditionOpcode
from flax.types.coin_spend import CoinSpen... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/puzzles/p2_delegated_puzzle_or_hidden_puzzle.py | flax/wallet/puzzles/p2_delegated_puzzle_or_hidden_puzzle.py | """
Pay to delegated puzzle or hidden puzzle
In this puzzle program, the solution must choose either a hidden puzzle or a
delegated puzzle on a given public key.
The given public key is morphed by adding an offset from the hash of the hidden puzzle
and itself, giving a new so-called "synthetic" public key which has t... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/puzzles/cat_loader.py | flax/wallet/puzzles/cat_loader.py | from __future__ import annotations
from flax.wallet.puzzles.load_clvm import load_clvm_maybe_recompile
CAT_MOD = load_clvm_maybe_recompile("cat_v2.clvm", package_or_requirement=__name__)
LOCK_INNER_PUZZLE = load_clvm_maybe_recompile("lock.inner.puzzle.clvm", package_or_requirement=__name__)
CAT_MOD_HASH = CAT_MOD.ge... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/puzzles/load_clvm.py | flax/wallet/puzzles/load_clvm.py | import importlib
import inspect
import os
import sys
import tempfile
import pathlib
from typing import List
import pkg_resources
from flax.types.blockchain_format.program import Program, SerializedProgram
from flax.util.lock import Lockfile
from clvm_tools_rs import compile_clvm as compile_clvm_rust
compile_clvm_py... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/puzzles/tails.py | flax/wallet/puzzles/tails.py | from typing import Tuple, Dict, List, Optional, Any
from flax.types.blockchain_format.program import Program
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.types.spend_bundle import SpendBundle
from flax.util.ints import uint64
from flax.util.byte_types import hexstr_to_bytes
from flax.wallet.c... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/puzzles/p2_puzzle_hash.py | flax/wallet/puzzles/p2_puzzle_hash.py | """
Pay to puzzle hash
In this puzzle program, the solution must be a reveal of the puzzle with the given
hash along with its solution.
"""
from __future__ import annotations
from flax.types.blockchain_format.program import Program
from flax.types.blockchain_format.sized_bytes import bytes32
from .load_clvm import ... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/puzzles/rom_bootstrap_generator.py | flax/wallet/puzzles/rom_bootstrap_generator.py | from __future__ import annotations
from flax.types.blockchain_format.program import SerializedProgram
from .load_clvm import load_serialized_clvm_maybe_recompile
MOD = load_serialized_clvm_maybe_recompile("rom_bootstrap_generator.clvm")
def get_generator() -> SerializedProgram:
return MOD
| python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/puzzles/singleton_top_layer_v1_1.py | flax/wallet/puzzles/singleton_top_layer_v1_1.py | from __future__ import annotations
from typing import Iterator, List, Optional, Tuple
from flax.types.blockchain_format.coin import Coin
from flax.types.blockchain_format.program import Program
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.types.coin_spend import CoinSpend
from flax.types.con... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/puzzles/__init__.py | flax/wallet/puzzles/__init__.py | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false | |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/puzzles/puzzle_utils.py | flax/wallet/puzzles/puzzle_utils.py | from typing import Optional, List
from flax.types.condition_opcodes import ConditionOpcode
def make_create_coin_condition(puzzle_hash, amount, memos: Optional[List[bytes]]) -> List:
if memos is not None:
return [ConditionOpcode.CREATE_COIN, puzzle_hash, amount, memos]
return [ConditionOpcode.CREATE_C... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/puzzles/p2_delegated_puzzle.py | flax/wallet/puzzles/p2_delegated_puzzle.py | """
Pay to delegated puzzle
In this puzzle program, the solution must be a signed delegated puzzle, along with
its (unsigned) solution. The delegated puzzle is executed, passing in the solution.
This obviously could be done recursively, arbitrarily deep (as long as the maximum
cost is not exceeded).
If you want to sp... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/puzzles/p2_m_of_n_delegate_direct.py | flax/wallet/puzzles/p2_m_of_n_delegate_direct.py | """
Pay to m of n direct
This puzzle program is like p2_delegated_puzzle except instead of one public key,
it includes N public keys, any M of which needs to sign the delegated puzzle.
"""
from __future__ import annotations
from flax.types.blockchain_format.program import Program
from .load_clvm import load_clvm_ma... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/puzzles/p2_conditions.py | flax/wallet/puzzles/p2_conditions.py | """
Pay to conditions
In this puzzle program, the solution is ignored. The reveal of the puzzle
returns a fixed list of conditions. This roughly corresponds to OP_SECURETHEBAG
in bitcoin.
This is a pretty useless most of the time. But some (most?) solutions
require a delegated puzzle program, so in those cases, this ... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/puzzles/decompress_block_spends.py | flax/wallet/puzzles/decompress_block_spends.py | from __future__ import annotations
from flax.wallet.puzzles.load_clvm import load_serialized_clvm_maybe_recompile
DECOMPRESS_BLOCK_SPENDS = load_serialized_clvm_maybe_recompile(
"decompress_block_spends.clvm", package_or_requirement=__name__
)
| python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/puzzles/prefarm/spend_prefarm.py | flax/wallet/puzzles/prefarm/spend_prefarm.py | import asyncio
from blspy import G2Element
from clvm_tools import binutils
from flax.consensus.block_rewards import calculate_base_farmer_reward, calculate_pool_reward
from flax.rpc.full_node_rpc_client import FullNodeRpcClient
from flax.types.blockchain_format.program import Program
from flax.types.coin_spend import... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/puzzles/prefarm/make_prefarm_ph.py | flax/wallet/puzzles/prefarm/make_prefarm_ph.py | from clvm.casts import int_from_bytes
from clvm_tools import binutils
from flax.consensus.block_rewards import calculate_base_farmer_reward, calculate_pool_reward
from flax.types.blockchain_format.program import Program
from flax.types.condition_opcodes import ConditionOpcode
from flax.util.bech32m import decode_puzzl... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/puzzles/prefarm/__init__.py | flax/wallet/puzzles/prefarm/__init__.py | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false | |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/nft_wallet/nft_puzzles.py | flax/wallet/nft_wallet/nft_puzzles.py | from __future__ import annotations
import logging
from typing import Any, Dict, List, Optional, Tuple
from clvm.casts import int_from_bytes
from clvm_tools.binutils import disassemble
from flax.types.blockchain_format.program import Program, SerializedProgram
from flax.types.blockchain_format.sized_bytes import byte... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/nft_wallet/metadata_outer_puzzle.py | flax/wallet/nft_wallet/metadata_outer_puzzle.py | from __future__ import annotations
from dataclasses import dataclass
from typing import Callable, List, Optional, Tuple
from clvm_tools.binutils import disassemble
from flax.types.blockchain_format.coin import Coin
from flax.types.blockchain_format.program import Program
from flax.types.blockchain_format.sized_bytes... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/nft_wallet/ownership_outer_puzzle.py | flax/wallet/nft_wallet/ownership_outer_puzzle.py | from __future__ import annotations
from dataclasses import dataclass
from typing import Callable, List, Optional, Tuple, Union
from clvm_tools.binutils import disassemble
from flax.types.blockchain_format.program import Program
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.wallet.puzzle_driv... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/nft_wallet/nft_info.py | flax/wallet/nft_wallet/nft_info.py | from __future__ import annotations
from dataclasses import dataclass
from typing import List, Optional
from flax.types.blockchain_format.coin import Coin
from flax.types.blockchain_format.program import Program
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.util.ints import uint16, uint32, uin... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/nft_wallet/transfer_program_puzzle.py | flax/wallet/nft_wallet/transfer_program_puzzle.py | from __future__ import annotations
from dataclasses import dataclass
from typing import Callable, List, Optional, Tuple
from flax.types.blockchain_format.program import Program
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.util.ints import uint16
from flax.wallet.puzzle_drivers import PuzzleI... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/nft_wallet/__init__.py | flax/wallet/nft_wallet/__init__.py | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false | |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/nft_wallet/nft_wallet.py | flax/wallet/nft_wallet/nft_wallet.py | from __future__ import annotations
import dataclasses
import json
import logging
import math
import time
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Tuple, Type, TypeVar, Union
from blspy import AugSchemeMPL, G1Element, G2Element
from clvm.casts import int_from_bytes, int_to_bytes
from flax.pro... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | true |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/nft_wallet/uncurry_nft.py | flax/wallet/nft_wallet/uncurry_nft.py | from __future__ import annotations
import logging
from dataclasses import dataclass
from typing import Optional, Type, TypeVar
from flax.types.blockchain_format.program import Program
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.util.ints import uint16
from flax.wallet.puzzles.load_clvm impo... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/nft_wallet/singleton_outer_puzzle.py | flax/wallet/nft_wallet/singleton_outer_puzzle.py | from __future__ import annotations
from dataclasses import dataclass
from typing import Callable, Optional
from flax.types.blockchain_format.coin import Coin
from flax.types.blockchain_format.program import Program
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.types.coin_spend import CoinSpen... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/db_wallet/db_wallet_puzzles.py | flax/wallet/db_wallet/db_wallet_puzzles.py | from __future__ import annotations
from typing import Iterator, List, Tuple, Union
from flax.types.blockchain_format.program import Program
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.types.condition_opcodes import ConditionOpcode
from flax.util.ints import uint64
from flax.wallet.nft_walle... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/db_wallet/__init__.py | flax/wallet/db_wallet/__init__.py | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false | |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/cat_wallet/cat_constants.py | flax/wallet/cat_wallet/cat_constants.py | from __future__ import annotations
DEFAULT_CATS = {
}
| python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/cat_wallet/cat_wallet.py | flax/wallet/cat_wallet/cat_wallet.py | from __future__ import annotations
import dataclasses
import logging
import time
import traceback
from secrets import token_bytes
from typing import Any, Dict, List, Optional, Set, Tuple, TYPE_CHECKING
from blspy import AugSchemeMPL, G2Element, G1Element
from flax.consensus.cost_calculator import NPCResult
from flax... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | true |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/cat_wallet/lineage_store.py | flax/wallet/cat_wallet/lineage_store.py | from __future__ import annotations
import logging
from typing import Dict, Optional
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.util.db_wrapper import DBWrapper2
from flax.wallet.lineage_proof import LineageProof
log = logging.getLogger(__name__)
class CATLineageStore:
"""
Wallet... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/cat_wallet/cat_outer_puzzle.py | flax/wallet/cat_wallet/cat_outer_puzzle.py | from __future__ import annotations
from dataclasses import dataclass
from typing import Callable, List, Optional
from flax.types.blockchain_format.coin import Coin
from flax.types.blockchain_format.program import Program
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.types.coin_spend import Co... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/cat_wallet/__init__.py | flax/wallet/cat_wallet/__init__.py | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false | |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/cat_wallet/cat_utils.py | flax/wallet/cat_wallet/cat_utils.py | import dataclasses
from typing import List, Iterator, Optional
from blspy import G2Element
from flax.types.blockchain_format.coin import Coin, coin_as_list
from flax.types.blockchain_format.program import Program, INFINITE_COST
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.types.condition_opc... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/cat_wallet/cat_info.py | flax/wallet/cat_wallet/cat_info.py | from dataclasses import dataclass
from typing import List, Optional, Tuple
from flax.types.blockchain_format.program import Program
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.wallet.lineage_proof import LineageProof
from flax.util.streamable import Streamable, streamable
@streamable
@data... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/did_wallet/__init__.py | flax/wallet/did_wallet/__init__.py | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false | |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/did_wallet/did_wallet.py | flax/wallet/did_wallet/did_wallet.py | import dataclasses
import logging
import time
import json
import re
from typing import Dict, Optional, List, Any, Set, Tuple, TYPE_CHECKING
from blspy import AugSchemeMPL, G1Element, G2Element
from secrets import token_bytes
from flax.protocols import wallet_protocol
from flax.protocols.wallet_protocol import CoinSta... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | true |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/did_wallet/did_wallet_puzzles.py | flax/wallet/did_wallet/did_wallet_puzzles.py | from flax.types.blockchain_format.sized_bytes import bytes32
from flax.types.blockchain_format.program import Program
from typing import List, Optional, Tuple, Iterator, Dict
from blspy import G1Element
from flax.types.blockchain_format.coin import Coin
from flax.types.coin_spend import CoinSpend
from flax.util.ints im... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/wallet/did_wallet/did_info.py | flax/wallet/did_wallet/did_info.py | from dataclasses import dataclass
from typing import List, Optional, Tuple
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.util.ints import uint64
from flax.util.streamable import streamable, Streamable
from flax.wallet.lineage_proof import LineageProof
from flax.types.blockchain_format.program ... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/data_layer/data_store.py | flax/data_layer/data_store.py | from __future__ import annotations
import logging
from collections import defaultdict
from contextlib import asynccontextmanager
from dataclasses import dataclass, replace
from pathlib import Path
from typing import Any, AsyncIterator, Awaitable, BinaryIO, Callable, Dict, List, Optional, Set, Tuple, Union
import aios... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | true |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/data_layer/data_layer_api.py | flax/data_layer/data_layer_api.py | from __future__ import annotations
import logging
from flax.data_layer.data_layer import DataLayer
from flax.server.server import FlaxServer
class DataLayerAPI:
data_layer: DataLayer
def __init__(self, data_layer: DataLayer) -> None:
self.data_layer = data_layer
# def _set_state_changed_callba... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/data_layer/dl_wallet_store.py | flax/data_layer/dl_wallet_store.py | from __future__ import annotations
import dataclasses
from typing import List, Optional, Type, TypeVar, Union
from aiosqlite import Row
from flax.data_layer.data_layer_wallet import Mirror, SingletonRecord
from flax.types.blockchain_format.coin import Coin
from flax.types.blockchain_format.sized_bytes import bytes32... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/data_layer/data_layer_errors.py | flax/data_layer/data_layer_errors.py | from __future__ import annotations
from typing import Iterable, List
from flax.types.blockchain_format.sized_bytes import bytes32
class IntegrityError(Exception):
pass
def build_message_with_hashes(message: str, bytes_objects: Iterable[bytes]) -> str:
return "\n".join([message, *[f" {b.hex()}" for b in... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/data_layer/download_data.py | flax/data_layer/download_data.py | from __future__ import annotations
import asyncio
import logging
import os
import time
from pathlib import Path
from typing import List, Optional
import aiohttp
from typing_extensions import Literal
from flax.data_layer.data_layer_util import NodeType, Root, SerializedNode, ServerInfo, Status
from flax.data_layer.da... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/data_layer/data_layer_server.py | flax/data_layer/data_layer_server.py | from __future__ import annotations
import asyncio
import functools
import logging
import signal
import sys
from dataclasses import dataclass, field
from pathlib import Path
from typing import Any, Dict, Optional
import click
from aiohttp import web
from flax.data_layer.download_data import is_filename_valid
from fla... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/data_layer/data_layer_wallet.py | flax/data_layer/data_layer_wallet.py | from __future__ import annotations
import dataclasses
import logging
import time
from operator import attrgetter
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Tuple, Type, TypeVar
from blspy import G1Element, G2Element
from clvm.EvalError import EvalError
from flax.consensus.block_record import B... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | true |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/data_layer/__init__.py | flax/data_layer/__init__.py | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false | |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/data_layer/data_layer_util.py | flax/data_layer/data_layer_util.py | from __future__ import annotations
import dataclasses
from dataclasses import dataclass, field
from enum import IntEnum
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Type, Union
# TODO: remove or formalize this
import aiosqlite as aiosqlite
from typing_extensions import final
from flax.types.bl... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/data_layer/data_layer.py | flax/data_layer/data_layer.py | from __future__ import annotations
import asyncio
import logging
import random
import time
import traceback
from pathlib import Path
from typing import Any, Awaitable, Callable, Dict, List, Optional, Set, Tuple, Union
import aiohttp
from flax.data_layer.data_layer_errors import KeyNotFoundError
from flax.data_layer.... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | true |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/data_layer/util/benchmark.py | flax/data_layer/util/benchmark.py | from __future__ import annotations
import asyncio
import os
import sys
import tempfile
import time
from pathlib import Path
from typing import Dict, Optional
from flax.data_layer.data_layer_util import Side, TerminalNode, leaf_hash
from flax.data_layer.data_store import DataStore
from flax.types.blockchain_format.siz... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/data_layer/util/__init__.py | flax/data_layer/util/__init__.py | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false | |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/clvm/spend_sim.py | flax/clvm/spend_sim.py | import random
from pathlib import Path
from dataclasses import dataclass
from typing import Optional, List, Dict, Tuple, Any, Type, TypeVar
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.types.blockchain_format.coin import Coin
from flax.types.mempool_item import MempoolItem
from flax.util.int... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/clvm/singleton.py | flax/clvm/singleton.py | from __future__ import annotations
from flax.wallet.puzzles.load_clvm import load_clvm_maybe_recompile
P2_SINGLETON_MOD = load_clvm_maybe_recompile("p2_singleton.clvm")
SINGLETON_TOP_LAYER_MOD = load_clvm_maybe_recompile("singleton_top_layer.clvm")
SINGLETON_LAUNCHER = load_clvm_maybe_recompile("singleton_launcher.cl... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/clvm/__init__.py | flax/clvm/__init__.py | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false | |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/rpc/crawler_rpc_api.py | flax/rpc/crawler_rpc_api.py | from __future__ import annotations
import ipaddress
from typing import Any, Dict, List, Optional
from flax.rpc.rpc_server import Endpoint, EndpointResult
from flax.seeder.crawler import Crawler
from flax.util.ws_message import WsRpcMessage, create_payload_dict
class CrawlerRpcApi:
def __init__(self, crawler: Cr... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/rpc/data_layer_rpc_api.py | flax/rpc/data_layer_rpc_api.py | from __future__ import annotations
import dataclasses
from pathlib import Path
from typing import TYPE_CHECKING, Any, Dict, List, Optional
from flax.data_layer.data_layer_errors import OfferIntegrityError
from flax.data_layer.data_layer_util import (
CancelOfferRequest,
CancelOfferResponse,
MakeOfferReque... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/rpc/util.py | flax/rpc/util.py | from __future__ import annotations
import logging
import traceback
from typing import Callable
import aiohttp
from flax.util.json_util import obj_to_response
log = logging.getLogger(__name__)
def wrap_http_handler(f) -> Callable:
async def inner(request) -> aiohttp.web.Response:
request_data = await r... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/rpc/full_node_rpc_client.py | flax/rpc/full_node_rpc_client.py | from typing import Dict, List, Optional, Tuple, Any
from flax.consensus.block_record import BlockRecord
from flax.full_node.signage_point import SignagePoint
from flax.rpc.rpc_client import RpcClient
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.types.coin_record import CoinRecord
from flax.ty... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/rpc/farmer_rpc_client.py | flax/rpc/farmer_rpc_client.py | from __future__ import annotations
from typing import Any, Dict, List, Optional
from flax.rpc.farmer_rpc_api import PlotInfoRequestData, PlotPathRequestData
from flax.rpc.rpc_client import RpcClient
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.util.misc import dataclass_to_json_dict
class ... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/rpc/harvester_rpc_api.py | flax/rpc/harvester_rpc_api.py | from __future__ import annotations
from typing import Any, Dict, List
from flax.harvester.harvester import Harvester
from flax.rpc.rpc_server import Endpoint, EndpointResult
from flax.util.ws_message import WsRpcMessage, create_payload_dict
class HarvesterRpcApi:
def __init__(self, harvester: Harvester):
... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/rpc/full_node_rpc_api.py | flax/rpc/full_node_rpc_api.py | from __future__ import annotations
from datetime import datetime, timezone
from typing import Any, Dict, List, Optional
from clvm.casts import int_from_bytes
from flax.consensus.block_record import BlockRecord
from flax.consensus.cost_calculator import NPCResult
from flax.consensus.pos_quality import UI_ACTUAL_SPACE... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | true |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/rpc/wallet_rpc_client.py | flax/rpc/wallet_rpc_client.py | from typing import Dict, List, Optional, Any, Tuple, Union
from flax.data_layer.data_layer_wallet import Mirror, SingletonRecord
from flax.pools.pool_wallet_info import PoolWalletInfo
from flax.rpc.rpc_client import RpcClient
from flax.types.announcement import Announcement
from flax.types.blockchain_format.coin impor... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | true |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/rpc/timelord_rpc_api.py | flax/rpc/timelord_rpc_api.py | from __future__ import annotations
from typing import Any, Dict, List, Optional
from flax.rpc.rpc_server import Endpoint
from flax.timelord.timelord import Timelord
from flax.util.ws_message import WsRpcMessage, create_payload_dict
class TimelordRpcApi:
def __init__(self, timelord: Timelord):
self.servi... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/rpc/wallet_rpc_api.py | flax/rpc/wallet_rpc_api.py | import asyncio
import dataclasses
import json
import logging
from pathlib import Path
from typing import Any, Dict, List, Optional, Set, Tuple, Union
from blspy import G1Element, G2Element, PrivateKey
from flax.consensus.block_rewards import calculate_base_farmer_reward
from flax.data_layer.data_layer_wallet import D... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | true |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/rpc/data_layer_rpc_util.py | flax/rpc/data_layer_rpc_util.py | from __future__ import annotations
from typing import Any, Dict, Type, TypeVar
from typing_extensions import Protocol
_T = TypeVar("_T")
# If accepted for general use then this should be moved to a common location
# and probably implemented by the framework instead of manual decoration.
class MarshallableProtoco... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/rpc/farmer_rpc_api.py | flax/rpc/farmer_rpc_api.py | from __future__ import annotations
import dataclasses
import operator
from typing import Any, Callable, Dict, List, Optional
from typing_extensions import Protocol
from flax.farmer.farmer import Farmer
from flax.plot_sync.receiver import Receiver
from flax.protocols.harvester_protocol import Plot
from flax.rpc.rpc_s... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/rpc/__init__.py | flax/rpc/__init__.py | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false | |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/rpc/rpc_client.py | flax/rpc/rpc_client.py | import asyncio
from ssl import SSLContext
from typing import Dict, List, Optional, Any
import aiohttp
from flax.server.server import NodeType, ssl_context_for_client
from flax.server.ssl_context import private_ssl_ca_paths
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.util.byte_types import h... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/rpc/data_layer_rpc_client.py | flax/rpc/data_layer_rpc_client.py | from __future__ import annotations
from pathlib import Path
from typing import Any, Dict, List, Optional
from flax.rpc.rpc_client import RpcClient
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.util.ints import uint64
class DataLayerRpcClient(RpcClient):
async def create_data_store(self,... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/rpc/harvester_rpc_client.py | flax/rpc/harvester_rpc_client.py | from __future__ import annotations
from typing import Any, Dict, List
from flax.rpc.rpc_client import RpcClient
class HarvesterRpcClient(RpcClient):
"""
Client to Flax RPC, connects to a local harvester. Uses HTTP/JSON, and converts back from
JSON into native python objects before returning. All api cal... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/rpc/rpc_server.py | flax/rpc/rpc_server.py | from __future__ import annotations
import asyncio
import json
import logging
import traceback
from dataclasses import dataclass
from pathlib import Path
from ssl import SSLContext
from typing import Any, Awaitable, Callable, Dict, List, Optional
from aiohttp import ClientConnectorError, ClientSession, ClientWebSocket... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/simulator_constants.py | flax/simulator/simulator_constants.py | if __name__ == "__main__":
from flax.util.default_root import DEFAULT_ROOT_PATH
from flax.simulator.block_tools import create_block_tools, test_constants
from tests.util.keyring import TempKeyring
with TempKeyring() as keychain:
# TODO: mariano: fix this with new consensus
bt = create_b... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/socket.py | flax/simulator/socket.py | from __future__ import annotations
import secrets
import socket
from typing import Set
recent_ports: Set[int] = set()
def find_available_listen_port(name: str = "free") -> int:
global recent_ports
while True:
port = secrets.randbelow(0xFFFF - 1024) + 1024
if port in recent_ports:
... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/wallet_tools.py | flax/simulator/wallet_tools.py | from __future__ import annotations
from typing import Any, Dict, List, Optional, Tuple
from blspy import AugSchemeMPL, G1Element, G2Element, PrivateKey
from clvm.casts import int_from_bytes, int_to_bytes
from flax.consensus.constants import ConsensusConstants
from flax.types.announcement import Announcement
from fla... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/ssl_certs_2.py | flax/simulator/ssl_certs_2.py | from __future__ import annotations
from typing import Dict, Tuple
SSL_TEST_PRIVATE_CA_CRT = b"""-----BEGIN CERTIFICATE-----
MIIDKTCCAhGgAwIBAgIUbFhRlgpIM3M+ZYuTigQ1Vbmi6P4wDQYJKoZIhvcNAQEL
BQAwRDENMAsGA1UECgwEQ2hpYTEQMA4GA1UEAwwHQ2hpYSBDQTEhMB8GA1UECwwY
T3JnYW5pYyBGYXJtaW5nIERpdmlzaW9uMB4XDTIyMDMyMzE3MjkyMloXDTMyMDMy... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | true |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/ssl_certs_4.py | flax/simulator/ssl_certs_4.py | from __future__ import annotations
from typing import Dict, Tuple
SSL_TEST_PRIVATE_CA_CRT = b"""-----BEGIN CERTIFICATE-----
MIIDKTCCAhGgAwIBAgIUS+xy2kGNomsBGfU0DEELWiHoSa4wDQYJKoZIhvcNAQEL
BQAwRDENMAsGA1UECgwEQ2hpYTEQMA4GA1UEAwwHQ2hpYSBDQTEhMB8GA1UECwwY
T3JnYW5pYyBGYXJtaW5nIERpdmlzaW9uMB4XDTIyMDMyMzE3MjkyNFoXDTMyMDMy... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | true |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/simulator_full_node_rpc_api.py | flax/simulator/simulator_full_node_rpc_api.py | from __future__ import annotations
from secrets import token_bytes
from typing import Dict, List
from flax.rpc.full_node_rpc_api import FullNodeRpcApi
from flax.rpc.rpc_server import Endpoint, EndpointResult
from flax.simulator.simulator_protocol import FarmNewBlockProtocol, GetAllCoinsProtocol, ReorgProtocol
from fl... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/ssl_certs_7.py | flax/simulator/ssl_certs_7.py | from __future__ import annotations
from typing import Dict, Tuple
SSL_TEST_PRIVATE_CA_CRT = b"""-----BEGIN CERTIFICATE-----
MIIDKTCCAhGgAwIBAgIUHoeobLQu3yMmraIDXDF+F6M4j9IwDQYJKoZIhvcNAQEL
BQAwRDENMAsGA1UECgwEQ2hpYTEQMA4GA1UEAwwHQ2hpYSBDQTEhMB8GA1UECwwY
T3JnYW5pYyBGYXJtaW5nIERpdmlzaW9uMB4XDTIyMDMyMzE3MjkyOVoXDTMyMDMy... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | true |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/ssl_certs_3.py | flax/simulator/ssl_certs_3.py | from __future__ import annotations
from typing import Dict, Tuple
SSL_TEST_PRIVATE_CA_CRT = b"""-----BEGIN CERTIFICATE-----
MIIDKTCCAhGgAwIBAgIUeLxDdxR+RmiMMvvCxRfsQJAL7vUwDQYJKoZIhvcNAQEL
BQAwRDENMAsGA1UECgwEQ2hpYTEQMA4GA1UEAwwHQ2hpYSBDQTEhMB8GA1UECwwY
T3JnYW5pYyBGYXJtaW5nIERpdmlzaW9uMB4XDTIyMDMyMzE3MjkyM1oXDTMyMDMy... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | true |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/ssl_certs_8.py | flax/simulator/ssl_certs_8.py | from __future__ import annotations
from typing import Dict, Tuple
SSL_TEST_PRIVATE_CA_CRT = b"""-----BEGIN CERTIFICATE-----
MIIDKTCCAhGgAwIBAgIUaAgNa9r45P7lGSz9yjEAMmSYuA4wDQYJKoZIhvcNAQEL
BQAwRDENMAsGA1UECgwEQ2hpYTEQMA4GA1UEAwwHQ2hpYSBDQTEhMB8GA1UECwwY
T3JnYW5pYyBGYXJtaW5nIERpdmlzaW9uMB4XDTIyMDczMTAyMDgwOFoXDTMyMDcy... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | true |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/ssl_certs_1.py | flax/simulator/ssl_certs_1.py | from __future__ import annotations
from typing import Dict, Tuple
SSL_TEST_PRIVATE_CA_CRT = b"""-----BEGIN CERTIFICATE-----
MIIDKTCCAhGgAwIBAgIUZnoqyaLGQMl08azdwpafGGfEGR0wDQYJKoZIhvcNAQEL
BQAwRDENMAsGA1UECgwEQ2hpYTEQMA4GA1UEAwwHQ2hpYSBDQTEhMB8GA1UECwwY
T3JnYW5pYyBGYXJtaW5nIERpdmlzaW9uMB4XDTIyMDMyMzE3MjkyMFoXDTMyMDMy... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | true |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/simulator_full_node_rpc_client.py | flax/simulator/simulator_full_node_rpc_client.py | from __future__ import annotations
from typing import Dict, List, Tuple
from flax.rpc.full_node_rpc_client import FullNodeRpcClient
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.types.coin_record import CoinRecord
from flax.types.full_block import FullBlock
from flax.util.bech32m import encod... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/full_node_simulator.py | flax/simulator/full_node_simulator.py | from __future__ import annotations
import asyncio
import itertools
import time
from typing import Any, Collection, Dict, Iterator, List, Optional, Set, Tuple
from flax.consensus.block_record import BlockRecord
from flax.consensus.block_rewards import calculate_base_farmer_reward, calculate_pool_reward
from flax.conse... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/ssl_certs_9.py | flax/simulator/ssl_certs_9.py | from __future__ import annotations
from typing import Dict, Tuple
SSL_TEST_PRIVATE_CA_CRT = b"""-----BEGIN CERTIFICATE-----
MIIDKTCCAhGgAwIBAgIUX9kvHEjir5fniTg3GRQ8wO7zOvAwDQYJKoZIhvcNAQEL
BQAwRDENMAsGA1UECgwEQ2hpYTEQMA4GA1UEAwwHQ2hpYSBDQTEhMB8GA1UECwwY
T3JnYW5pYyBGYXJtaW5nIERpdmlzaW9uMB4XDTIyMDczMTAyMDgxNVoXDTMyMDcy... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | true |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/simulator_test_tools.py | flax/simulator/simulator_test_tools.py | from __future__ import annotations
import asyncio
import sys
import tempfile
from pathlib import Path
from typing import Any, AsyncGenerator, Dict, Optional, Tuple
from blspy import PrivateKey
from flax.cmds.init_funcs import create_all_ssl
from flax.consensus.coinbase import create_puzzlehash_for_pk
from flax.daemo... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/time_out_assert.py | flax/simulator/time_out_assert.py | from __future__ import annotations
import asyncio
import logging
import time
from typing import Callable
from flax.protocols.protocol_message_types import ProtocolMessageTypes
log = logging.getLogger(__name__)
async def time_out_assert_custom_interval(timeout: int, interval, function, value=True, *args, **kwargs):... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/ssl_certs.py | flax/simulator/ssl_certs.py | from __future__ import annotations
import itertools
from dataclasses import dataclass
from typing import Dict, Generic, List, Tuple, TypeVar
from flax.simulator.ssl_certs_1 import SSL_TEST_NODE_CERTS_AND_KEYS_1, SSL_TEST_PRIVATE_CA_CERT_AND_KEY_1
from flax.simulator.ssl_certs_2 import SSL_TEST_NODE_CERTS_AND_KEYS_2, ... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/ssl_certs_6.py | flax/simulator/ssl_certs_6.py | from __future__ import annotations
from typing import Dict, Tuple
SSL_TEST_PRIVATE_CA_CRT = b"""-----BEGIN CERTIFICATE-----
MIIDKTCCAhGgAwIBAgIUD5VUdvJQlRhGJg2WJ+/K8I2sYZcwDQYJKoZIhvcNAQEL
BQAwRDENMAsGA1UECgwEQ2hpYTEQMA4GA1UEAwwHQ2hpYSBDQTEhMB8GA1UECwwY
T3JnYW5pYyBGYXJtaW5nIERpdmlzaW9uMB4XDTIyMDMyMzE3MjkyN1oXDTMyMDMy... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | true |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/__init__.py | flax/simulator/__init__.py | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false | |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/simulator_protocol.py | flax/simulator/simulator_protocol.py | from __future__ import annotations
from dataclasses import dataclass
from typing import Optional
from flax.types.blockchain_format.sized_bytes import bytes32
from flax.util.ints import uint32
from flax.util.streamable import Streamable, streamable
@streamable
@dataclass(frozen=True)
class FarmNewBlockProtocol(Strea... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/ssl_certs_10.py | flax/simulator/ssl_certs_10.py | from __future__ import annotations
from typing import Dict, Tuple
SSL_TEST_PRIVATE_CA_CRT = b"""-----BEGIN CERTIFICATE-----
MIIDKTCCAhGgAwIBAgIUWzGLmUq3RgS/u2oYomRSyKsXWwcwDQYJKoZIhvcNAQEL
BQAwRDENMAsGA1UECgwEQ2hpYTEQMA4GA1UEAwwHQ2hpYSBDQTEhMB8GA1UECwwY
T3JnYW5pYyBGYXJtaW5nIERpdmlzaW9uMB4XDTIyMDczMTAyMDgyM1oXDTMyMDcy... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | true |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/block_tools.py | flax/simulator/block_tools.py | from __future__ import annotations
import asyncio
import copy
import logging
import math
import os
import random
import shutil
import ssl
import sys
import tempfile
import time
from argparse import Namespace
from dataclasses import replace
from pathlib import Path
from typing import Any, Callable, Dict, List, Optional... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | true |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/ssl_certs_5.py | flax/simulator/ssl_certs_5.py | from __future__ import annotations
from typing import Dict, Tuple
SSL_TEST_PRIVATE_CA_CRT = b"""-----BEGIN CERTIFICATE-----
MIIDKTCCAhGgAwIBAgIUXU/nGxb+rZck2qIMztmDWKDZCBcwDQYJKoZIhvcNAQEL
BQAwRDENMAsGA1UECgwEQ2hpYTEQMA4GA1UEAwwHQ2hpYSBDQTEhMB8GA1UECwwY
T3JnYW5pYyBGYXJtaW5nIERpdmlzaW9uMB4XDTIyMDMyMzE3MjkyNloXDTMyMDMy... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | true |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/simulator/start_simulator.py | flax/simulator/start_simulator.py | import logging
import sys
from multiprocessing import freeze_support
from pathlib import Path
from typing import Optional, Dict, List, Tuple
from flax.full_node.full_node import FullNode
from flax.server.outbound_message import NodeType
from flax.server.start_service import Service, async_run
from flax.simulator.simul... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/plotters/bladebit.py | flax/plotters/bladebit.py | import asyncio
import json
import traceback
import os
import sys
import logging
from pathlib import Path
from typing import Any, Dict, Optional, Tuple
from flax.plotting.create_plots import resolve_plot_keys
from flax.plotters.plotters_util import (
run_plotter,
run_command,
reset_loop_policy_for_windows,
... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/plotters/chiapos.py | flax/plotters/chiapos.py | """
NOTE: This contains duplicate code from `flax.cmds.plots`.
After `flax plots create` becomes obsolete, consider removing it from there.
"""
import asyncio
import logging
import pkg_resources
from flax.plotting.create_plots import create_plots, resolve_plot_keys
from pathlib import Path
from typing import Any, Dict,... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/plotters/plotters_util.py | flax/plotters/plotters_util.py | from __future__ import annotations
import asyncio
import contextlib
import json
import os
import signal
import subprocess
import sys
from datetime import datetime
from pathlib import Path
from typing import Iterator, Optional, TextIO
from flax.cmds.init_funcs import flax_full_version_str
from flax.util.config import ... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/plotters/plotters.py | flax/plotters/plotters.py | import argparse
import binascii
import os
from enum import Enum
from flax.plotters.bladebit import get_bladebit_install_info, plot_bladebit
from flax.plotters.chiapos import get_chiapos_install_info, plot_flax
from flax.plotters.madmax import get_madmax_install_info, plot_madmax
from pathlib import Path
from typing imp... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/plotters/__init__.py | flax/plotters/__init__.py | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false | |
Flax-Network/flax-blockchain | https://github.com/Flax-Network/flax-blockchain/blob/bb8715f3155bb8011a04cc8c05b3fa8133e4c64b/flax/plotters/madmax.py | flax/plotters/madmax.py | import asyncio
import traceback
import os
import logging
import sys
from pathlib import Path
from typing import Any, Dict, Optional
from flax.plotting.create_plots import resolve_plot_keys
from flax.plotters.plotters_util import (
run_plotter,
run_command,
reset_loop_policy_for_windows,
get_venv_bin,
)... | python | Apache-2.0 | bb8715f3155bb8011a04cc8c05b3fa8133e4c64b | 2026-01-05T07:13:52.951017Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.