Table of Contents

Class AssetId

Namespace
NArk.Core.Assets
Assembly
NArk.Core.dll

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

ushort

Txid

public byte[] Txid { get; }

Property Value

byte[]

Methods

Create(string, ushort)

public static AssetId Create(string txidHex, ushort groupIndex)

Parameters

txidHex string
groupIndex ushort

Returns

AssetId

FromBytes(byte[])

public static AssetId FromBytes(byte[] buf)

Parameters

buf byte[]

Returns

AssetId

FromReader(BufferReader)

public static AssetId FromReader(BufferReader reader)

Parameters

reader BufferReader

Returns

AssetId

FromString(string)

public static AssetId FromString(string hex)

Parameters

hex string

Returns

AssetId

Serialize()

public byte[] Serialize()

Returns

byte[]

SerializeTo(BufferWriter)

public void SerializeTo(BufferWriter writer)

Parameters

writer BufferWriter

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()