Table of Contents

Class OfferCodec

Namespace
NArk.ArkadeIntents.Assets
Assembly
NArk.ArkadeIntents.dll

Wire format for Arkade Offers: an Extension packet payload of [type:1B][length:2B BE][value] TLV records. Byte-compatible with the arkade wallet's encodeOffer/decodeOffer.

public static class OfferCodec
Inheritance
OfferCodec
Inherited Members

Fields

OfferPacketType

Extension packet type tag for Arkade offers.

public const byte OfferPacketType = 3

Field Value

byte

Methods

Decode(byte[])

Parse a TLV packet payload back into an offer. Throws on malformed or unknown records.

public static Offer Decode(byte[] data)

Parameters

data byte[]

Returns

Offer

Encode(Offer)

Serialize an offer to its TLV packet payload.

public static byte[] Encode(Offer offer)

Parameters

offer Offer

Returns

byte[]