Secp256r1PrivateKey

Constructors

Link copied to clipboard
constructor(scheme: SignatureScheme = SignatureScheme.Secp256r1)
constructor(privateKey: String)
constructor(privateKey: ByteArray)

Properties

Link copied to clipboard
open override val data: ByteArray
Link copied to clipboard
open override val publicKey: Secp256r1PublicKey

Functions

Link copied to clipboard
open fun export(humanReadablePart: String = SUI_PRIVATE_KEY_PREFIX): String

Encodes the private key using Bech32 with the specified human-readable part.

Link copied to clipboard
open override fun sign(data: ByteArray): Result<ByteArray, Exception>