Skip to content

Commit

Permalink
feat: export arePrivateKeysLocked in api
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejborstnik committed Apr 2, 2024
1 parent 6cee39e commit 1de6179
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions features/keychain/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const createKeychainApi = ({ keychain }) => {
return {
keychain: {
exportKey: (...args) => keychain.exportKey(...args),
arePrivateKeysLocked: () => keychain.arePrivateKeysLocked(),
sodium: {
signDetached: keychain.sodium.signDetached,
getKeysFromSeed: (...args) =>
Expand Down
2 changes: 1 addition & 1 deletion features/keychain/module/keychain.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class Keychain {
assert(!this.#privateKeysAreLocked, 'private keys are locked')
}

hasLockedPrivateKeys() {
arePrivateKeysLocked() {
return this.#privateKeysAreLocked
}

Expand Down

0 comments on commit 1de6179

Please sign in to comment.