neo-go/pkg/crypto/keys
Roman Khimov 1b83dc2476 *: improve for loop syntax
Mostly it's about Go 1.22+ syntax with ranging over integers, but it also
prefers ranging over slices where possible (it makes code a little better to
read).

Notice that we have a number of dangerous loops where slices are mutated
during loop execution, many of these can't be converted since we need proper
length evalutation at every iteration.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-08-30 21:45:18 +03:00
..
aes256.go crypto: internalize aes functions into the keys package 2019-12-25 11:25:05 +03:00
doc.go *: add more package-specific documentation 2021-03-19 16:18:45 +03:00
nep2.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
nep2_test.go crypto: allow to provide non-default scrypt parameters 2021-06-11 15:22:28 +03:00
private_key.go *: replace slice.Clean() with clear() 2024-08-24 22:41:48 +03:00
private_key_test.go keys/wallet: add Destroy/Close/Close 2022-09-01 17:07:00 +03:00
publickey.go keys: mute elliptic.Marshal deprecation warning 2024-08-27 12:29:44 +03:00
publickey_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
sign_verify_test.go keys: move from btcd/btcec to decred/secp256k1 package 2022-11-08 17:59:59 +03:00
wif.go keys: rework nep-2/wif encoding without bytes.Buffer 2024-08-27 12:29:44 +03:00
wif_test.go keys: check length first, then do things in WIFDecode 2022-09-02 14:44:32 +03:00