Skip to main content

SimpleVerifyingKey

Namespace: IotaSdk

public class SimpleVerifyingKey : ISimpleVerifyingKey, System.IEquatable`1[[IotaSdk.SimpleVerifyingKey, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable

Inheritance ObjectSimpleVerifyingKey
Implements ISimpleVerifyingKey, IEquatable<SimpleVerifyingKey>, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors

SimpleVerifyingKey(UInt64)

public SimpleVerifyingKey(ulong pointer)

Parameters

pointer UInt64

Methods

Destroy()

public void Destroy()

Dispose()

public void Dispose()

PublicKey()

public PublicKey PublicKey()

Returns

PublicKey

Scheme()

public SignatureScheme Scheme()

Returns

SignatureScheme

ToDer()

Serialize this private key as DER-encoded PKCS#8

public Byte[] ToDer()

Returns

Byte[]

Exceptions

SdkFfiException

ToPem()

Serialize this private key as DER-encoded PKCS#8

public string ToPem()

Returns

String

Exceptions

SdkFfiException

Verify(Byte[], SimpleSignature)

public void Verify(Byte[] message, SimpleSignature signature)

Parameters

message Byte[]

signature SimpleSignature

Exceptions

SdkFfiException

Equals(SimpleVerifyingKey)

public bool Equals(SimpleVerifyingKey? other)

Parameters

other SimpleVerifyingKey?

Returns

Boolean

Equals(Object)

public override bool Equals(object? obj)

Parameters

obj Object?

Returns

Boolean

FromDer(Byte[])

Deserialize PKCS#8 private key from ASN.1 DER-encoded data (binary format).

public static SimpleVerifyingKey FromDer(Byte[] bytes)

Parameters

bytes Byte[]

Returns

SimpleVerifyingKey

Exceptions

SdkFfiException

FromPem(String)

Deserialize PKCS#8-encoded private key from PEM.

public static SimpleVerifyingKey FromPem(string s)

Parameters

s String

Returns

SimpleVerifyingKey

Exceptions

SdkFfiException