# Anonymous usage tokens from curve trees or autct

**URL:** <https://delvingbitcoin.org/t/anonymous-usage-tokens-from-curve-trees-or-autct/862>\
**Category:** Protocol Design\
**Tags:** taproot, lightning\
**Created:** [May 10, 2024, 2:45pm UTC](https://delvingbitcoin.org/t/anonymous-usage-tokens-from-curve-trees-or-autct/862 "2024-05-10T14:45:08Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![kayabaNerve](https://delvingbitcoin.org/user_avatar/delvingbitcoin.org/kayabanerve/32/577_2.png) [@kayabaNerve](https://delvingbitcoin.org/u/kayabaNerve)\
**Post date:** [May 22, 2024, 3:26am UTC](https://delvingbitcoin.org/t/anonymous-usage-tokens-from-curve-trees-or-autct/862/6 "2024-05-22T03:26:28Z")

</div>

> [@AdamISZ](#):
>
> all the ring signature based stuff fails on sublinear verification

Correct. You need a succinct proof (which would then have linear proving) or to move the problem statement to one with sublinear complexity (a merkle tree).

> [@AdamISZ](#):
>
> But the [Curve Trees](https://eprint.iacr.org/2022/756.pdf) approach solves this

Curve Trees is one approach, and great for a trustless setup discussion.

> [@AdamISZ](#):
>
> keyset sizes from 50K up to 2.5M and seen verification time mostly sitting between 40 and 70ms

You can do quite a bit better. My work has been applying Curve Trees to Monero and we’re at 35ms for verifying one proof (using two curves without tailored field implementations yet crypto-bigint’s Residue type) of 219b. With batch verification (n=10), it quickly gets down to 11ms.

> [@AdamISZ](#):
>
> The reason for this processing is to allow the xxx-coordinate to curve point transformation to be unambiguous (the well known “yyy-coordinate tiebreaker” issue), but using an algorithm that is actually efficient inside the arithmetic circuit . Since this only has to be done once for each new key, this time cost can be ameliorated in every case but a pure trustless bootstrap to do a proof from scratch. Discussed [here](https://github.com/AdamISZ/aut-ct/issues/10)

This isn’t necessary if you define the linking tags as x coordinates. Then proving for a negative leaf may produce a negative linking tag, except the sign data is lost when you drop the tag’s y coordinate.

You could still trivially produce a collision on the layers by hashing negative words. That’s solved by using an initialization generator as a term with a constant coefficient of 1. Since that term can’t be negated, you’d need to solve the DLP for the initialization generator and other generators.

> [@AdamISZ](#):
>
> Curve Trees being based on bulletproof ZKPs

Technically Generalized Bulletproofs (not Bulletproofs as published several years ago).

> [@AdamISZ](#):
>
> There is another idea, see Microsoft’s SPARTAN as applied [here](https://github.com/personaelabs/spartan-ecdsa) which also does not require pairings nor any assumption beyond ECDL.

The benefit of using Generalized Bulletproofs is the ‘native’ operations re: Pedersen Vector Commitments. Using Spartan would require manually building them on the towering curve (historically hundreds of multiplication constraints per word).

> [@1440000bytes](#):
>
> Is it possible that users can prove ownership

They’d just need to open the re-randomized output key. The existing DLEq proof does so (while additionally providing linkability).

---

_[View the full topic](https://delvingbitcoin.org/t/anonymous-usage-tokens-from-curve-trees-or-autct/862)._
