mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-28 08:56:20 +02:00
Making generateID public for testing
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user