Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNetworkNotSupportedError ¶
IsNetworkNotSupportedError network not supported errors can be resolved by selecting a different client or configuring the network.
func ReadMessage ¶
func ReadMessage(txData []byte, decrypter cipher.Decrypter, cache stores.Cache) (*mail.Message, error)
ReadMessage gets the messages, decrypts and checks to see if it's valid - Check transaction data - Decrypt location - Get message - Decrypt message - Check hash
func SendMessage ¶
func SendMessage(ctx context.Context, protocol, network string, msg *mail.Message, encrypter cipher.Encrypter, msgSender sender.Message, sent stores.Sent, msgSigner signer.Signer, envelopeKind byte) error
SendMessage performs all the actions required to send a message. - Create a hash of encoded message - Encrypt message - Store sent message - Encrypt message location - Create transaction data with encrypted location and message hash - Send transaction
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package mailboxtest is a generated GoMock package.
|
Package mailboxtest is a generated GoMock package. |
signertest
Package signertest is a generated GoMock package.
|
Package signertest is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.