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 has been 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)
Acceptance Criteria
Update comments and examples
All function should be covered by unit test
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: