Versions in this module Expand all Collapse all v0 v0.3.1 Mar 15, 2023 v0.3.0 Jul 20, 2022 Changes in this version + func GenerateKeystore(privKeyBytes, passwd []byte) ([]byte, error) + func GeneratePrivateKey() ([]byte, error) + func InspectKeystore(keyjson, passwd []byte) ([]byte, error) + type Address common.Address + func BytesToAddress(bytes []byte) Address + func Ecrecover(b []byte, sig []byte) (Address, error) + func HexToAddress(s string) Address + func (addr Address) Hex() string + type DID struct + func CreateKeystoreArrayAndSaveLocal(keyDir string, passwd, salt []byte, cnt int) ([]*DID, error) + func New() (*DID, error) + func UnlockKeystoreArray(keyDir string, passwd, salt []byte) ([]*DID, error) + func (d *DID) GetAddress() Address + func (d *DID) GetKey() *keystore.Key + func (d *DID) Inspect(showPrivate bool) (addr string, pubKey string, privKey string, err error) + func (d *DID) LoadECDSA(privateKeyHex string) error + func (d *DID) Sign(b []byte) ([]byte, error) + func (d *DID) UnlockWallet(keyFilePath, password string) error + type EncryptedKeyJSONV3 struct + Address string + Crypto keystore.CryptoJSON + ID string + Version int