def parse_uint256(bs: bytes) -> int:
    """
    Parse an unsigned integer encoded in big-endian order from the length 32
    byte sequence ``bs``.

    Corresponds directly to the "parse_256(p)" function in BIP32
    (https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#conventions).

    :param bs: The byte sequence to be parsed.

    :return: The unsigned integer represented by ``bs``.
    """
    assert len(bs) == 32

    return int.from_bytes(bs, 'big')