wormhole/node/pkg/vaa
Jonathan Claudius bad4f7061b
Adds unit-tests and functional improvements to guardian signature verification (#1068)
* Add more comprehensive structs unit-tests

* Make VerifySignatures fail on duplicate addresses

* Adjust duplicate detection to guard on signatures instead of addresses

* Add monotonic check in VerifySignatures

* Move logic into VerifySignatures and add more test cases

* Add a paranoid check for duplicate signers

* Make VerifySignatures unit-tests less contrived

* Add more verify signature test cases

* Refactor VerifySignatures tests

* Add VerifySignature fuzz tests

* Add tc.result checking instead of hardcoded true

* Change comparison so it throws debug on failure for fuzz tests

* Add unit-tests for observation signature logic

* Fix comment typos

* Refactor observation tests

* Add missing test case

* Fix VAAInvalidSignatures test case label

* Clean up unit-tests for observation and structs

* Change errorString convention in test

* Format Signature Verification Test Cases

* Remove unnecessary casting

* Add multi-signer same key cases

* Fix err usage in test cases

* Remove duplicate getVAA
2022-04-11 19:14:41 -04:00
..
governance.go Hardening against governance message spoofing (#938) 2022-03-03 17:55:02 +01:00
governance_test.go Add unit-test for governance (#867) 2022-02-21 17:23:34 -05:00
payloads.go node: add BridgeUpgradeContract governance VAA 2021-10-11 12:54:51 +00:00
payloads_test.go Add unit-tests for payloads 2022-03-09 20:58:04 -05:00
structs.go Adds unit-tests and functional improvements to guardian signature verification (#1068) 2022-04-11 19:14:41 -04:00
structs_test.go Adds unit-tests and functional improvements to guardian signature verification (#1068) 2022-04-11 19:14:41 -04:00
types_test.go node: run all Go tests in CI 2021-12-20 16:05:22 +01:00