Skip to content

Commit 42df0af

Browse files
authored
Avoid logging sensitive derivation details (#275)
1 parent f6a2b48 commit 42df0af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/examples/create_wallet/create_wallet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func main() {
6868
// The DeriveChildFromPath method handles string paths.
6969
derivedKey, err := masterKey.DeriveChildFromPath(derivationPathStr)
7070
if err != nil {
71-
log.Fatalf("Failed to derive key for path %s: %v", derivationPathStr, err)
71+
log.Fatal("Failed to derive key for requested path; aborting to protect sensitive data")
7272
}
7373

7474
// Get the private key from the derived extended key

0 commit comments

Comments
 (0)