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?
Asked
Active
Viewed 244 times
2 Answers
2
Yes, you can use this Javascript NPM package to generate subaddresses: https://www.npmjs.com/package/subaddress
knaccc
- 8,518
- 17
- 23
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.
jtgrassie
- 19,601
- 4
- 17
- 54