import re


def extract_nodes_digests_micro(consensus_raw):
    """Retrieve a list of the digests of all routers in the consensus.
    """
    # We retrieve the third fields of the lines looking like that:
    #m v7E0VcMnwVepVUh+j193lrbqbWOg26g9hXOBwSYv32I
    digests_raw = re.findall(r'^m ([^\n]+)', consensus_raw, re.MULTILINE)
    digests_bytes = [digest for digest in digests_raw]

    return digests_bytes