3

I want to create an online widget where one can output their subaddresses without having to input their private-spend key and only use the other keys provided. Is there a javascript implementation of this?

2

Yes, you can use this Javascript NPM package to generate subaddresses: https://www.npmjs.com/package/subaddress

0

Subaddresses are created using the private view key of the base address, not the private spend key. See https://monerodocs.org/public-address/subaddress/#generating and https://github.com/monero-project/monero/pull/2056.

There is no way to create a subaddress without the base address private view key.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.