ordinals / ord

👁‍🗨 Rare and exotic sats
https://ordinals.com
Creative Commons Zero v1.0 Universal
3.8k stars 1.33k forks source link

`ord wallet sweep <ADDRESSES>` #1071

Open raphjaph opened 1 year ago

raphjaph commented 1 year ago

Sweeps wallet but preserves the number of outputs. All outputs that contain an inscription are preserved as single outputs so they keep their postage. Cardinal utxos are combined into one output at the new address.

casey commented 1 year ago

Sweep should take as many addresses as inscriptions, to avoid linking them.

reinamora137 commented 1 year ago

can this be moved into the backlog or prioritized to some extent? It appears more and more users are getting borked inscriptions because of bitcoin-cli commands on the ord wallet or otherwise.

skyrover7 commented 1 year ago

ive got a bitcoin punk locked up in one 😆. bounty?

gmart7t2 commented 1 year ago

Sweeps wallet but preserves the number of outputs. All outputs that contain an inscription are preserved as single outputs so they keep their postage. Cardinal utxos are combined into one output at the new address.

I don't see how we can preserve the number of outputs while also combining cardinal utxos.

Combining utxos tends to reduce the number of utxos in a wallet.

Is the goal of "wallet sweep" to combine all the cardinals into one utxo while leaving the inscriptions untouched? If so that sounds like a new flag on "ord send" which sends the available (cardinal) balance to a new address.

Sweep should take as many addresses as inscriptions, to avoid linking them.

Linking in the chain-analysis sense? Then they would each need to be sent in a separate transaction. Or is the concern that sending them all to the same address causes them to merge? Because it doesn't.

Perhaps the purpose of "wallet sweep" is to separate inscriptions that have been merged into the same utxo. But then I don't see why preserving the number of outputs is a goal.

In all I don't think this issue is very clear at all...

cryptoni9n commented 3 months ago

@raphjaph I believe this was the last issue added to the Wallet category in last weeks coding club. Should it be added to the tracker for prioritization?