wormhole/node/pkg/processor
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
..
broadcast.go node/pkg/vaa: remove error return value from SigningMsg 2021-12-20 16:05:22 +01:00
cleanup.go node/pkg/processor: expire late observations 2022-01-25 22:36:24 +01:00
injection.go fix digest string represenation 2022-03-18 10:49:34 -05:00
message.go Hardening against governance message spoofing (#938) 2022-03-03 17:55:02 +01:00
observation.go Adds unit-tests and functional improvements to guardian signature verification (#1068) 2022-04-11 19:14:41 -04:00
observation_test.go Adds unit-tests and functional improvements to guardian signature verification (#1068) 2022-04-11 19:14:41 -04:00
processor.go node: add Discord notifications for missing signatures 2021-10-06 14:12:21 +02:00
quorum.go node: rename bridge/ to node/ 2021-08-26 11:36:36 +02:00
quorum_test.go Add unit test for 0 case and move to testify (#1023) 2022-03-28 09:54:18 -04:00