Versions in this module Expand all Collapse all v0 v0.0.2 Nov 2, 2024 v0.0.1 Nov 2, 2024 Changes in this version + const EthPrefix + const PrivateKeyLen + const PublicKeyLen + const SignatureLen + func GetEcdsaPublicKeyByPrivateKey(prikey *ecdsa.PrivateKey) (publicKeyECDSA *ecdsa.PublicKey, err error) + func GetEthAddressByBytePublicKey(publicKey []byte) (address string, err error) + func GetEthMessageHash(message string) (msgHash []byte) + func GetKeccak256Hash(msg []byte) (msgHash []byte) + func GetPrivateKeyWithEcdsa(privateKey string) (prikey *ecdsa.PrivateKey, err error) + func GetPublicKeyBySign(msgHash, signature []byte) (sigPublicKey []byte, err error) + func ValidateSignature(message, signature, address string) (valid bool) + type Bytes []byte + func GetBytesPublicKeyByPrivateKey(publicKeyECDSA *ecdsa.PublicKey) (publicKey Bytes) + func GetPublicKeyByPrivateKey(prikey *ecdsa.PrivateKey) (publicKey Bytes, err error) + func (b Bytes) EncodeToString() string