mirror of
https://github.com/muun/recovery.git
synced 2025-11-11 06:20:16 -05:00
fix vendor folder
This commit is contained in:
4
vendor/github.com/muun/libwallet/keycrypter.go
generated
vendored
4
vendor/github.com/muun/libwallet/keycrypter.go
generated
vendored
@@ -64,7 +64,7 @@ func KeyEncrypt(key *HDPrivateKey, passphrase string) (string, error) {
|
||||
}
|
||||
|
||||
// KeyDecrypt decrypts a key encrypted with KeyEncrypt
|
||||
func KeyDecrypt(value, passphrase string) (*DecryptedKey, error) {
|
||||
func KeyDecrypt(value, passphrase string, network *Network) (*DecryptedKey, error) {
|
||||
|
||||
elements := strings.Split(value, seperator)
|
||||
|
||||
@@ -126,7 +126,7 @@ func KeyDecrypt(value, passphrase string) (*DecryptedKey, error) {
|
||||
encodedPrivateKey := string(decryptedBytes[:])
|
||||
path := string(pathBytes[:])
|
||||
|
||||
privateKey, err := NewHDPrivateKeyFromString(encodedPrivateKey, path)
|
||||
privateKey, err := NewHDPrivateKeyFromString(encodedPrivateKey, path, network)
|
||||
if err != nil {
|
||||
return nil, errors.New("KeyCrypter: failed to decode pk: " + err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user