@classmethod
def privkey_WIF(cls, privkey_bytes, compressed):
    """Return the private key encoded in Wallet Import Format."""
    payload = bytearray(cls.WIF_BYTE) + privkey_bytes
    if compressed:
        payload.append(1)
    return cls.ENCODE_CHECK(payload)
