How do I generate the needed S2 Public/Private keypair and where are they stored?
The S2 Public/Private keypair and the responding QR code are all stored in the Lock Bits page with the following manufacturing tokes:
The Z-Wave application is responsible for calculating the S2 Public/Private keypair based on Curve25519, constructing the QR code based on the public key and writing these to the Lock Bits page.
When finish an additional manufacturing token is written to the Lock Bits page to symbolize the completion of this process.
As such, this process is only started if the Lock Bits page is erased and the TOKEN_MFG_ZW_INITIALIZED is therefore not in place.
When this process has finished, it is possible to read out the QR code in order to generate the QR image to print on the product.
INS14285 - Manufacture Z-Wave 700 product in volume (Available through Simplicity Studio)