Class NostrRoomProof
java.lang.Object
org.ngengine.nostr4j.utils.NostrRoomProof
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringcomputeId(NostrPublicKey roomPubkey, Instant createdAt, int kind, NostrPublicKey eventPubkey, String challenge) static org.ngengine.platform.AsyncTask<String> sign(NostrKeyPair roomKeyPair, Instant createdAt, int kind, NostrPublicKey eventPubkey, String challenge) static booleanverify(NostrPublicKey roomPubkey, Instant createdAt, int kind, NostrPublicKey eventPubkey, String challenge, String expectedId, String signature)
-
Method Details
-
computeId
public static String computeId(NostrPublicKey roomPubkey, Instant createdAt, int kind, NostrPublicKey eventPubkey, String challenge) -
sign
public static org.ngengine.platform.AsyncTask<String> sign(NostrKeyPair roomKeyPair, Instant createdAt, int kind, NostrPublicKey eventPubkey, String challenge) -
verify
public static boolean verify(NostrPublicKey roomPubkey, Instant createdAt, int kind, NostrPublicKey eventPubkey, String challenge, String expectedId, String signature)
-