You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" java.lang.IllegalArgumentException: Private subtrees not currently supported: if you got this key from DKC.getWatchingKey() then use .dropPrivate().dropParent() on it first. at com.google.common.base.Preconditions.checkArgument(Preconditions.java:122) at org.bitcoinj.wallet.DeterministicKeyChain.<init>(DeterministicKeyChain.java:318) at org.bitcoinj.wallet.DeterministicKeyChain.watch(DeterministicKeyChain.java:351) at org.bitcoinj.wallet.KeyChainGroup.<init>(KeyChainGroup.java:92) at org.bitcoinj.wallet.Wallet.fromWatchingKey(Wallet.java:279) at shen.Test.main(Test.java:32)
The text was updated successfully, but these errors were encountered:
getPrivateKeyAsHex() always returns a privateKey. i think the watchingkey should not contain privatekey,right?
and .dropPrivateBytes().dropParent() not work.
`
`
Exception in thread "main" java.lang.IllegalArgumentException: Private subtrees not currently supported: if you got this key from DKC.getWatchingKey() then use .dropPrivate().dropParent() on it first. at com.google.common.base.Preconditions.checkArgument(Preconditions.java:122) at org.bitcoinj.wallet.DeterministicKeyChain.<init>(DeterministicKeyChain.java:318) at org.bitcoinj.wallet.DeterministicKeyChain.watch(DeterministicKeyChain.java:351) at org.bitcoinj.wallet.KeyChainGroup.<init>(KeyChainGroup.java:92) at org.bitcoinj.wallet.Wallet.fromWatchingKey(Wallet.java:279) at shen.Test.main(Test.java:32)
The text was updated successfully, but these errors were encountered: