Making generateID public for testing

This commit is contained in:
Vitor Pamplona 2024-05-16 13:05:15 -04:00
parent d9de0d2798
commit 738187d32b

View File

@ -316,7 +316,7 @@ open class Event(
return makeJsonForId(pubKey, createdAt, kind, tags, content)
}
private fun generateId(): String {
fun generateId(): String {
return CryptoUtils.sha256(makeJsonForId().toByteArray()).toHexKey()
}