Generated by DocFX

Class OwnershipVerifier

Class provides NFT ownership verification

Inheritance
System.Object
OwnershipVerifier
Inherited Members
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 static class OwnershipVerifier

Methods

| Improve this Doc View Source

CreateMessage(String)

Create message: TxId + UTCTime.RoundToMinutes()

Declaration
public static string CreateMessage(string txid)
Parameters
Type Name Description
System.String txid

NFT Transaction Id

Returns
Type Description
System.String
| Improve this Doc View Source

GetCode(String, BitcoinSecret)

Get signed message - version with alredy known BitcoinSecret to save time

Declaration
public static async Task<(bool, string)> GetCode(string txid, BitcoinSecret key)
Parameters
Type Name Description
System.String txid
NBitcoin.BitcoinSecret key
Returns
Type Description
System.Threading.Tasks.Task<System.ValueTuple<System.Boolean, System.String>>
| Improve this Doc View Source

GetCode(String, EncryptionKey)

Get signed message

Declaration
public static async Task<(bool, string)> GetCode(string txid, EncryptionKey key)
Parameters
Type Name Description
System.String txid
EncryptionKey key
Returns
Type Description
System.Threading.Tasks.Task<System.ValueTuple<System.Boolean, System.String>>
| Improve this Doc View Source

GetCodeInDto(String, BitcoinSecret)

Returns result of verification as object - version with alredy known BitcoinSecret to save time

Declaration
public static async Task<OwnershipVerificationCodeDto> GetCodeInDto(string txid, BitcoinSecret key)
Parameters
Type Name Description
System.String txid
NBitcoin.BitcoinSecret key
Returns
Type Description
System.Threading.Tasks.Task<OwnershipVerificationCodeDto>
| Improve this Doc View Source

GetCodeInDto(String, EncryptionKey)

Returns result of verification as object

Declaration
public static async Task<OwnershipVerificationCodeDto> GetCodeInDto(string txid, EncryptionKey key)
Parameters
Type Name Description
System.String txid
EncryptionKey key
Returns
Type Description
System.Threading.Tasks.Task<OwnershipVerificationCodeDto>
| Improve this Doc View Source

GetQRCode(String, BitcoinSecret)

Returns QR code - not implemented now

Declaration
public static async Task<(bool, (OwnershipVerificationCodeDto, byte[]))> GetQRCode(string txid, BitcoinSecret key)
Parameters
Type Name Description
System.String txid
NBitcoin.BitcoinSecret key
Returns
Type Description
System.Threading.Tasks.Task<System.ValueTuple<System.Boolean, System.ValueTuple<OwnershipVerificationCodeDto, System.Byte[]>>>
| Improve this Doc View Source

VerifyOwner(OwnershipVerificationCodeDto)

Verify owner of the NFT based on the signature

Declaration
public static async Task<OwnershipVerificationResult> VerifyOwner(OwnershipVerificationCodeDto dto)
Parameters
Type Name Description
OwnershipVerificationCodeDto dto
Returns
Type Description
System.Threading.Tasks.Task<OwnershipVerificationResult>