Improves the name of the NIP01 Crypto object

This commit is contained in:
Vitor Pamplona
2026-02-18 11:29:56 -05:00
parent 907ff6e844
commit 64c8c0edfd
21 changed files with 64 additions and 63 deletions
@@ -20,7 +20,7 @@
*/
package com.vitorpamplona.quartz.nip55AndroidSigner
import com.vitorpamplona.quartz.nip01Core.crypto.Nip01
import com.vitorpamplona.quartz.nip01Core.crypto.Nip01Crypto
import com.vitorpamplona.quartz.utils.RandomInstance
import com.vitorpamplona.quartz.utils.sha256.sha256
@@ -28,4 +28,4 @@ fun signString(
message: String,
privKey: ByteArray,
nonce: ByteArray = RandomInstance.bytes(32),
): ByteArray = Nip01.sign(sha256(message.toByteArray()), privKey, nonce)
): ByteArray = Nip01Crypto.sign(sha256(message.toByteArray()), privKey, nonce)