Table of Contents

Class PublicKey

Namespace
Aptos
Assembly
Aptos.dll
[JsonConverter(typeof(PublicKeyConverter))]
public abstract class PublicKey : Serializable
Inheritance
PublicKey
Derived
Inherited Members

Constructors

PublicKey(PublicKeyVariant)

protected PublicKey(PublicKeyVariant type)

Parameters

type PublicKeyVariant

Fields

Type

[JsonProperty("type")]
public readonly PublicKeyVariant Type

Field Value

PublicKeyVariant

Properties

Value

[JsonProperty("value")]
public abstract Hex Value { get; }

Property Value

Hex

Methods

Deserialize(Deserializer)

public static PublicKey Deserialize(Deserializer d)

Parameters

d Deserializer

Returns

PublicKey

ToByteArray()

public abstract byte[] ToByteArray()

Returns

byte[]

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

VerifySignature(byte[], Signature)

public abstract bool VerifySignature(byte[] message, Signature signature)

Parameters

message byte[]
signature Signature

Returns

bool

VerifySignature(string, Signature)

public bool VerifySignature(string message, Signature signature)

Parameters

message string
signature Signature

Returns

bool