Generating signed web bundles for testing
In general
- wbn-sign CLI tools provide functionalities for signing the web bundles and inferring the signed web bundle ID from the key.
- (deprecated, used prior and provided only for reference) go CLI tools were used before. They do not support signing the web bundles using v2 integrity block, so are no longer applicable.
For most of the C++ tests
EcdsaP256 signature is nondeterministic, which makes it impossible to perform at least some tests that rely on byte-wise comparison. To remediate it, WebBundleSigner for tests uses hardcoded nonce. Hence, .swbn files in this directory that are used for such tests have to be generated using this C++ code.