Skip to content

Commit 011bbf7

Browse files
committed
added type java to snippet
1 parent b1e54fe commit 011bbf7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ AbstractTransaction<?> spendTx = // abstract supertype of tx
131131
* depending on the actual transaction type
132132
*/
133133
UnsignedTx unsignedTx =
134-
transactionServiceNative.createUnsignedTransaction(spendTx).toFuture().get();
134+
transactionService.createUnsignedTransaction(spendTx).toFuture().get();
135135
```
136136

137137
### Example code to generate and post a transaction
@@ -197,12 +197,12 @@ Tx signedTx =
197197
PostTxResponse txResponse = transactionService.postTransaction( signedTx ).blockingGet();
198198
```
199199
### Example code to generate a HD wallet
200-
The implementation of hd wallets is based on [bitcoinj](https://github.com/bitcoinj/bitcoinj)
200+
The implementation of HD wallets is based on [bitcoinj](https://github.com/bitcoinj/bitcoinj)
201201

202-
Although possible, it's not recommended to create the hd wallet based on a user choosen list of mnemonic words, because this will lack randomicity. Additionally it's strongly recommended to set password, which additionally salts the mnemonic phrase and increases security.
202+
Although possible, it's not recommended to create the HD wallet based on a user choosen list of mnemonic words, because this will lack randomicity. Additionally it's strongly recommended to set password, which additionally salts the mnemonic phrase and increases security.
203203
All derived keys should be created with the hardened flag. Otherwise it is possible to reconstruct all descendent private and public keys from a known private key and all descendent public keys from a known public key.
204204

205-
```
205+
```java
206206
final KeyPairService keyPairService = new KeyPairServiceFactory().getService();
207207

208208
// create the master

0 commit comments

Comments
 (0)