neo-go/pkg/core/native/native_test
Roman Khimov 3d1e33a502 native: make multisig koblitz easier to parse
1. Make prologue be exactly the same as regular CheckMultisig.
2. But instead of "SYSCALL System.Crypto.CheckMultisig" do INITSLOT and K check.
3. This makes all of the code from INITSLOT below be independent of N/M, so
   one can parse the script beginning in the same way CheckMultisig is parsed and
   then just compare the rest of it with some known-good blob.
4. The script becomes a tiny bit larger now, but properties above are too good.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
2024-05-13 09:33:42 +03:00
..
helpers/policyhelper nativetest: migrate Policy contract tests to neotest 2022-01-14 16:34:33 +03:00
common_test.go core: add unit tests for HF-based native contracts update 2024-04-25 13:26:54 +03:00
cryptolib_test.go interop: add keccak256 implementation 2024-03-22 17:15:43 +03:00
cryptolib_verification_test.go native: make multisig koblitz easier to parse 2024-05-13 09:33:42 +03:00
designate_test.go *: introduce Genesis protocol configuration 2023-10-19 18:30:20 +03:00
gas_test.go core: review usages of (*intero.Context).BlockHeight method 2023-11-21 13:46:13 +03:00
ledger_test.go neotest: Add contract signer support 2023-12-01 10:50:08 +03:00
management_test.go native: extend CryptoLib's verifyWithECDsa with hasher parameter 2024-05-13 09:33:41 +03:00
neo_test.go native: add getCommitteeAddress method 2024-03-22 16:46:59 +03:00
notary_test.go core: prohibit reentry to Notary withdraw 2024-03-18 17:08:32 +03:00
oracle_test.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
policy_test.go native: introduce attribute pricing 2023-11-21 13:42:56 +03:00