mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-10 22:03:38 +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)
|
return makeJsonForId(pubKey, createdAt, kind, tags, content)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun generateId(): String {
|
fun generateId(): String {
|
||||||
return CryptoUtils.sha256(makeJsonForId().toByteArray()).toHexKey()
|
return CryptoUtils.sha256(makeJsonForId().toByteArray()).toHexKey()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user