Needed to build with newer go toolchains (up to 1.19). Many of the libp2p subpackages have been merged as sub-directories of the main libp2p package so update the imports to use the newer versions.
* nosec linter surpression in nodekey_test.go * Mark DeterministicEcdsaKeyByIndex as Insecure * nosec - surpress warning * simplify range expression Co-authored-by: tbjump <>
* Add unit-tests for nodekey * Move to deferred file clean up