Class AssetId
34-byte asset identifier: 32-byte genesis txid + uint16 group index. Binary layout: [32B txid][2B groupIndex LE]
public class AssetId
- Inheritance
-
AssetId
- Inherited Members
Properties
GroupIndex
public ushort GroupIndex { get; }
Property Value
Txid
public byte[] Txid { get; }
Property Value
- byte[]
Methods
Create(string, ushort)
public static AssetId Create(string txidHex, ushort groupIndex)
Parameters
Returns
FromBytes(byte[])
public static AssetId FromBytes(byte[] buf)
Parameters
bufbyte[]
Returns
FromReader(BufferReader)
public static AssetId FromReader(BufferReader reader)
Parameters
readerBufferReader
Returns
FromString(string)
public static AssetId FromString(string hex)
Parameters
hexstring
Returns
Serialize()
public byte[] Serialize()
Returns
- byte[]
SerializeTo(BufferWriter)
public void SerializeTo(BufferWriter writer)
Parameters
writerBufferWriter
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Validate()
public void Validate()