Documentation ¶
Index ¶
- func CreateSignature(senderPrivateKeyHex string, plainText string) string
- func DecodeKeys(privateKeyHex string, publicKeyHex string) (*ecdsa.PrivateKey, *ecdsa.PublicKey)
- func DecryptAES(keyByte []byte, cipherText string, additionalData string) string
- func EncodeKeys(privateKeyRaw *ecdsa.PrivateKey, publicKeyRaw *ecdsa.PublicKey) (string, string)
- func EncryptAES(keyByte []byte, plaintext string, additionalData string) string
- func GenesisWallet(nodeName string, passwordString string)
- func GetWallet() walletStruct
- func ReadWalletFile(nodeName string, passwordString string)
- func RequestAddressBalance(IP string, TCPPort string, jeffCoinAddress string) (string, error)
- func TransactionRequest(nodeIP string, nodeTCPPort string, transactionRequestMessageSigned string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSignature ¶
CreateSignature - Creates a ECDSA Digital Signature
func DecodeKeys ¶
DecodeKeys - Decodes privateKeyHex & publicKeyHex to privateKeyRaw & publicKeyRaw
func DecryptAES ¶
DecryptAES - AES-256 GCM (Galois/Counter Mode) mode decryption
func EncodeKeys ¶
EncodeKeys - Encodes privateKeyRaw & publicKeyRaw to privateKeyHex & publicKeyHex
func EncryptAES ¶
EncryptAES - AES-256 GCM (Galois/Counter Mode) mode encryption
func GenesisWallet ¶
GenesisWallet - Creates the wallet and writes to file (Keys and jeffCoin Address)
func ReadWalletFile ¶
ReadWalletFile - Reads the wallet from a file and puts in struct
func RequestAddressBalance ¶
RequestAddressBalance - Requests the jeffCoin balance for a jeffCoin Address
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.