add LoginWithKeycard to mobile pkg (#1372)

This commit is contained in:
Andrea Franz 2019-02-11 21:20:59 +01:00 committed by Igor Mandrigin
parent de269e5830
commit a249151d05
3 changed files with 9 additions and 2 deletions

View File

@ -1 +1 @@
0.21.0g-beta.1
0.21.0g-beta.2

View File

@ -61,7 +61,7 @@ pipeline {
stage('Archive') {
steps { script {
sh("rm -f ${env.RELEASE_DIRECTORY}/*")
sh("rm -fr ${env.RELEASE_DIRECTORY}/*")
lib.copyArts('status-go/platforms/ios', ios.number)
lib.copyArts('status-go/platforms/android', android.number)
lib.copyArts('status-go/platforms/linux', linux.number)

View File

@ -323,6 +323,13 @@ func Login(address, password string) string {
return makeJSONResponse(err)
}
// LoginWithKeycard initializes an account with a chat key and encryption key used for PFS.
// It purges all the previous identities from Whisper, and injects the key as shh identity.
func LoginWithKeycard(chatKeyData, encryptionKeyData string) string {
err := statusBackend.InjectChatAccount(chatKeyData, encryptionKeyData)
return makeJSONResponse(err)
}
// Logout is equivalent to clearing whisper identities.
func Logout() string {
err := statusBackend.Logout()