Skip to content

wallet: skip identity points in decoy selection#10296

Open
jeffro256 wants to merge 1 commit intomonero-project:masterfrom
jeffro256:no_select_ident_decoys
Open

wallet: skip identity points in decoy selection#10296
jeffro256 wants to merge 1 commit intomonero-project:masterfrom
jeffro256:no_select_ident_decoys

Conversation

@jeffro256
Copy link
Contributor

@jeffro256 jeffro256 commented Jan 31, 2026

This skips the output for decoy selection if $O = 0$, $C = 0$, or $C = G$. $O = 0$ would cause the key image $L = 0$, which isn't valid by consensus rules (i.e. it is unspendable). If $C = 0$, or $C = G$, then it is known that the amount commitment binds to a 0 amount.

@kayabaNerve
Copy link
Contributor

kayabaNerve commented Jan 31, 2026

ACK to banning selecting unspendable keys as decoys.

NACK to changing the checks on the commitment. commit(r=0, v=0) and commit(r=1, a=0) are valid commitments and as statistically probable as any other uniformly-sampled randomness value. If you want to ban them for being trivial, also ban commit(r=2, a=0).

Also, commit(r=3, a=0).

Also, commit(r=4, a=0).

Also, ...

Also, I just really don't like commit(r=7205610562950251946294610472026491380, a=0). Can we ban that too?

@jeffro256
Copy link
Contributor Author

commit(r=1, a=0) are valid commitments and as statistically probable as any other uniformly-sampled randomness value

Well, not really, since all coinbase outputs of amount zero are always commit(r=1, a=0).

Also, I just really don't like commit(r=7205610562950251946294610472026491380, a=0). Can we ban that too?

Great, will add it to the list ;)

@kayabaNerve
Copy link
Contributor

kayabaNerve commented Feb 2, 2026

Well, really, because your example is for a non-uniformly-sampled value when I distinguished to uniformly-sampled values.

I maintain we shouldn't ban values you personally dislike because you dislike them. It's not a legitimate cryptographic process to argue our security via.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants