420 |
421 |
422 |
430 |
431 |
432 | Sets the given key as the test purpose private key corresponding to
433 | "\0'" of BIP 32 path just for test purpose. After calling this function,
434 | all functions with "\0'" path works based on this private key.
435 | REMARK: Test purpose only such as verifying signTransaction function.
436 |
437 |
438 | setTestPrivateKey(privateKeyHex:
string)
439 |
440 |
441 |
442 |
443 |
444 |
445 |
446 |
447 |
448 |
449 |
450 | Parameters
451 |
452 |
453 |
454 |
455 |
privateKeyHex (string)
456 | private key in hexadecimal string format
457 |
458 |
459 |
460 |
461 |
462 |
463 |
464 |
465 |
466 |
467 |
468 |
469 |
470 |
471 |
472 | Example
473 |
474 |
475 | icx.setTestPrivateKey("23498dc21b9ee52e63e8d6566e0911ac255a38d3fcbc68a51e6b298520b72d6e")
476 | .then(result => ...)
477 | icx.getAddress("0'", false, false).then(o => o.address)
478 |
479 |
480 |
481 |
482 |
483 |
484 |
485 |
486 |