Skip to content

Commit 9043860

Browse files
authored
fix: make passphrase optional for Unlock (#119)
* fix: make passphrase optional for Unlock * CHANGELOG
1 parent 86510da commit 9043860

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
3939

4040
### Improvements
4141

42+
* [#119](https://github.com/babylonlabs-io/covenant-emulator/pull/119) Make passphrase for Unlock optional.
4243
* [#116](https://github.com/babylonlabs-io/covenant-emulator/pull/116) Add health check to prometheus server.
4344
* [#117](https://github.com/babylonlabs-io/covenant-emulator/pull/117) Add health check on startup, increase gas adjustment and update docs.
4445

covenant-signer/signerservice/types/unlock.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
package types
22

3+
// UnlockRequest represents a request to unlock the key.
4+
// Note: When using the file keyring backend, the passphrase will be prompted
5+
// interactively in the terminal, so it doesn't need to be included in this request.
36
type UnlockRequest struct {
4-
Passphrase string `json:"passphrase"`
7+
Passphrase string `json:"passphrase,omitempty"`
58
}
69

710
type UnlockResponse struct{}

0 commit comments

Comments
 (0)