Skip to main content

ISimpleKeypair

Namespace: IotaSdk

public interface ISimpleKeypair

Attributes NullableContextAttribute

Methods

PublicKey()

PublicKey PublicKey()

Returns

PublicKey

Scheme()

SignatureScheme Scheme()

Returns

SignatureScheme

SignPersonalMessage(PersonalMessage)

Sign a personal message and return a UserSignature.

UserSignature SignPersonalMessage(PersonalMessage message)

Parameters

message PersonalMessage

Returns

UserSignature

Exceptions

SdkFfiException

SignTransaction(Transaction)

Sign a transaction and return a UserSignature.

UserSignature SignTransaction(Transaction transaction)

Parameters

transaction Transaction

Returns

UserSignature

Exceptions

SdkFfiException

ToBech32()

Encode a SimpleKeypair as flag || privkey in Bech32 starting with "iotaprivkey" to a string. Note that the pubkey is not encoded.

string ToBech32()

Returns

String

Exceptions

SdkFfiException

ToBytes()

Encode a SimpleKeypair as flag || privkey in bytes

Byte[] ToBytes()

Returns

Byte[]

ToDer()

Serialize this private key as DER-encoded PKCS#8

Byte[] ToDer()

Returns

Byte[]

Exceptions

SdkFfiException

ToPem()

Serialize this private key as DER-encoded PKCS#8

string ToPem()

Returns

String

Exceptions

SdkFfiException

TrySign(Byte[])

SimpleSignature TrySign(Byte[] message)

Parameters

message Byte[]

Returns

SimpleSignature

Exceptions

SdkFfiException

TrySignUser(Byte[])

UserSignature TrySignUser(Byte[] message)

Parameters

message Byte[]

Returns

UserSignature

Exceptions

SdkFfiException

VerifyingKey()

SimpleVerifyingKey VerifyingKey()

Returns

SimpleVerifyingKey