Skip to content

Commit

Permalink
Added comments about different signing types.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobilekosmos committed Oct 3, 2021
1 parent fd22aa0 commit 445f5f4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/src/main/kotlin/org/walletconnect/Session.kt
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,18 @@ interface Session {
val data: String
) : MethodCall(id)

/**
* For the different sign types refer to https://docs.metamask.io/guide/signing-data.html#a-brief-history.
*/
data class PersonalSignMessage(val id: Long, val address: String, val message: String) : MethodCall(id)
/**
* Makes the signing message unreadable to the user, use PersonalSignMessage or SignTypedDataMessage instead.
* For the different sign types refer to https://docs.metamask.io/guide/signing-data.html#a-brief-history.
* */
data class SignMessage(val id: Long, val address: String, val message: String) : MethodCall(id)
/**
* For the different sign types refer to https://docs.metamask.io/guide/signing-data.html#a-brief-history.
*/
data class SignTypedDataMessage(val id: Long, val address: String, val message: String) : MethodCall(id)

data class Custom(val id: Long, val method: String, val params: List<*>?) : MethodCall(id)
Expand Down

0 comments on commit 445f5f4

Please sign in to comment.