Skip to main content

Secp256k1VerifyingKey

Namespace: IotaSdk

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

Inheritance ObjectSecp256k1VerifyingKey
Implements ISecp256k1VerifyingKey, IEquatable<Secp256k1VerifyingKey>, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors

Secp256k1VerifyingKey(UInt64)

public Secp256k1VerifyingKey(ulong pointer)

Parameters

pointer UInt64

Secp256k1VerifyingKey(Secp256k1PublicKey)

public Secp256k1VerifyingKey(Secp256k1PublicKey publicKey)

Parameters

publicKey Secp256k1PublicKey

Methods

Destroy()

public void Destroy()

Dispose()

public void Dispose()

PublicKey()

public Secp256k1PublicKey PublicKey()

Returns

Secp256k1PublicKey

ToDer()

Serialize this public key as DER-encoded data

public Byte[] ToDer()

Returns

Byte[]

Exceptions

SdkFfiException

ToPem()

Serialize this public key into PEM

public string ToPem()

Returns

String

Exceptions

SdkFfiException

Verify(Byte[], Secp256k1Signature)

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

Parameters

message Byte[]

signature Secp256k1Signature

Exceptions

SdkFfiException

VerifySimple(Byte[], SimpleSignature)

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

Parameters

message Byte[]

signature SimpleSignature

Exceptions

SdkFfiException

VerifyUser(Byte[], UserSignature)

public void VerifyUser(Byte[] message, UserSignature signature)

Parameters

message Byte[]

signature UserSignature

Exceptions

SdkFfiException

Equals(Secp256k1VerifyingKey)

public bool Equals(Secp256k1VerifyingKey? other)

Parameters

other Secp256k1VerifyingKey?

Returns

Boolean

Equals(Object)

public override bool Equals(object? obj)

Parameters

obj Object?

Returns

Boolean

FromDer(Byte[])

Deserialize public key from ASN.1 DER-encoded data (binary format).

public static Secp256k1VerifyingKey FromDer(Byte[] bytes)

Parameters

bytes Byte[]

Returns

Secp256k1VerifyingKey

Exceptions

SdkFfiException

FromPem(String)

Deserialize public key from PEM.

public static Secp256k1VerifyingKey FromPem(string s)

Parameters

s String

Returns

Secp256k1VerifyingKey

Exceptions

SdkFfiException