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 Object → Secp256k1VerifyingKey
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
ToDer()
Serialize this public key as DER-encoded data
public Byte[] ToDer()
Returns
Exceptions
ToPem()
Serialize this public key into PEM
public string ToPem()
Returns
Exceptions
Verify(Byte[], Secp256k1Signature)
public void Verify(Byte[] message, Secp256k1Signature signature)
Parameters
message Byte[]
signature Secp256k1Signature
Exceptions
VerifySimple(Byte[], SimpleSignature)
public void VerifySimple(Byte[] message, SimpleSignature signature)
Parameters
message Byte[]
signature SimpleSignature
Exceptions
VerifyUser(Byte[], UserSignature)
public void VerifyUser(Byte[] message, UserSignature signature)
Parameters
message Byte[]
signature UserSignature
Exceptions
Equals(Secp256k1VerifyingKey)
public bool Equals(Secp256k1VerifyingKey? other)
Parameters
other Secp256k1VerifyingKey?
Returns
Equals(Object)
public override bool Equals(object? obj)
Parameters
obj Object?
Returns
FromDer(Byte[])
Deserialize public key from ASN.1 DER-encoded data (binary format).
public static Secp256k1VerifyingKey FromDer(Byte[] bytes)
Parameters
bytes Byte[]
Returns
Exceptions
FromPem(String)
Deserialize public key from PEM.
public static Secp256k1VerifyingKey FromPem(string s)
Parameters
s String