Documentation ¶
Index ¶
- func GenKeyStore(priv crypto.PrivateKey, password string) (*crypto.KeyStore, error)
- func GenerateKeyPair(opt crypto.KeyType) (crypto.PrivateKey, error)
- func PrivKeyToStdKey(priv crypto.PrivateKey) (ecdsa2.PrivateKey, error)
- func PrivateKeyFromStdKey(priv crypto2.PrivateKey) (crypto.PrivateKey, error)
- func PubKeyFromStdKey(pub crypto2.PublicKey) (crypto.PublicKey, error)
- func PubKeyToStdKey(pub crypto.PublicKey) (crypto2.PublicKey, error)
- func RestorePrivateKey(keyFilePath, password string) (crypto.PrivateKey, error)
- func StorePrivateKey(priv crypto.PrivateKey, keyFilePath, password string) error
- func Verify(opt crypto.KeyType, sig, digest []byte, from types.Address) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenKeyStore ¶ added in v1.0.1
func GenerateKeyPair ¶ added in v1.0.1
func GenerateKeyPair(opt crypto.KeyType) (crypto.PrivateKey, error)
func PrivKeyToStdKey ¶ added in v1.0.1
func PrivKeyToStdKey(priv crypto.PrivateKey) (ecdsa2.PrivateKey, error)
PrivKeyToStdKey convert our crypto private key to golang standard ecdsa private key
func PrivateKeyFromStdKey ¶ added in v1.0.1
func PrivateKeyFromStdKey(priv crypto2.PrivateKey) (crypto.PrivateKey, error)
PrivateKeyFromStdKey convert golang standard crypto key to our private key
func PubKeyFromStdKey ¶ added in v1.0.1
func PubKeyToStdKey ¶ added in v1.0.1
func RestorePrivateKey ¶ added in v1.0.1
func RestorePrivateKey(keyFilePath, password string) (crypto.PrivateKey, error)
func StorePrivateKey ¶ added in v1.0.1
func StorePrivateKey(priv crypto.PrivateKey, keyFilePath, password string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.