add LoginWithKeycard to mobile pkg (#1372)
This commit is contained in:
parent
de269e5830
commit
a249151d05
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue