Documentation ¶
Index ¶
- func GenPrivKeySecp256k1(privateFile, publicFile string) error
- func HexToPrivkey(priv string) (*gocrypto.PrivKey, error)
- func HexToPubkey(pub string) (*gocrypto.PubKey, error)
- func LoadPrivkey(file string) (*gocrypto.PrivKey, error)
- func LoadPubkey(file string) (*gocrypto.PubKey, error)
- func Sign(priv gocrypto.PrivKey, msg []byte) []byte
- func SignWithHexPrivkey(priv string, msg []byte) ([]byte, error)
- func VerifySign(pubKey gocrypto.PubKey, msg, sign []byte) bool
- func VerifySignWithHexPubkey(pub string, msg, sign []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenPrivKeySecp256k1 ¶
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
go-crypto is a customized/convenience cryptography package for supporting Tendermint.
|
go-crypto is a customized/convenience cryptography package for supporting Tendermint. |
keys/cryptostore
package cryptostore maintains everything needed for doing public-key signing and key management in software, based on the go-crypto library from tendermint.
|
package cryptostore maintains everything needed for doing public-key signing and key management in software, based on the go-crypto library from tendermint. |
keys/storage/filestorage
package filestorage provides a secure on-disk storage of private keys and metadata.
|
package filestorage provides a secure on-disk storage of private keys and metadata. |
keys/storage/memstorage
package memstorage provides a simple in-memory key store designed for use in test cases, particularly to isolate them from the filesystem, concurrency, and cleanup issues.
|
package memstorage provides a simple in-memory key store designed for use in test cases, particularly to isolate them from the filesystem, concurrency, and cleanup issues. |
Click to show internal directories.
Click to hide internal directories.