You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 11, 2024. It is now read-only.
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,
cryptopackageGetKeysdo not follow standardcryptolibrary interface. For example,PrivateKeyis[]bytebut it implementsPublicandEqual. we should keep the standard interface as much as possiblePublicKeyPrivateKeytype instead of[]byteGetKeysto accept[]byteinstead of stringVerifyandSignAcceptance Criteria