This repository was archived by the owner on Oct 7, 2024. It is now read-only.
Commit 8699ccd
authored
Allow non-object keyring serialized state (#253)
The `addNewKeyring` method has been updated to support non-object
keyring serialized state, which had been supported already on versions
prior to v11.
This allows us to remove a special-case for the simple keyring, which
requires a JSON array as its serialized keyring state.
When constructing a simple keyring, the method `addNewKeying` now
expects the second parameter (`opts`) to be an array of private keys
rather than an object with a `privateKeys` property. This is how it
worked prior to v11.1 parent 1941d3c commit 8699ccd
File tree
3 files changed
+17
-42
lines changed- src
3 files changed
+17
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | | - | |
47 | | - | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
| 460 | + | |
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | 476 | | |
486 | 477 | | |
487 | 478 | | |
| |||
663 | 654 | | |
664 | 655 | | |
665 | 656 | | |
666 | | - | |
667 | | - | |
668 | | - | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
669 | 660 | | |
670 | 661 | | |
671 | 662 | | |
| |||
688 | 679 | | |
689 | 680 | | |
690 | 681 | | |
691 | | - | |
692 | | - | |
693 | | - | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
694 | 685 | | |
695 | 686 | | |
696 | 687 | | |
| |||
823 | 814 | | |
824 | 815 | | |
825 | 816 | | |
826 | | - | |
| 817 | + | |
827 | 818 | | |
828 | 819 | | |
829 | 820 | | |
| |||
857 | 848 | | |
858 | 849 | | |
859 | 850 | | |
860 | | - | |
861 | | - | |
862 | | - | |
| 851 | + | |
863 | 852 | | |
864 | 853 | | |
865 | 854 | | |
| |||
1051 | 1040 | | |
1052 | 1041 | | |
1053 | 1042 | | |
1054 | | - | |
1055 | | - | |
1056 | | - | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
1057 | 1046 | | |
1058 | 1047 | | |
1059 | 1048 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
| 587 | + | |
| 588 | + | |
603 | 589 | | |
604 | 590 | | |
605 | 591 | | |
| |||
0 commit comments