Currently, crypto package GetKeys do not follow standard crypto library interface. For example, PrivateKey is []byte but it implements Public and Equal. we should keep the standard interface as much as possible
crypto should have PublicKeyPrivateKey type instead of []byte
Refactor GetKeys to accept []byte instead of string
Add Verify and Sign
Refactor util functions (Hash, hexToString, hexToBytes, GetAddress etc) to be in different file (utils.go)
Description
Currently,
crypto
packageGetKeys
do not follow standardcrypto
library interface. For example,PrivateKey
is[]byte
but it implementsPublic
andEqual
. we should keep the standard interface as much as possiblePublicKey
PrivateKey
type instead of[]byte
GetKeys
to accept[]byte
instead of stringVerify
andSign
Acceptance Criteria