Class VRFPublicKeyFormatterMsgPack
Implements
IMessagePackFormatter<VRFPublicKey>
Inherited Members
Namespace: Algorand.Algod.Model.Converters.MsgPack
Assembly: Algorand.dll
Syntax
public class VRFPublicKeyFormatterMsgPack : IMessagePackFormatter<VRFPublicKey?>
Methods
| Edit this page View SourceDeserialize(ref MessagePackReader, MessagePackSerializerOptions)
Deserializes a value.
Declaration
public VRFPublicKey? Deserialize(ref MessagePackReader reader, MessagePackSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| MessagePackReader | reader | The reader to deserialize from. |
| MessagePackSerializerOptions | options | The serialization settings to use, including the resolver to use to obtain formatters for types that make up the composite type VRFPublicKey. |
Returns
| Type | Description |
|---|---|
| VRFPublicKey | The deserialized value. |
Serialize(ref MessagePackWriter, VRFPublicKey?, MessagePackSerializerOptions)
Serializes a value.
Declaration
public void Serialize(ref MessagePackWriter writer, VRFPublicKey? value, MessagePackSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| MessagePackWriter | writer | The writer to use when serializing the value. |
| VRFPublicKey | value | The value to be serialized. |
| MessagePackSerializerOptions | options | The serialization settings to use, including the resolver to use to obtain formatters for types that make up the composite type VRFPublicKey. |
Implements
MessagePack.Formatters.IMessagePackFormatter<T>