Secp256r1VerifyingKey
Namespace: IotaSdk
public class Secp256r1VerifyingKey : ISecp256r1VerifyingKey, System.IEquatable`1[[IotaSdk.Secp256r1VerifyingKey, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable
Inheritance Object → Secp256r1VerifyingKey
Implements ISecp256r1VerifyingKey, IEquatable<Secp256r1VerifyingKey>, IDisposable
Attributes NullableContextAttribute, NullableAttribute
Constructors
Secp256r1VerifyingKey(UInt64)
public Secp256r1VerifyingKey(ulong pointer)
Parameters
pointer UInt64
Secp256r1VerifyingKey(Secp256r1PublicKey)
public Secp256r1VerifyingKey(Secp256r1PublicKey publicKey)
Parameters
publicKey Secp256r1PublicKey
Methods
Destroy()
public void Destroy()
Dispose()
public void Dispose()
PublicKey()
public Secp256r1PublicKey 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[], Secp256r1Signature)
public void Verify(Byte[] message, Secp256r1Signature signature)
Parameters
message Byte[]
signature Secp256r1Signature
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(Secp256r1VerifyingKey)
public bool Equals(Secp256r1VerifyingKey? other)
Parameters
other Secp256r1VerifyingKey?
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 Secp256r1VerifyingKey FromDer(Byte[] bytes)
Parameters
bytes Byte[]
Returns
Exceptions
FromPem(String)
Deserialize public key from PEM.
public static Secp256r1VerifyingKey FromPem(string s)
Parameters
s String