mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-24 15:02:17 +01:00
Fix hardened serialization (#4160)
This commit is contained in:
parent
c3300aec52
commit
5e9be9d69e
1 changed files with 2 additions and 1 deletions
|
@ -83,7 +83,8 @@ abstract class BIP32Path extends SeqWrapper[BIP32Node] {
|
|||
override def toString: String =
|
||||
path
|
||||
.map { case BIP32Node(index, hardened) =>
|
||||
index.toString + (if (hardened) "'" else "")
|
||||
val isHardened = if (hardened) "'" else ""
|
||||
index.toString + isHardened
|
||||
}
|
||||
.fold("m")((accum, curr) => accum + "/" + curr)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue