Ejemplo n.º 1
0
async def require_confirm_ecdh_session_key(ctx, identity):
    lines = chunks(serialize_identity_without_proto(identity), 18)
    proto = identity.proto.upper() if identity.proto else "identity"
    text = Text("Decrypt %s" % proto)
    text.mono(*lines)
    await require_confirm(ctx, text)
Ejemplo n.º 2
0
async def require_confirm_ecdh_session_key(ctx, identity):
    lines = chunks(serialize_identity_without_proto(identity), 18)
    proto = identity.proto.upper() if identity.proto else 'identity'
    header = 'Decrypt %s' % (proto,)
    content = Text(header, ui.ICON_DEFAULT, ui.MONO, *lines, max_lines=5)
    await require_confirm(ctx, content)