Firewall is an example of cooperating hooks: firewall hook instances filter incoming payments, based on shared state maintained by blacklist hook.
To cooperate, the hooks need information about each other, which must be obtained before deploying them, because it's passed to them as install-time parameters.
to test:
- make sure Hooks Builder has at least 4 accounts: Alice, Bob, Carol and Carlos
- run key.js to get a public key of the blacklist admin account, e.g. Alice; it asks for that account's secret key
- verify the script is using it just to derive the public key