This repository was archived by the owner on Oct 7, 2024. It is now read-only.
Commit cf828cd
committed
Allow non-object keyring serialized state
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 9ebdc0f commit cf828cd
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 | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | | - | |
| 459 | + | |
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | 475 | | |
485 | 476 | | |
486 | 477 | | |
| |||
662 | 653 | | |
663 | 654 | | |
664 | 655 | | |
665 | | - | |
666 | | - | |
667 | | - | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
668 | 659 | | |
669 | 660 | | |
670 | 661 | | |
| |||
687 | 678 | | |
688 | 679 | | |
689 | 680 | | |
690 | | - | |
691 | | - | |
692 | | - | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
693 | 684 | | |
694 | 685 | | |
695 | 686 | | |
| |||
822 | 813 | | |
823 | 814 | | |
824 | 815 | | |
825 | | - | |
| 816 | + | |
826 | 817 | | |
827 | 818 | | |
828 | 819 | | |
| |||
856 | 847 | | |
857 | 848 | | |
858 | 849 | | |
859 | | - | |
860 | | - | |
861 | | - | |
| 850 | + | |
862 | 851 | | |
863 | 852 | | |
864 | 853 | | |
| |||
1050 | 1039 | | |
1051 | 1040 | | |
1052 | 1041 | | |
1053 | | - | |
1054 | | - | |
1055 | | - | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
1056 | 1045 | | |
1057 | 1046 | | |
1058 | 1047 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
| 588 | + | |
| 589 | + | |
604 | 590 | | |
605 | 591 | | |
606 | 592 | | |
| |||
0 commit comments