Documentation ¶
Index ¶
- Variables
- func EncryptPassWithSalt(pass string) string
- func Pem2PublicKey(publicPem []byte) (*rsa.PublicKey, error)
- func SHA256Sign(privateKey *rsa.PrivateKey, content []byte) ([]byte, error)
- func VerifyAddrSign(nonce, sign string) (string, error)
- func VerifySHA256Sign(publicKey *rsa.PublicKey, sign []byte, content []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var FilePassSalt = "TITAN_NETWORK_FILE_PASS"
Functions ¶
func EncryptPassWithSalt ¶
func Pem2PublicKey ¶
Pem2PublicKey converts a PEM-encoded public key to an *rsa.PublicKey.
func SHA256Sign ¶
func SHA256Sign(privateKey *rsa.PrivateKey, content []byte) ([]byte, error)
SHA256Sign signs a message using an RSA private key.
func VerifyAddrSign ¶
VerifyAddrSign 判断以太坊地址的签名是否正确
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.