Secp256r1PublicKey
Namespace: IotaSdk
A secp256r1 public key.
BCS
The BCS serialized form for this type is defined by the following ABNF:
secp256r1-public-key = 33OCTET
public class Secp256r1PublicKey : ISecp256r1PublicKey, System.IEquatable`1[[IotaSdk.Secp256r1PublicKey, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable
Inheritance Object → Secp256r1PublicKey
Implements ISecp256r1PublicKey, IEquatable<Secp256r1PublicKey>, IDisposable
Attributes NullableContextAttribute, NullableAttribute
Constructors
Secp256r1PublicKey(UInt64)
public Secp256r1PublicKey(ulong pointer)
Parameters
pointer UInt64
Methods
Destroy()
public void Destroy()
Dispose()
public void Dispose()
DeriveAddress()
Derive an Address from this Public Key
An Address can be derived from a Secp256r1PublicKey by hashing the
bytes of the public key prefixed with the Secp256r1
SignatureScheme flag (0x02).
hash( 0x02 || 33-byte secp256r1 public key)
public Address DeriveAddress()
Returns
Scheme()
Returns the signature scheme for this public key.
public SignatureScheme Scheme()
Returns
ToBytes()
public Byte[] ToBytes()
Returns
ToFlaggedBytes()
Returns the bytes with signature scheme flag prepended
public Byte[] ToFlaggedBytes()
Returns
Equals(Secp256r1PublicKey)
public bool Equals(Secp256r1PublicKey? other)
Parameters
other Secp256r1PublicKey?
Returns
Equals(Object)
public override bool Equals(object? obj)
Parameters
obj Object?
Returns
GetHashCode()
public override int GetHashCode()
Returns
FromBytes(Byte[])
public static Secp256r1PublicKey FromBytes(Byte[] bytes)
Parameters
bytes Byte[]
Returns
Exceptions
FromStr(String)
public static Secp256r1PublicKey FromStr(string s)
Parameters
s String
Returns
Exceptions
Random()
public static Secp256r1PublicKey Random()