mol_crypto_lib 0.0.279 → 0.0.282
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node.deps.json +1 -1
- package/node.test.js +149 -149
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.test.js +79 -79
- package/web.test.js.map +1 -1
package/node.deps.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"files":["LICENSE","README.md","lang.lang.tree","mam.jam.js","mam.ts","package.json","sandbox.config.json","tsconfig.json","tsfmt.json","yarn.lock","mol/CNAME","mol/CODE_OF_CONDUCT.md","mol/CONTRIBUTING.md","mol/LICENSE","mol/index.html","mol/mol.meta.tree","mol/readme.md","mol/crypto/README.md","mol/crypto/secret/secret.ts","mol/crypto/cipher/cipher.ts","mol/crypto/auditor/auditor.ts","mol/crypto/salt/salt.ts","mol/crypto/lib/lib.meta.tree"],"mods":{},"deps_in":{"mol/crypto":{"mol/crypto/lib":-9007199254740991,"mol/crypto/secret":-9007199254740991,"mol/crypto/cipher":-9007199254740991,"mol/crypto/auditor":-9007199254740991,"mol/crypto/salt":-9007199254740991},"mol":{"mol/crypto":-9007199254740991},"":{"mol":-9007199254740991},"mol/crypto/secret":{"mol/crypto/lib":-9000},"mol/crypto/cipher":{"mol/crypto/lib":-9000},"mol/crypto/auditor":{"mol/crypto/lib":-9000},"mol/crypto/salt":{"mol/crypto/lib":-9000}},"deps_out":{"mol/crypto/lib":{"mol/crypto":-9007199254740991,"mol/crypto/secret":-9000,"mol/crypto/cipher":-9000,"mol/crypto/auditor":-9000,"mol/crypto/salt":-9000},"mol/crypto":{"mol":-9007199254740991},"mol":{"":-9007199254740991},"mol/crypto/secret":{"mol/crypto":-9007199254740991},"mol/crypto/cipher":{"mol/crypto":-9007199254740991},"mol/crypto/auditor":{"mol/crypto":-9007199254740991},"mol/crypto/salt":{"mol/crypto":-9007199254740991}},"sloc":{"LICENSE":113,"md":
|
|
1
|
+
{"files":["LICENSE","README.md","lang.lang.tree","mam.jam.js","mam.ts","package.json","sandbox.config.json","tsconfig.json","tsfmt.json","yarn.lock","mol/CNAME","mol/CODE_OF_CONDUCT.md","mol/CONTRIBUTING.md","mol/LICENSE","mol/index.html","mol/mol.meta.tree","mol/readme.md","mol/crypto/README.md","mol/crypto/secret/secret.ts","mol/crypto/cipher/cipher.ts","mol/crypto/auditor/auditor.ts","mol/crypto/salt/salt.ts","mol/crypto/lib/lib.meta.tree"],"mods":{},"deps_in":{"mol/crypto":{"mol/crypto/lib":-9007199254740991,"mol/crypto/secret":-9007199254740991,"mol/crypto/cipher":-9007199254740991,"mol/crypto/auditor":-9007199254740991,"mol/crypto/salt":-9007199254740991},"mol":{"mol/crypto":-9007199254740991},"":{"mol":-9007199254740991},"mol/crypto/secret":{"mol/crypto/lib":-9000},"mol/crypto/cipher":{"mol/crypto/lib":-9000},"mol/crypto/auditor":{"mol/crypto/lib":-9000},"mol/crypto/salt":{"mol/crypto/lib":-9000}},"deps_out":{"mol/crypto/lib":{"mol/crypto":-9007199254740991,"mol/crypto/secret":-9000,"mol/crypto/cipher":-9000,"mol/crypto/auditor":-9000,"mol/crypto/salt":-9000},"mol/crypto":{"mol":-9007199254740991},"mol":{"":-9007199254740991},"mol/crypto/secret":{"mol/crypto":-9007199254740991},"mol/crypto/cipher":{"mol/crypto":-9007199254740991},"mol/crypto/auditor":{"mol/crypto":-9007199254740991},"mol/crypto/salt":{"mol/crypto":-9007199254740991}},"sloc":{"LICENSE":113,"md":566,"tree":35,"js":10,"ts":286,"json":87,"lock":939,"CNAME":1,"html":1},"deps":{"mol/crypto/lib":{"..":-9007199254740991,"/mol/crypto/secret":-9000,"/mol/crypto/cipher":-9000,"/mol/crypto/auditor":-9000,"/mol/crypto/salt":-9000},"mol/crypto":{"..":-9007199254740991},"mol":{"..":-9007199254740991},"":{},"mol/crypto/secret":{"..":-9007199254740991,"/mol/crypto/secret":-1},"mol/crypto/cipher":{"..":-9007199254740991,"/mol/crypto/cipher/pair":-1,"/mol/crypto/cipher/public":-1,"/mol/crypto/cipher/private":-1,"/mol/crypto/cipher/ecrypted/size":-1},"mol/crypto/auditor":{"..":-9007199254740991,"/mol/crypto/auditor/pair":-1,"/mol/crypto/auditor/public":-1,"/mol/crypto/auditor/private":-1,"/mol/crypto/auditor/sign/size":-1},"mol/crypto/salt":{"..":-9007199254740991,"/mol/crypto/salt":-1}}}
|
package/node.test.js
CHANGED
|
@@ -426,6 +426,12 @@ var $;
|
|
|
426
426
|
//mol/type/assert/assert.ts
|
|
427
427
|
;
|
|
428
428
|
"use strict";
|
|
429
|
+
//mol/type/equals/equals.test.ts
|
|
430
|
+
;
|
|
431
|
+
"use strict";
|
|
432
|
+
//mol/type/equals/equals.ts
|
|
433
|
+
;
|
|
434
|
+
"use strict";
|
|
429
435
|
//mol/type/partial/deep/deep.test.ts
|
|
430
436
|
;
|
|
431
437
|
"use strict";
|
|
@@ -938,107 +944,6 @@ var $;
|
|
|
938
944
|
;
|
|
939
945
|
"use strict";
|
|
940
946
|
var $;
|
|
941
|
-
(function ($) {
|
|
942
|
-
$mol_test({
|
|
943
|
-
async 'sizes'() {
|
|
944
|
-
const cipher = await $mol_crypto_secret.generate();
|
|
945
|
-
const key = await cipher.serial();
|
|
946
|
-
$mol_assert_equal(key.byteLength, $mol_crypto_secret.size);
|
|
947
|
-
const data = new Uint8Array([1, 2, 3]);
|
|
948
|
-
const salt = $mol_crypto_salt();
|
|
949
|
-
const closed = await cipher.encrypt(data, salt);
|
|
950
|
-
$mol_assert_equal(closed.byteLength, data.byteLength + $mol_crypto_secret.extra);
|
|
951
|
-
},
|
|
952
|
-
async 'decrypt self encrypted with auto generated key'() {
|
|
953
|
-
const cipher = await $mol_crypto_secret.generate();
|
|
954
|
-
const data = new Uint8Array([1, 2, 3]);
|
|
955
|
-
const salt = $mol_crypto_salt();
|
|
956
|
-
const closed = await cipher.encrypt(data, salt);
|
|
957
|
-
const opened = await cipher.decrypt(closed, salt);
|
|
958
|
-
$mol_assert_like(data, new Uint8Array(opened));
|
|
959
|
-
},
|
|
960
|
-
async 'decrypt encrypted with exported auto generated key'() {
|
|
961
|
-
const data = new Uint8Array([1, 2, 3]);
|
|
962
|
-
const salt = $mol_crypto_salt();
|
|
963
|
-
const Alice = await $mol_crypto_secret.generate();
|
|
964
|
-
const closed = await Alice.encrypt(data, salt);
|
|
965
|
-
const Bob = await $mol_crypto_secret.from(await Alice.serial());
|
|
966
|
-
const opened = await Bob.decrypt(closed, salt);
|
|
967
|
-
$mol_assert_like(data, new Uint8Array(opened));
|
|
968
|
-
},
|
|
969
|
-
});
|
|
970
|
-
})($ || ($ = {}));
|
|
971
|
-
//mol/crypto/secret/secret.test.ts
|
|
972
|
-
;
|
|
973
|
-
"use strict";
|
|
974
|
-
var $;
|
|
975
|
-
(function ($) {
|
|
976
|
-
$mol_test({
|
|
977
|
-
async 'sizes'() {
|
|
978
|
-
const pair = await $$.$mol_crypto_cipher_pair();
|
|
979
|
-
const key_private = await pair.private.serial();
|
|
980
|
-
$mol_assert_ok(key_private.byteLength > 630);
|
|
981
|
-
$mol_assert_ok(key_private.byteLength < 640);
|
|
982
|
-
const key_public = await pair.public.serial();
|
|
983
|
-
$mol_assert_equal(key_public.byteLength, $mol_crypto_cipher_public.size);
|
|
984
|
-
const data = new Uint8Array([1, 2, 3]);
|
|
985
|
-
const closed = await pair.public.encrypt(data);
|
|
986
|
-
$mol_assert_equal(closed.byteLength, $mol_crypto_cipher_ecrypted_size);
|
|
987
|
-
},
|
|
988
|
-
async 'decrypt self encrypted with auto generated key'() {
|
|
989
|
-
const pair = await $$.$mol_crypto_cipher_pair();
|
|
990
|
-
const data = new Uint8Array([1, 2, 3]);
|
|
991
|
-
const closed = await pair.public.encrypt(data);
|
|
992
|
-
const opened = await pair.private.decrypt(closed);
|
|
993
|
-
$mol_assert_like(data, new Uint8Array(opened));
|
|
994
|
-
},
|
|
995
|
-
async 'decrypt encrypted with exported auto generated key'() {
|
|
996
|
-
const pair = await $$.$mol_crypto_cipher_pair();
|
|
997
|
-
const data = new Uint8Array([1, 2, 3]);
|
|
998
|
-
const Alice = await $mol_crypto_cipher_public.from(await pair.public.serial());
|
|
999
|
-
const closed = await Alice.encrypt(data);
|
|
1000
|
-
const Bob = await $mol_crypto_cipher_private.from(await pair.private.serial());
|
|
1001
|
-
const opened = await Bob.decrypt(closed);
|
|
1002
|
-
$mol_assert_like(data, new Uint8Array(opened));
|
|
1003
|
-
},
|
|
1004
|
-
});
|
|
1005
|
-
})($ || ($ = {}));
|
|
1006
|
-
//mol/crypto/cipher/cipher.test.ts
|
|
1007
|
-
;
|
|
1008
|
-
"use strict";
|
|
1009
|
-
var $;
|
|
1010
|
-
(function ($) {
|
|
1011
|
-
$mol_test({
|
|
1012
|
-
async 'sizes'() {
|
|
1013
|
-
const pair = await $$.$mol_crypto_auditor_pair();
|
|
1014
|
-
const key_private = await pair.private.serial();
|
|
1015
|
-
$mol_assert_equal(key_private.byteLength, $mol_crypto_auditor_private.size);
|
|
1016
|
-
const key_public = await pair.public.serial();
|
|
1017
|
-
$mol_assert_equal(key_public.byteLength, $mol_crypto_auditor_public.size);
|
|
1018
|
-
const data = new Uint8Array([1, 2, 3]);
|
|
1019
|
-
const sign = await pair.private.sign(data);
|
|
1020
|
-
$mol_assert_equal(sign.byteLength, $mol_crypto_auditor_sign_size);
|
|
1021
|
-
},
|
|
1022
|
-
async 'verify self signed with auto generated key'() {
|
|
1023
|
-
const auditor = await $$.$mol_crypto_auditor_pair();
|
|
1024
|
-
const data = new Uint8Array([1, 2, 3]);
|
|
1025
|
-
const sign = await auditor.private.sign(data);
|
|
1026
|
-
$mol_assert_ok(await auditor.public.verify(data, sign));
|
|
1027
|
-
},
|
|
1028
|
-
async 'verify signed with exported auto generated key'() {
|
|
1029
|
-
const pair = await $$.$mol_crypto_auditor_pair();
|
|
1030
|
-
const data = new Uint8Array([1, 2, 3]);
|
|
1031
|
-
const Alice = await $mol_crypto_auditor_private.from(await pair.private.serial());
|
|
1032
|
-
const sign = await Alice.sign(data);
|
|
1033
|
-
const Bob = await $mol_crypto_auditor_public.from(await pair.public.serial());
|
|
1034
|
-
$mol_assert_ok(await Bob.verify(data, sign));
|
|
1035
|
-
},
|
|
1036
|
-
});
|
|
1037
|
-
})($ || ($ = {}));
|
|
1038
|
-
//mol/crypto/auditor/auditor.test.ts
|
|
1039
|
-
;
|
|
1040
|
-
"use strict";
|
|
1041
|
-
var $;
|
|
1042
947
|
(function ($) {
|
|
1043
948
|
function $mol_log3_area_lazy(event) {
|
|
1044
949
|
const self = this;
|
|
@@ -1105,52 +1010,6 @@ var $;
|
|
|
1105
1010
|
;
|
|
1106
1011
|
"use strict";
|
|
1107
1012
|
var $;
|
|
1108
|
-
(function ($) {
|
|
1109
|
-
function $mol_env() {
|
|
1110
|
-
return {};
|
|
1111
|
-
}
|
|
1112
|
-
$.$mol_env = $mol_env;
|
|
1113
|
-
})($ || ($ = {}));
|
|
1114
|
-
//mol/env/env.ts
|
|
1115
|
-
;
|
|
1116
|
-
"use strict";
|
|
1117
|
-
var $;
|
|
1118
|
-
(function ($) {
|
|
1119
|
-
$.$mol_env = function $mol_env() {
|
|
1120
|
-
return this.process.env;
|
|
1121
|
-
};
|
|
1122
|
-
})($ || ($ = {}));
|
|
1123
|
-
//mol/env/env.node.ts
|
|
1124
|
-
;
|
|
1125
|
-
"use strict";
|
|
1126
|
-
var $;
|
|
1127
|
-
(function ($) {
|
|
1128
|
-
function $mol_exec(dir, command, ...args) {
|
|
1129
|
-
let [app, ...args0] = command.split(' ');
|
|
1130
|
-
args = [...args0, ...args];
|
|
1131
|
-
this.$mol_log3_come({
|
|
1132
|
-
place: '$mol_exec',
|
|
1133
|
-
dir: $node.path.relative('', dir),
|
|
1134
|
-
message: 'Run',
|
|
1135
|
-
command: `${app} ${args.join(' ')}`,
|
|
1136
|
-
});
|
|
1137
|
-
var res = $node['child_process'].spawnSync(app, args, {
|
|
1138
|
-
cwd: $node.path.resolve(dir),
|
|
1139
|
-
shell: true,
|
|
1140
|
-
env: this.$mol_env(),
|
|
1141
|
-
});
|
|
1142
|
-
if (res.status || res.error)
|
|
1143
|
-
return $mol_fail(res.error || new Error(res.stderr.toString()));
|
|
1144
|
-
if (!res.stdout)
|
|
1145
|
-
res.stdout = Buffer.from([]);
|
|
1146
|
-
return res;
|
|
1147
|
-
}
|
|
1148
|
-
$.$mol_exec = $mol_exec;
|
|
1149
|
-
})($ || ($ = {}));
|
|
1150
|
-
//mol/exec/exec.node.ts
|
|
1151
|
-
;
|
|
1152
|
-
"use strict";
|
|
1153
|
-
var $;
|
|
1154
1013
|
(function ($) {
|
|
1155
1014
|
$.$mol_ambient_ref = Symbol('$mol_ambient_ref');
|
|
1156
1015
|
function $mol_ambient(overrides) {
|
|
@@ -1783,9 +1642,150 @@ var $;
|
|
|
1783
1642
|
//mol/tree/tree.ts
|
|
1784
1643
|
;
|
|
1785
1644
|
"use strict";
|
|
1786
|
-
|
|
1645
|
+
var $;
|
|
1646
|
+
(function ($) {
|
|
1647
|
+
function $mol_env() {
|
|
1648
|
+
return {};
|
|
1649
|
+
}
|
|
1650
|
+
$.$mol_env = $mol_env;
|
|
1651
|
+
})($ || ($ = {}));
|
|
1652
|
+
//mol/env/env.ts
|
|
1787
1653
|
;
|
|
1788
1654
|
"use strict";
|
|
1789
|
-
|
|
1655
|
+
var $;
|
|
1656
|
+
(function ($) {
|
|
1657
|
+
$.$mol_env = function $mol_env() {
|
|
1658
|
+
return this.process.env;
|
|
1659
|
+
};
|
|
1660
|
+
})($ || ($ = {}));
|
|
1661
|
+
//mol/env/env.node.ts
|
|
1662
|
+
;
|
|
1663
|
+
"use strict";
|
|
1664
|
+
var $;
|
|
1665
|
+
(function ($) {
|
|
1666
|
+
function $mol_exec(dir, command, ...args) {
|
|
1667
|
+
let [app, ...args0] = command.split(' ');
|
|
1668
|
+
args = [...args0, ...args];
|
|
1669
|
+
this.$mol_log3_come({
|
|
1670
|
+
place: '$mol_exec',
|
|
1671
|
+
dir: $node.path.relative('', dir),
|
|
1672
|
+
message: 'Run',
|
|
1673
|
+
command: `${app} ${args.join(' ')}`,
|
|
1674
|
+
});
|
|
1675
|
+
var res = $node['child_process'].spawnSync(app, args, {
|
|
1676
|
+
cwd: $node.path.resolve(dir),
|
|
1677
|
+
shell: true,
|
|
1678
|
+
env: this.$mol_env(),
|
|
1679
|
+
});
|
|
1680
|
+
if (res.status || res.error)
|
|
1681
|
+
return $mol_fail(res.error || new Error(res.stderr.toString()));
|
|
1682
|
+
if (!res.stdout)
|
|
1683
|
+
res.stdout = Buffer.from([]);
|
|
1684
|
+
return res;
|
|
1685
|
+
}
|
|
1686
|
+
$.$mol_exec = $mol_exec;
|
|
1687
|
+
})($ || ($ = {}));
|
|
1688
|
+
//mol/exec/exec.node.ts
|
|
1689
|
+
;
|
|
1690
|
+
"use strict";
|
|
1691
|
+
var $;
|
|
1692
|
+
(function ($) {
|
|
1693
|
+
$mol_test({
|
|
1694
|
+
async 'sizes'() {
|
|
1695
|
+
const cipher = await $mol_crypto_secret.generate();
|
|
1696
|
+
const key = await cipher.serial();
|
|
1697
|
+
$mol_assert_equal(key.byteLength, $mol_crypto_secret.size);
|
|
1698
|
+
const data = new Uint8Array([1, 2, 3]);
|
|
1699
|
+
const salt = $mol_crypto_salt();
|
|
1700
|
+
const closed = await cipher.encrypt(data, salt);
|
|
1701
|
+
$mol_assert_equal(closed.byteLength, data.byteLength + $mol_crypto_secret.extra);
|
|
1702
|
+
},
|
|
1703
|
+
async 'decrypt self encrypted with auto generated key'() {
|
|
1704
|
+
const cipher = await $mol_crypto_secret.generate();
|
|
1705
|
+
const data = new Uint8Array([1, 2, 3]);
|
|
1706
|
+
const salt = $mol_crypto_salt();
|
|
1707
|
+
const closed = await cipher.encrypt(data, salt);
|
|
1708
|
+
const opened = await cipher.decrypt(closed, salt);
|
|
1709
|
+
$mol_assert_like(data, new Uint8Array(opened));
|
|
1710
|
+
},
|
|
1711
|
+
async 'decrypt encrypted with exported auto generated key'() {
|
|
1712
|
+
const data = new Uint8Array([1, 2, 3]);
|
|
1713
|
+
const salt = $mol_crypto_salt();
|
|
1714
|
+
const Alice = await $mol_crypto_secret.generate();
|
|
1715
|
+
const closed = await Alice.encrypt(data, salt);
|
|
1716
|
+
const Bob = await $mol_crypto_secret.from(await Alice.serial());
|
|
1717
|
+
const opened = await Bob.decrypt(closed, salt);
|
|
1718
|
+
$mol_assert_like(data, new Uint8Array(opened));
|
|
1719
|
+
},
|
|
1720
|
+
});
|
|
1721
|
+
})($ || ($ = {}));
|
|
1722
|
+
//mol/crypto/secret/secret.test.ts
|
|
1723
|
+
;
|
|
1724
|
+
"use strict";
|
|
1725
|
+
var $;
|
|
1726
|
+
(function ($) {
|
|
1727
|
+
$mol_test({
|
|
1728
|
+
async 'sizes'() {
|
|
1729
|
+
const pair = await $$.$mol_crypto_cipher_pair();
|
|
1730
|
+
const key_private = await pair.private.serial();
|
|
1731
|
+
$mol_assert_ok(key_private.byteLength > 630);
|
|
1732
|
+
$mol_assert_ok(key_private.byteLength < 640);
|
|
1733
|
+
const key_public = await pair.public.serial();
|
|
1734
|
+
$mol_assert_equal(key_public.byteLength, $mol_crypto_cipher_public.size);
|
|
1735
|
+
const data = new Uint8Array([1, 2, 3]);
|
|
1736
|
+
const closed = await pair.public.encrypt(data);
|
|
1737
|
+
$mol_assert_equal(closed.byteLength, $mol_crypto_cipher_ecrypted_size);
|
|
1738
|
+
},
|
|
1739
|
+
async 'decrypt self encrypted with auto generated key'() {
|
|
1740
|
+
const pair = await $$.$mol_crypto_cipher_pair();
|
|
1741
|
+
const data = new Uint8Array([1, 2, 3]);
|
|
1742
|
+
const closed = await pair.public.encrypt(data);
|
|
1743
|
+
const opened = await pair.private.decrypt(closed);
|
|
1744
|
+
$mol_assert_like(data, new Uint8Array(opened));
|
|
1745
|
+
},
|
|
1746
|
+
async 'decrypt encrypted with exported auto generated key'() {
|
|
1747
|
+
const pair = await $$.$mol_crypto_cipher_pair();
|
|
1748
|
+
const data = new Uint8Array([1, 2, 3]);
|
|
1749
|
+
const Alice = await $mol_crypto_cipher_public.from(await pair.public.serial());
|
|
1750
|
+
const closed = await Alice.encrypt(data);
|
|
1751
|
+
const Bob = await $mol_crypto_cipher_private.from(await pair.private.serial());
|
|
1752
|
+
const opened = await Bob.decrypt(closed);
|
|
1753
|
+
$mol_assert_like(data, new Uint8Array(opened));
|
|
1754
|
+
},
|
|
1755
|
+
});
|
|
1756
|
+
})($ || ($ = {}));
|
|
1757
|
+
//mol/crypto/cipher/cipher.test.ts
|
|
1758
|
+
;
|
|
1759
|
+
"use strict";
|
|
1760
|
+
var $;
|
|
1761
|
+
(function ($) {
|
|
1762
|
+
$mol_test({
|
|
1763
|
+
async 'sizes'() {
|
|
1764
|
+
const pair = await $$.$mol_crypto_auditor_pair();
|
|
1765
|
+
const key_private = await pair.private.serial();
|
|
1766
|
+
$mol_assert_equal(key_private.byteLength, $mol_crypto_auditor_private.size);
|
|
1767
|
+
const key_public = await pair.public.serial();
|
|
1768
|
+
$mol_assert_equal(key_public.byteLength, $mol_crypto_auditor_public.size);
|
|
1769
|
+
const data = new Uint8Array([1, 2, 3]);
|
|
1770
|
+
const sign = await pair.private.sign(data);
|
|
1771
|
+
$mol_assert_equal(sign.byteLength, $mol_crypto_auditor_sign_size);
|
|
1772
|
+
},
|
|
1773
|
+
async 'verify self signed with auto generated key'() {
|
|
1774
|
+
const auditor = await $$.$mol_crypto_auditor_pair();
|
|
1775
|
+
const data = new Uint8Array([1, 2, 3]);
|
|
1776
|
+
const sign = await auditor.private.sign(data);
|
|
1777
|
+
$mol_assert_ok(await auditor.public.verify(data, sign));
|
|
1778
|
+
},
|
|
1779
|
+
async 'verify signed with exported auto generated key'() {
|
|
1780
|
+
const pair = await $$.$mol_crypto_auditor_pair();
|
|
1781
|
+
const data = new Uint8Array([1, 2, 3]);
|
|
1782
|
+
const Alice = await $mol_crypto_auditor_private.from(await pair.private.serial());
|
|
1783
|
+
const sign = await Alice.sign(data);
|
|
1784
|
+
const Bob = await $mol_crypto_auditor_public.from(await pair.public.serial());
|
|
1785
|
+
$mol_assert_ok(await Bob.verify(data, sign));
|
|
1786
|
+
},
|
|
1787
|
+
});
|
|
1788
|
+
})($ || ($ = {}));
|
|
1789
|
+
//mol/crypto/auditor/auditor.test.ts
|
|
1790
1790
|
|
|
1791
1791
|
//# sourceMappingURL=node.test.js.map
|