katana.units.raw.base58 — Decode Base58

Decode Base58 encoded text

This is done by the Python3 base58 module which has the b58decode function.

class katana.units.raw.base58.Unit(*args, **kwargs)

Bases: katana.unit.RegexUnit

GROUPS = ['raw', 'decode', 'base58']

These are “tags” for a unit. Considering it is a Raw unit, “raw” is included, as well as the tag “decode”, and the unit name “base58”.

PATTERN = regex.Regex(b'[a-zA-Z0-9+/]+', flags=regex.A | regex.S | regex.M | regex.V0)
PRIORITY = 60

Priority works with 0 being the highest priority, and 100 being the lowest priority. 50 is the default priorty. This unit has a low priority.

evaluate(match)

Evaluate the target. Run base58.b58decode on the target and recurse on any new found information.

Parameters:match – A match returned by the RegexUnit.
Returns:None. This function should not return any data.