nonJvmMain.cash.z.ecc.android.bip39.ToSha256.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-bip39 Show documentation
Show all versions of kotlin-bip39 Show documentation
A concise implementation of BIP-0039 in Kotlin.
The newest version!
package cash.z.ecc.android.bip39
import okio.ByteString.Companion.toByteString
internal actual fun ByteArray.toSha256(): ByteArray = this.toByteString().sha256().toByteArray()