neoneo-go/pkg/crypto/keys
Roman Khimov 4803cc15c7 keys: add (*PublicKey).DecodeBytes benchmark
Attempts to reuse elliptic.Unmarshal() and elliptic.UnmarshalCompressed() lead
to this:
name                 old time/op    new time/op    delta
PublicDecodeBytes-8    59.5µs ± 2%    61.8µs ± 1%  +3.78%  (p=0.000 n=10+9)

name                 old alloc/op   new alloc/op   delta
PublicDecodeBytes-8    3.99kB ± 0%    4.27kB ± 0%  +6.81%  (p=0.000 n=9+10)

name                 old allocs/op  new allocs/op  delta
PublicDecodeBytes-8       136 ± 0%       135 ± 0%  -0.74%  (p=0.000 n=10+10)

So it makes no sense. Refs. #1319.
2021-08-25 22:35:39 +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 crypto: allow to provide non-default scrypt parameters 2021-06-11 15:22:28 +03:00
nep2_test.go crypto: allow to provide non-default scrypt parameters 2021-06-11 15:22:28 +03:00
private_key.go keys: simplify code a bit 2021-06-17 21:55:00 +03:00
private_key_test.go keys: allow to create keys on arbitrary curve 2020-12-03 14:06:35 +03:00
publickey.go keys: use elliptic package marshalling functions, #1319 2021-08-25 22:35:39 +03:00
publickey_test.go keys: add (*PublicKey).DecodeBytes benchmark 2021-08-25 22:35:39 +03:00
sign_verify_test.go keys: don't panic if signature has invalid size 2020-10-07 10:04:19 +03:00
wif.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
wif_test.go crypto: add invalid testcase 2019-11-29 11:03:03 +03:00