message_key_types module

Copyright (c) 2017 beyond-blockchain.org.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Message()
KeyType
PayloadType
class message_key_types.KeyType[source]

Bases: object

all_asset_files = b'\x00\x00\x00t'
asset_file = b'\x00\x00\x00s'
asset_group_id = b'\x00\x00\x00a'
asset_id = b'\x00\x00\x00c'
bbc_configuration = b'\x00\x00\x008'
command = b'\x00\x00\x00\x08'
count = b'\x00\x00\x00\x0e'
cross_refs = b'\x00\x00\x00v'
destination_node_id = b'\x00\x00\x00V'
destination_user_id = b'\x00\x00\x00R'
destination_user_ids = b'\x00\x00\x00S'
domain_id = b'\x00\x00\x00`'
domain_list = b'\x00\x00\x007'
domain_ping = b'\x00\x00\x00\n'
external_ip4addr = b'\x00\x00\x00<'
external_ip6addr = b'\x00\x00\x00='
ipv4_address = b'\x00\x00\x009'
ipv6_address = b'\x00\x00\x00:'
ledger_subsys_manip = b'\x00\x00\x00 '
ledger_subsys_register = b'\x00\x00\x00!'
ledger_subsys_verify = b'\x00\x00\x00"'
merkle_tree = b'\x00\x00\x00#'
message = b'\x00\x00\x00\t'
network_module = b'\x00\x00\x000'
node_id = b'\x00\x00\x00T'
nonce = b'\x00\x00\x00\r'
p2p_msg_type = b'\x00\x00\x00\x0b'
peer_info = b'\x00\x00\x003'
peer_list = b'\x00\x00\x004'
port_number = b'\x00\x00\x00;'
query_id = b'\x00\x00\x00\x0c'
reason = b'\x00\x00\x00\x01'
ref_index = b'\x00\x00\x00r'
resource = b'\x00\x00\x00B'
resource_id = b'\x00\x00\x00@'
resource_type = b'\x00\x00\x00A'
result = b'\x00\x00\x00\x02'
signature = b'\x00\x00\x00u'
source_node_id = b'\x00\x00\x00U'
source_user_id = b'\x00\x00\x00Q'
sql = b'\x00\x00\x00C'
stats = b'\x00\x00\x00\x0f'
status = b'\x00\x00\x00\x00'
storage_path = b'\x00\x00\x002'
storage_type = b'\x00\x00\x001'
transaction_data = b'\x00\x00\x00p'
transaction_id = b'\x00\x00\x00b'
transactions = b'\x00\x00\x00q'
user_id = b'\x00\x00\x00P'
class message_key_types.Message[source]

Bases: object

HEADER_LEN = 8
parse()[source]
recv(dat)[source]
class message_key_types.PayloadType[source]

Bases: object

Type_binary = 0
Type_msgpack = 1
message_key_types.deserialize_data(payload_type, dat)[source]
message_key_types.make_TLV_formatted_message(msg)[source]
message_key_types.make_dictionary_from_TLV_format(dat)[source]
message_key_types.make_message(payload_type, msg, payload_version=0)[source]
message_key_types.to_2byte(val, offset=0)[source]
message_key_types.to_4byte(val, offset=0)[source]