Documentation
¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func DecryptJSON(ciphertext []byte) (interface{}, error)
- func DecryptPlain(ciphertext []byte) ([]byte, error)
- func EncryptJSON(data interface{}) ([]byte, error)
- func EncryptOrderRecipient(recipient *ent.PaymentOrderRecipient) (string, error)
- func EncryptPlain(plaintext []byte) ([]byte, error)
- func GenerateAccountFromIndex(accountIndex int) (*common.Address, *ecdsa.PrivateKey, error)
- func GenerateTronAccountFromIndex(accountIndex int) (wallet *tronWallet.TronWallet, err error)
- func GetOrderRecipientFromMessageHash(messageHash string) (*types.PaymentOrderRecipient, error)
- func PublicKeyDecryptJSON(ciphertext []byte, privateKeyPEM string) (interface{}, error)
- func PublicKeyDecryptPlain(ciphertext []byte, privateKeyPEM string) ([]byte, error)
- func PublicKeyEncryptJSON(data interface{}, publicKeyPEM string) ([]byte, error)
- func PublicKeyEncryptPlain(plaintext []byte, publicKeyPEM string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
CheckPasswordHash is a function to compare provided password with the hashed password
func DecryptJSON ¶
DecryptJSON decrypts JSON serializable data using AES encryption algorithm with Galois Counter Mode
func DecryptPlain ¶
DecryptPlain decrypts ciphertext using AES encryption algorithm with Galois Counter Mode
func EncryptJSON ¶
EncryptJSON encrypts JSON serializable data using AES encryption algorithm with Galois Counter Mode
func EncryptOrderRecipient ¶
func EncryptOrderRecipient(recipient *ent.PaymentOrderRecipient) (string, error)
EncryptOrderRecipient encrypts the recipient details using the aggregator's public key
func EncryptPlain ¶
EncryptPlain encrypts plaintext using AES encryption algorithm with Galois Counter Mode
func GenerateAccountFromIndex ¶
GenerateAccountFromIndex generates a crypto wallet account from HD wallet mnemonic
func GenerateTronAccountFromIndex ¶
func GenerateTronAccountFromIndex(accountIndex int) (wallet *tronWallet.TronWallet, err error)
GenerateTronAccountFromIndex generates a Tron wallet account from HD wallet mnemonic
func GetOrderRecipientFromMessageHash ¶
func GetOrderRecipientFromMessageHash(messageHash string) (*types.PaymentOrderRecipient, error)
GetOrderRecipientFromMessageHash decrypts the message hash and returns the order recipient
func PublicKeyDecryptJSON ¶
PublicKeyDecryptJSON decrypts JSON serializable data using RSA 2048 encryption algorithm
func PublicKeyDecryptPlain ¶
PublicKeyDecryptPlain decrypts ciphertext using RSA 2048 encryption algorithm
func PublicKeyEncryptJSON ¶
PublicKeyEncryptJSON encrypts JSON serializable data using RSA 2048 encryption algorithm
Types ¶
This section is empty.