Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr Str Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If CompareNotEq NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Str NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For TupleStore NameStore NameStore NameStore NameStore NameLoad body Assign NameStore Dict If CompareNotEq NameLoad Num body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults NameLoad Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body FunctionDef arguments args defaults body Assign NameStore NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Num While Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd BinOpAdd NameLoad Str Call NameLoad NameLoad body AugAssignAdd NameStore Num Assign NameStore BinOpAdd BinOpAdd NameLoad Str Call NameLoad NameLoad Return NameLoad decorator_list If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Num For NameStore NameLoad body If CompareNotIn NameLoad Str body Raise Call NameLoad Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str If CompareNotEq NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad If CompareNotEq NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad If CompareNotEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Num body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareNotEq Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Num For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str ListLoad body AugAssignAdd NameStore Call NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr TupleLoad Str Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str ListLoad body AugAssignAdd NameStore Call NameLoad SubscriptLoad NameLoad Index Str Return NameLoad decorator_list decorator_list
N/A N/A binascii N/A logging lbrynet.core.cryptoutils get_lbry_hash_obj lbrynet.cryptstream.CryptBlob CryptBlobInfo twisted.internet defer threads lbrynet.core.Error DuplicateStreamHashError InvalidStreamDescriptorError lbrynet.core.StreamDescriptor PlainStreamDescriptorWriter BlobStreamDescriptorWriter N/A os N/A log N/A N/A logging getLogger __name__ N/A LBRYFileStreamType lbryfile save_sd_info N/A N/A stream_info_manager sd_info ignore_duplicate N/A False N/A N/A N/A N/A log debug Saving info for %s N/A str N/A sd_info N/A stream_name N/A hex_stream_name N/A sd_info N/A stream_name N/A key N/A sd_info N/A key N/A stream_hash N/A sd_info N/A stream_hash N/A raw_blobs N/A sd_info N/A blobs N/A suggested_file_name N/A sd_info N/A suggested_file_name N/A crypt_blobs N/A N/A blob raw_blobs N/A N/A length N/A blob N/A length N/A N/A length 0 N/A N/A blob_hash N/A blob N/A blob_hash N/A N/A blob_hash None N/A blob_num N/A blob N/A blob_num N/A iv N/A blob N/A iv N/A N/A N/A crypt_blobs append N/A CryptBlobInfo blob_hash blob_num length iv N/A N/A N/A log debug Trying to save stream info for %s N/A str hex_stream_name N/A d N/A N/A stream_info_manager save_stream stream_hash hex_stream_name key suggested_file_name crypt_blobs check_if_duplicate N/A N/A err N/A N/A N/A N/A ignore_duplicate True N/A N/A N/A N/A err trap DuplicateStreamHashError N/A N/A N/A N/A d addErrback check_if_duplicate N/A N/A N/A d addCallback N/A N/A N/A _ N/A stream_hash N/A d N/A get_sd_info N/A N/A stream_info_manager stream_hash include_blobs N/A N/A N/A d N/A N/A stream_info_manager get_stream_info stream_hash format_info N/A N/A stream_info N/A N/A N/A fields N/A N/A N/A fields N/A stream_type LBRYFileStreamType N/A N/A fields N/A stream_name N/A stream_info N/A 1 N/A N/A fields N/A key N/A stream_info N/A 0 N/A N/A fields N/A suggested_file_name N/A stream_info N/A 2 N/A N/A fields N/A stream_hash stream_hash format_blobs N/A N/A blobs N/A N/A N/A formatted_blobs N/A N/A N/A blob_hash blob_num iv length blobs N/A N/A blob N/A N/A N/A length 0 N/A N/A N/A blob N/A blob_hash blob_hash N/A N/A blob N/A blob_num blob_num N/A N/A blob N/A iv iv N/A N/A blob N/A length length N/A N/A N/A formatted_blobs append blob N/A N/A fields N/A blobs formatted_blobs N/A fields N/A N/A N/A include_blobs True N/A N/A d N/A N/A stream_info_manager get_blobs_for_stream stream_hash N/A N/A d N/A N/A defer succeed N/A N/A N/A N/A d addCallback format_blobs N/A d N/A N/A N/A N/A d addCallback format_info N/A d N/A publish_sd_blob N/A N/A stream_info_manager blob_manager stream_hash N/A N/A N/A descriptor_writer N/A BlobStreamDescriptorWriter blob_manager N/A d N/A get_sd_info stream_info_manager stream_hash True N/A N/A N/A d addCallback N/A descriptor_writer create_descriptor add_sd_blob_to_stream N/A N/A sd_blob_hash N/A N/A N/A d N/A N/A stream_info_manager save_sd_blob_hash_to_stream stream_hash sd_blob_hash N/A N/A N/A d addCallback N/A N/A N/A _ N/A sd_blob_hash N/A d N/A N/A N/A N/A d addCallback add_sd_blob_to_stream N/A d N/A create_plain_sd N/A N/A stream_info_manager stream_hash file_name overwrite_existing N/A False N/A _get_file_name N/A N/A N/A N/A N/A actual_file_name file_name N/A N/A N/A N/A os path exists actual_file_name N/A N/A ext_num 1 N/A N/A N/A N/A os path exists N/A N/A actual_file_name _ N/A str ext_num N/A N/A ext_num 1 N/A actual_file_name N/A N/A actual_file_name _ N/A str ext_num N/A actual_file_name N/A N/A N/A overwrite_existing False N/A N/A d N/A N/A threads deferToThread N/A _get_file_name N/A N/A d N/A N/A defer succeed file_name do_create N/A N/A file_name N/A N/A N/A descriptor_writer N/A PlainStreamDescriptorWriter file_name N/A d N/A get_sd_info stream_info_manager stream_hash True N/A N/A N/A d addCallback N/A descriptor_writer create_descriptor N/A d N/A N/A N/A N/A d addCallback do_create N/A d N/A LBRYFileStreamDescriptorValidator N/A object N/A __init__ N/A N/A self raw_info N/A N/A N/A N/A self raw_info raw_info N/A validate N/A N/A self N/A N/A N/A N/A N/A log debug Trying to validate stream descriptor for %s N/A str N/A N/A self raw_info N/A stream_name N/A N/A N/A hex_stream_name N/A N/A self raw_info N/A stream_name N/A key N/A N/A self raw_info N/A key N/A hex_suggested_file_name N/A N/A self raw_info N/A suggested_file_name N/A stream_hash N/A N/A self raw_info N/A stream_hash N/A blobs N/A N/A self raw_info N/A blobs N/A N/A N/A KeyError N/A e N/A N/A N/A InvalidStreamDescriptorError N/A Missing '%s' N/A N/A e args N/A 0 N/A c hex_suggested_file_name N/A N/A N/A c 0123456789abcdef N/A N/A N/A InvalidStreamDescriptorError Suggested file name is not a hex-encoded string N/A h N/A get_lbry_hash_obj N/A N/A N/A h update hex_stream_name N/A N/A N/A h update key N/A N/A N/A h update hex_suggested_file_name get_blob_hashsum N/A N/A b N/A N/A N/A length N/A b N/A length N/A N/A length 0 N/A N/A blob_hash N/A b N/A blob_hash N/A N/A blob_hash None N/A blob_num N/A b N/A blob_num N/A iv N/A b N/A iv N/A blob_hashsum N/A get_lbry_hash_obj N/A N/A length 0 N/A N/A N/A N/A blob_hashsum update blob_hash N/A N/A N/A blob_hashsum update N/A str blob_num N/A N/A N/A blob_hashsum update iv N/A N/A N/A blob_hashsum update N/A str length N/A N/A N/A blob_hashsum digest N/A N/A blobs_hashsum N/A get_lbry_hash_obj N/A blob blobs N/A N/A N/A N/A blobs_hashsum update N/A get_blob_hashsum blob N/A N/A N/A N/A blobs N/A -1 N/A length 0 N/A N/A N/A InvalidStreamDescriptorError Does not end with a zero-length blob. N/A N/A N/A h update N/A N/A blobs_hashsum digest N/A N/A N/A N/A h hexdigest stream_hash N/A N/A N/A InvalidStreamDescriptorError Stream hash does not match stream metadata N/A N/A N/A log debug It is validated N/A N/A N/A defer succeed True N/A info_to_show N/A N/A self N/A N/A N/A info N/A N/A N/A N/A info append N/A stream_name N/A N/A binascii unhexlify N/A N/A N/A self raw_info get stream_name N/A size_so_far 0 N/A blob_info N/A N/A N/A self raw_info get blobs N/A N/A N/A size_so_far N/A int N/A blob_info N/A length N/A N/A N/A info append N/A stream_size N/A str N/A N/A self get_length_of_stream N/A suggested_file_name N/A N/A N/A self raw_info get suggested_file_name None N/A N/A suggested_file_name None N/A N/A suggested_file_name N/A N/A binascii unhexlify suggested_file_name N/A N/A N/A info append N/A suggested_file_name suggested_file_name N/A info N/A get_length_of_stream N/A N/A self N/A N/A N/A size_so_far 0 N/A blob_info N/A N/A N/A self raw_info get blobs N/A N/A N/A size_so_far N/A int N/A blob_info N/A length N/A size_so_far N/A N/A