Skip to main content

Bls12381PublicKey

Namespace: IotaSdk

A bls12381 min-sig public key.

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

Due to historical reasons, even though a min-sig Bls12381PublicKey has a fixed-length of 96, IOTA's binary representation of a min-sig Bls12381PublicKey is prefixed with its length meaning its serialized binary form (in bcs) is 97 bytes long vs a more compact 96 bytes.

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

Inheritance Object → Bls12381PublicKey
Implements IBls12381PublicKey, IEquatable<Bls12381PublicKey>, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

Bls12381PublicKey(UInt64)​

public Bls12381PublicKey(ulong pointer)

Parameters​

pointer UInt64

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

ToBcs()​

Convert this type to BCS encoded bytes.

public Byte[] ToBcs()

Returns​

Byte[]

Exceptions​

SdkFfiException

ToBytes()​

public Byte[] ToBytes()

Returns​

Byte[]

ToDisplayString()​

Render this type as human-readable text.

Some types also print this through the binding's native string conversion; this method is the spelling every object type has.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.

public string ToDisplayString()

Returns​

String

ToJson()​

Convert this type to a JSON encoded string.

public string ToJson()

Returns​

String

Exceptions​

SdkFfiException

Equals(Bls12381PublicKey)​

public bool Equals(Bls12381PublicKey? other)

Parameters​

other Bls12381PublicKey?

Returns​

Boolean

Equals(Object)​

public override bool Equals(object? obj)

Parameters​

obj Object?

Returns​

Boolean

GetHashCode()​

public override int GetHashCode()

Returns​

Int32

FromBcs(Byte[])​

Create this type from BCS encoded bytes.

public static Bls12381PublicKey FromBcs(Byte[] bcs)

Parameters​

bcs Byte[]

Returns​

Bls12381PublicKey

Exceptions​

SdkFfiException

FromBytes(Byte[])​

public static Bls12381PublicKey FromBytes(Byte[] bytes)

Parameters​

bytes Byte[]

Returns​

Bls12381PublicKey

Exceptions​

SdkFfiException

FromJson(String)​

Create this type from a JSON encoded string.

public static Bls12381PublicKey FromJson(string json)

Parameters​

json String

Returns​

Bls12381PublicKey

Exceptions​

SdkFfiException

FromStr(String)​

public static Bls12381PublicKey FromStr(string s)

Parameters​

s String

Returns​

Bls12381PublicKey

Exceptions​

SdkFfiException

Random()​

public static Bls12381PublicKey Random()

Returns​

Bls12381PublicKey