Show / Hide Table of Contents

Class SignatureObjectConverter

Reads and writes a SignatureObject in its wire shape: SigningPubKey and TxnSignature, or Signers with each entry wrapped in a Signer object.

Inheritance
object
JsonConverter
JsonConverter<SignatureObject>
SignatureObjectConverter
Namespace: Xrpl.Client.Json.Converters
Assembly: Xrpl.dll
Syntax
public class SignatureObjectConverter : JsonConverter<SignatureObject>
Remarks

Reading does not enforce either protocol form: a Batch inner transaction carries the field as an unsigned marker (an empty object, or an empty SigningPubKey), and that has to write back as it came. ValidateShape() checks a signed one.

Methods

| Edit this page View Source

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type SignatureObject.

Declaration
public override SignatureObject Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonReader reader

The reader.

Type typeToConvert

The type to convert.

JsonSerializerOptions options

An object that specifies serialization options to use.

Returns
Type Description
SignatureObject

The converted value.

Overrides
System.Text.Json.Serialization.JsonConverter<Xrpl.Models.Transactions.SignatureObject>.Read(ref System.Text.Json.Utf8JsonReader, System.Type, System.Text.Json.JsonSerializerOptions)
| Edit this page View Source

Write(Utf8JsonWriter, SignatureObject, JsonSerializerOptions)

Writes a specified value as JSON.

Declaration
public override void Write(Utf8JsonWriter writer, SignatureObject value, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonWriter writer

The writer to write to.

SignatureObject value

The value to convert to JSON.

JsonSerializerOptions options

An object that specifies serialization options to use.

Overrides
JsonConverter<SignatureObject>.Write(Utf8JsonWriter, SignatureObject, JsonSerializerOptions)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX