I just installed and tried to use a lightning wallet (bluewallet) on an Android device.
As per my understanding, when I fund my lightning wallet (This is an on-chain tx) with amount
x, I open a direct channel with blue wallet of amount
x. If I want to send a tx on the lightning network (say amount
x) to a person
B, they must have their own open channel with bluewallet of amount
y must be greater than
x for the tx to go through. If it goes through then it's routed via blue wallet to person
Is my understanding correct? Please correct me if I'm wrong.
What happens if the above conditions are not met, i.e. person
B creates a wallet on blue wallet but doesn't fund the channel? What happens if the amount
y is less than
Also, are my keys randomly generated on device only?