Skip to main content

Ed25519PublicKey

Namespace: IotaSdk

An ed25519 public key.

BCS

The BCS serialized form for this type is defined by the following ABNF:

ed25519-public-key = 32OCTET
public class Ed25519PublicKey : IEd25519PublicKey, System.IEquatable`1[[IotaSdk.Ed25519PublicKey, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable

Inheritance ObjectEd25519PublicKey
Implements IEd25519PublicKey, IEquatable<Ed25519PublicKey>, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors

Ed25519PublicKey(UInt64)

public Ed25519PublicKey(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 an Ed25519PublicKey by hashing the bytes of the public key with no prefix flag.

hash(32-byte ed25519 public key)

public Address DeriveAddress()

Returns

Address

Scheme()

Returns the signature scheme for this public key.

public SignatureScheme Scheme()

Returns

SignatureScheme

ToBytes()

public Byte[] ToBytes()

Returns

Byte[]

ToFlaggedBytes()

Returns the bytes with signature scheme flag prepended.

public Byte[] ToFlaggedBytes()

Returns

Byte[]

Equals(Ed25519PublicKey)

public bool Equals(Ed25519PublicKey? other)

Parameters

other Ed25519PublicKey?

Returns

Boolean

Equals(Object)

public override bool Equals(object? obj)

Parameters

obj Object?

Returns

Boolean

GetHashCode()

public override int GetHashCode()

Returns

Int32

FromBytes(Byte[])

public static Ed25519PublicKey FromBytes(Byte[] bytes)

Parameters

bytes Byte[]

Returns

Ed25519PublicKey

Exceptions

SdkFfiException

FromStr(String)

public static Ed25519PublicKey FromStr(string s)

Parameters

s String

Returns

Ed25519PublicKey

Exceptions

SdkFfiException

Random()

public static Ed25519PublicKey Random()

Returns

Ed25519PublicKey