wallet

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSignature

func CreateSignature(senderPrivateKeyHex string, plainText string) string

CreateSignature - Creates a ECDSA Digital Signature

func DecodeKeys

func DecodeKeys(privateKeyHex string, publicKeyHex string) (*ecdsa.PrivateKey, *ecdsa.PublicKey)

DecodeKeys - Decodes privateKeyHex & publicKeyHex to privateKeyRaw & publicKeyRaw

func DecryptAES

func DecryptAES(keyByte []byte, cipherText string, additionalData string) string

DecryptAES - AES-256 GCM (Galois/Counter Mode) mode decryption

func EncodeKeys

func EncodeKeys(privateKeyRaw *ecdsa.PrivateKey, publicKeyRaw *ecdsa.PublicKey) (string, string)

EncodeKeys - Encodes privateKeyRaw & publicKeyRaw to privateKeyHex & publicKeyHex

func EncryptAES

func EncryptAES(keyByte []byte, plaintext string, additionalData string) string

EncryptAES - AES-256 GCM (Galois/Counter Mode) mode encryption

func GenesisWallet

func GenesisWallet(nodeName string, passwordString string)

GenesisWallet - Creates the wallet and writes to file (Keys and jeffCoin Address)

func GetWallet

func GetWallet() walletStruct

GetWallet - Gets the wallet

func ReadWalletFile

func ReadWalletFile(nodeName string, passwordString string)

ReadWalletFile - Reads the wallet from a file and puts in struct

func RequestAddressBalance

func RequestAddressBalance(IP string, TCPPort string, jeffCoinAddress string) (string, error)

RequestAddressBalance - Requests the jeffCoin balance for a jeffCoin Address

func TransactionRequest

func TransactionRequest(nodeIP string, nodeTCPPort string, transactionRequestMessageSigned string) (string, error)

TransactionRequest - Request to transfer jeffCoins to a jeffCoin Address

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL