crossbar.common.key

Attributes

log

Functions

_creator()

for informational purposes, try to identify the creator (user@hostname)

_machine_id()

for informational purposes, try to get a machine unique id thing

_maybe_generate_node_key(cbdir[, privfile, pubfile])

_parse_node_key(→ collections.OrderedDict)

Internal helper. This parses a key.pub or key.priv file and

_read_node_key(cbdir[, privkey_path, pubkey_path, private])

_read_release_key()

_write_node_key(filepath, tags, msg)

Internal helper, write the given tags to the given file.

Module Contents

_creator()[source]

for informational purposes, try to identify the creator (user@hostname)

_machine_id()[source]

for informational purposes, try to get a machine unique id thing

_maybe_generate_node_key(cbdir, privfile='key.priv', pubfile='key.pub')[source]
_parse_node_key(key_path: str, private: bool = True) collections.OrderedDict[source]

Internal helper. This parses a key.pub or key.priv file and returns a dict mapping from tags to values.

Parameters:
  • key_path – Path to key file.

  • private – Flag indicating whether to parse the file as a private key file.

Returns:

Tags parsed from key file (ordered as appearing in the file).

_read_node_key(cbdir, privkey_path='key.priv', pubkey_path='key.pub', private=False)[source]
_read_release_key()[source]
_write_node_key(filepath, tags, msg)[source]

Internal helper, write the given tags to the given file.

log[source]