add LoginWithKeycard to mobile pkg (#1372)
This commit is contained in:
parent
de269e5830
commit
a249151d05
|
@ -61,7 +61,7 @@ pipeline {
|
||||||
|
|
||||||
stage('Archive') {
|
stage('Archive') {
|
||||||
steps { script {
|
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/ios', ios.number)
|
||||||
lib.copyArts('status-go/platforms/android', android.number)
|
lib.copyArts('status-go/platforms/android', android.number)
|
||||||
lib.copyArts('status-go/platforms/linux', linux.number)
|
lib.copyArts('status-go/platforms/linux', linux.number)
|
||||||
|
|
|
@ -323,6 +323,13 @@ func Login(address, password string) string {
|
||||||
return makeJSONResponse(err)
|
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.
|
// Logout is equivalent to clearing whisper identities.
|
||||||
func Logout() string {
|
func Logout() string {
|
||||||
err := statusBackend.Logout()
|
err := statusBackend.Logout()
|
||||||
|
|
Loading…
Reference in New Issue