Probably. I haven’t found a public key export in Typhon, Flint, and Nami. Eternl uses xpub1
and Yoroi a plain hex string.
But Daedalus users will become less. We get a lot of requests what to do, because Daedalus starts eating too much resources. So, people will switch to light wallets in considerable numbers.
Why not? You can see your stake address in all of these wallet apps, including Daedalus and Yoroi.
For convenience, you could also allow your users to give you any address that they find somewhere in their wallet and extract the stake address from that.
If you request the public key, you should be prepared to accept all three of these formats – acct_xvk1
, xpub1
, and plain hex from Yoroi. Only accepting one of them will be confusing to users and they will have to find a way to convert themselves.
Sure, you can write stake address derivation for all three of them independently, but that will be largely redundant. So, I meant that internally, you convert, say, all of them to plain hex and then do the stake address derivation from that one to avoid redundancy. That’s more or less an implementation detail.
If you have the public key, querying via the stake address is easiest, but not the only way.
You could derive addresses yourself and individually query them (until you find a streak of, for example, 20 unused addresses). That would result in much more load on the API you are using, but it would also enable to support addresses that are not delegated to a stake address. As far as I know these are only implemented by Eternl and by command line tools, right now. So, they will be very rare.