Skip to content

Commit

Permalink
Add Decrypt to mobile interface (ethereum#1221)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbandura authored Nov 10, 2020
1 parent 7c5ddbd commit 15714df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Binary file modified geth-sources.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions mobile/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ func (ks *KeyStore) GetAccounts() *Accounts {
return &Accounts{ks.keystore.Accounts()}
}

// Decrypt decrypts an ECIES ciphertext.
func (ks *KeyStore) Decrypt(account *Account, cipher []byte) ([]byte, error) {
return ks.keystore.Decrypt(account.account, cipher, nil, nil)
}

// DeleteAccount deletes the key matched by account if the passphrase is correct.
// If a contains no filename, the address must match a unique key.
func (ks *KeyStore) DeleteAccount(account *Account, passphrase string) error {
Expand Down

0 comments on commit 15714df

Please sign in to comment.