Skip to content

Reverse Merge Operation (or Rename) #276

@JeremyRubin

Description

@JeremyRubin

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:

  • Should this copy over the target's signers?
  • Should the target be required to include a signature?

It also lets us rotate our account's masterkey in cases where we've lost it or forgotten it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CAPRepresents an issue that requires a CAP.needs draftThis an issue that has no corresponding draft, and as such has not entered the CAP/SEP process.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions