Skip to main content

ISecp256r1PrivateKey

Namespace: IotaSdk

public interface ISecp256r1PrivateKey : System.IEquatable`1[[IotaSdk.Secp256r1PrivateKey, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]

Implements IEquatable<Secp256r1PrivateKey>
Attributes NullableContextAttribute

Methods​

PublicKey()​

Get the public key corresponding to this private key.

Secp256r1PublicKey PublicKey()

Returns​

Secp256r1PublicKey

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 this private key as flag || privkey in Bech32 starting with "iotaprivkey" to a string.

string ToBech32()

Returns​

String

Exceptions​

SdkFfiException

ToBytes()​

Serialize this private key to 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 PEM-encoded PKCS#8

string ToPem()

Returns​

String

Exceptions​

SdkFfiException

TrySign(Byte[])​

Sign a message and return a Secp256r1Signature.

Secp256r1Signature TrySign(Byte[] message)

Parameters​

message Byte[]

Returns​

Secp256r1Signature

Exceptions​

SdkFfiException

TrySignSimple(Byte[])​

Sign a message and return a SimpleSignature.

SimpleSignature TrySignSimple(Byte[] message)

Parameters​

message Byte[]

Returns​

SimpleSignature

Exceptions​

SdkFfiException

TrySignUser(Byte[])​

Sign a message and return a UserSignature.

UserSignature TrySignUser(Byte[] message)

Parameters​

message Byte[]

Returns​

UserSignature

Exceptions​

SdkFfiException

VerifyingKey()​

Secp256r1VerifyingKey VerifyingKey()

Returns​

Secp256r1VerifyingKey