From 0aa990f1caebc569505c0c63a9fa2cbfe87217ed Mon Sep 17 00:00:00 2001 From: Danno Ferrin Date: Fri, 22 Nov 2019 14:24:10 -0700 Subject: [PATCH] Document Ethereum `fromAddressSeed` option Document the `fromAddressSeed` option and priority of configurations. Signed-off-by: Danno Ferrin --- docs/vNext/Ethereum_Configuration.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/vNext/Ethereum_Configuration.md b/docs/vNext/Ethereum_Configuration.md index e03a7ad73..f59a75ef6 100644 --- a/docs/vNext/Ethereum_Configuration.md +++ b/docs/vNext/Ethereum_Configuration.md @@ -111,12 +111,24 @@ The address to use while invoking all the methods of the benchmark. Its private "fromAddress": "0xc0A8e4D217eB85b812aeb1226fAb6F588943C2C2" ``` +## Benchmark address seed + +As an alternative to `fromAddress`, `fromAddressPrivateKey`, and `fromAddressPassword` the network configuration can use a fixed seed and derive needed addresses via [BIP-44](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki) key derivation. Each caliper test worker will generate an address for use as `fromAddress` and `fromAddressPrivateKey` using the derivation path `m/44'/60'/'/0/0`, where is the `clientIdx` passed into `getContext`. + +This configuration does not override `fromAddress`, but it takes priority over `fromAddressPrivateKey` and `fromAddressPassword`. + +```json +"fromAddressSeed": "0x3f841bf589fdf83a521e55d51afddc34fa65351161eead24f064855fc29c9580" +``` + ## Benchmark address private key The private key for the [benchmark address](#benchmark-address). If present then transactions are signed inside caliper and sent "raw" to the ethereum node. +This configuration takes priority over `fromAddressPassword`. + ```json -"fromAddressPassword": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8" +"fromAddressPrivateKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8" ``` ## Benchmark address password