Versions in this module Expand all Collapse all v3 v3.0.1 Mar 15, 2024 v3.0.0 Mar 4, 2024 Changes in this version + func GenerateKey() (*ecdsa.PrivateKey, error) + func HexKeyToAddress(hexKey string) common.Address + func HexToPEM(hexkey string) (string, error) + func HexToSM2(hexkey string) (*ecdsa.PrivateKey, error) + func PubkeyToAddress(p ecdsa.PublicKey) common.Address + func SM2KeyToAddress(privateKey []byte) common.Address + func SM2PreProcess(src []byte, id string, priv *ecdsa.PrivateKey) ([]byte, error) + func SM2PubBytes(pub *ecdsa.PublicKey) []byte + func SM2Sign(src []byte, priv *ecdsa.PrivateKey) (r, s *big.Int, err error) + func SM2ToPEM(key *ecdsa.PrivateKey) (string, error) + func Sign(hash, privateKey []byte) (sig []byte, err error) + func ToSM2(d []byte) (*ecdsa.PrivateKey, error) Other modules containing this package github.com/FISCO-BCOS/go-sdk