Generated by DocFX

Class MessageNFT

NFT message allows to send encrypted messages between two peers

Inheritance
System.Object
CommonNFT
MessageNFT
Implements
INFT
Inherited Members
CommonNFT.TypeText
CommonNFT.Type
CommonNFT.Name
CommonNFT.Author
CommonNFT.Description
CommonNFT.Text
CommonNFT.Link
CommonNFT.IconLink
CommonNFT.ImageLink
CommonNFT.ImageData
CommonNFT.Base64Data
CommonNFT.Preview
CommonNFT.PreviewData
CommonNFT.DataItems
CommonNFT.Tags
CommonNFT.TagsList
CommonNFT.Utxo
CommonNFT.UtxoIndex
CommonNFT.ShortHash
CommonNFT.NFTOriginTxId
CommonNFT.SourceTxId
CommonNFT.TokenId
CommonNFT.Price
CommonNFT.PriceActive
CommonNFT.DogePrice
CommonNFT.DogePriceActive
CommonNFT.DogeAddress
CommonNFT.SellJustCopy
CommonNFT.IsLoaded
CommonNFT.IsInThePayments
CommonNFT.DogeftInfo
CommonNFT.SoldInfo
CommonNFT.Time
CommonNFT.History
CommonNFT.TxDetails
CommonNFT.TxDataRefreshed
CommonNFT.IsSpendable()
CommonNFT.LoadHistory()
CommonNFT.FillCommon(INFT)
CommonNFT.ClearSoldInfo()
CommonNFT.ClearPrices()
CommonNFT.ParseTags()
CommonNFT.LoadLastData(IDictionary<String, String>)
CommonNFT.ParsePrice(IDictionary<String, String>)
CommonNFT.ParseSoldInfo(IDictionary<String, String>)
CommonNFT.ParseCommon(IDictionary<String, String>)
CommonNFT.ParseDogeftInfo(IDictionary<String, String>)
CommonNFT.GetCommonMetadata()
CommonNFT.DownloadPreviewData()
CommonNFT.DownloadImageData()
CommonNFT.DecryptImageData(BitcoinSecret, String, String, String)
CommonNFT.DecryptProperty(String, BitcoinSecret, String, String, String)
CommonNFT.StopRefreshingData()
CommonNFT.StartRefreshingTxData(Int32)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VEDriversLite.NFT
Assembly: VEDriversLite.dll
Syntax
public class MessageNFT : CommonNFT, INFT

Constructors

| Improve this Doc View Source

MessageNFT(String)

Create empty NFT class

Declaration
public MessageNFT(string utxo)
Parameters
Type Name Description
System.String utxo

Properties

| Improve this Doc View Source

Decrypted

Has been message already decrypted?

Declaration
public bool Decrypted { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Encrypt

Encrypt the message before the send

Declaration
public bool Encrypt { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IsReceivedMessage

Was this message received or sent

Declaration
public bool IsReceivedMessage { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Partner

Communication partner

Declaration
public string Partner { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

SharedKey

If the shared key was calculated, take it from here

Declaration
[JsonIgnore]
public string SharedKey { get; set; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

Decrypt(BitcoinSecret, Boolean)

this function will decrypt the NFT if it is possile It needs the owner Private Key to create shared password which the combination of the sender public key.

Declaration
public async Task<bool> Decrypt(BitcoinSecret secret, bool decryptEvenOnSameAddress = false)
Parameters
Type Name Description
NBitcoin.BitcoinSecret secret

Owner Private Key

System.Boolean decryptEvenOnSameAddress

Set true when you have preset the partner address manually - for example encryption on same address.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

true if success

| Improve this Doc View Source

Fill(INFT)

Fill basic parameters

Declaration
public override async Task Fill(INFT NFT)
Parameters
Type Name Description
INFT NFT
Returns
Type Description
System.Threading.Tasks.Task
Overrides
CommonNFT.Fill(INFT)
| Improve this Doc View Source

GetLastData()

Get last data of this NFT

Declaration
public async Task GetLastData()
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

GetMetadata(String, String, String)

Get the NFT data for the NFT

Declaration
public override async Task<IDictionary<string, string>> GetMetadata(string address = "", string key = "", string receiver = "")
Parameters
Type Name Description
System.String address

Address of the sender

System.String key

Private key of the sender for encryption

System.String receiver

receiver of the NFT

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<System.String, System.String>>
Overrides
CommonNFT.GetMetadata(String, String, String)
| Improve this Doc View Source

GetPartner()

Load communication partner info

Declaration
public async Task GetPartner()
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

GetReceiver()

Get receiver of this message

Declaration
public async Task GetReceiver()
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

ParseOriginData(IDictionary<String, String>, GetTransactionInfoResponse)

Find and parse origin data

Declaration
public override async Task ParseOriginData(IDictionary<string, string> lastmetadata, GetTransactionInfoResponse txinfo = null)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<System.String, System.String> lastmetadata
GetTransactionInfoResponse txinfo
Returns
Type Description
System.Threading.Tasks.Task
Overrides
CommonNFT.ParseOriginData(IDictionary<String, String>, GetTransactionInfoResponse)
| Improve this Doc View Source

ParseSpecific(IDictionary<String, String>)

Parse specific parameters

Declaration
public override void ParseSpecific(IDictionary<string, string> metadata)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<System.String, System.String> metadata
Overrides
CommonNFT.ParseSpecific(IDictionary<String, String>)

Implements

INFT