- use elliptic.MarshalCompressed
- use elliptic.UnmarshalCompressed
- for older go versions use old methods
- update dependencies
- github.com/mr-tron/base58 v1.2.0
- github.com/pkg/errors v0.9.1
- github.com/stretchr/testify v1.7.0
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
Public keys can have X coordinate value shorter than 32 byte.
In this case `encodePoint()` should return 32 byte value with
leading zeros.
This commit also adds unit test for public key with 31 byte
X coordinate value.