Skip to content
campadrenalin edited this page Sep 14, 2011 · 8 revisions

Classes

Address

A subclass of ConcurrenTree.model.ModelBase, which provides the function __str__ and the property hash, which are a strict string of the protocol representation and the checksum of the protocol representation, respectively.

Methods:
* __init__(target) # accepts lists, Addresses, and JSON strings describing address lists
* resolve(tree) # Assuming tree is the root, return the node referenced by this address
* proto() # Return protocol representation (list)

Functions

validate_shortcut(shortcut)

Tests a shortcut address for well-formedness - NOT that the shortcut exists. Returns a tuple of (era, id), or raises an InvalidShortcutError.

Exceptions

  • ShortcutError(Exception)
  • InvalidShortcutError(ShortcutError)
  • ShortcutUnresolvedError(ShortcutError)

Python Library

Clone this wiki locally