Ksui
Toggle table of contents
2.2.1-SNAPSHOT
common
Platform filter
common
Switch theme
Search in API
Ksui
Ksui
/
xyz.mcxross.ksui.core.crypto
/
Secp256r1PrivateKey
Secp256r1Private
Key
class
Secp256r1PrivateKey
(
privateKey
:
ByteArray
)
:
PrivateKey
Members
Constructors
Secp256r1Private
Key
Link copied to clipboard
constructor
(
scheme
:
SignatureScheme
=
SignatureScheme.Secp256r1
)
constructor
(
privateKey
:
String
)
constructor
(
privateKey
:
ByteArray
)
Properties
data
Link copied to clipboard
open
override
val
data
:
ByteArray
public
Key
Link copied to clipboard
open
override
val
publicKey
:
Secp256r1PublicKey
Functions
export
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.
sign
Link copied to clipboard
open
override
fun
sign
(
data
:
ByteArray
)
:
Result
<
ByteArray
,
Exception
>