mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-23 03:38:35 +00:00
f0fbe9f6c9
As NEO uses P256 we can use standard crypto/elliptic library for almost everything, the only exception being decompression of the Y coordinate. For some reason the standard library only supports uncompressed format in its Marshal()/Unmarshal() functions. elliptic.P256() is known to have constant-time implementation, so it fixes #245 (and the decompression using big.Int operates on public key, so nobody really cares about that part being constant-time). New decompress function is inspired by https://stackoverflow.com/questions/46283760, even though the previous one really did the same thing just in a little less obvious way. |
||
---|---|---|
.. | ||
nep2.go | ||
nep2_test.go | ||
private_key.go | ||
private_key_test.go | ||
publickey.go | ||
publickey_test.go | ||
sign_verify_test.go | ||
wif.go | ||
wif_test.go |