Reverse Merge Operation (or Rename) #276
Labels
CAP
Represents an issue that requires a CAP.
needs draft
This an issue that has no corresponding draft, and as such has not entered the CAP/SEP process.
Rough proposal of a new operation for a reverse merge, can open a SEP after discussion.
In a reverse merge, the operation specifies a target account ID. If the target account ID already exists, and the account has no sub-entries which preclude merging, the remaining lumen balance is sent to the source account and the account is deleted. Then, the source account's account ID becomes the
max(target account ID's, current sequence number)
.If the account is in a non-mergeable state, the transaction should be invalid (or, fail).
Such an operation is useful for SEP protocols like ATP3 where we might want funds to end up in a specific account without having to do much work of changing trustlines.
Open questions:
It also lets us rotate our account's masterkey in cases where we've lost it or forgotten it.
The text was updated successfully, but these errors were encountered: