@dxos/credentials 2.33.9-dev.d0ae5f95 → 2.33.9-dev.d0dce35f
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/.rush/temp/package-deps_build.json +3 -3
- package/.rush/temp/package-deps_build_test.json +3 -3
- package/.rush/temp/shrinkwrap-deps.json +2 -3
- package/credentials.build.log +102 -0
- package/dist/src/keys/keystore.js +4 -4
- package/dist/src/keys/keystore.js.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/auth.d.ts +12 -3
- package/dist/src/proto/gen/dxos/credentials/auth.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/greet.d.ts +39 -8
- package/dist/src/proto/gen/dxos/credentials/greet.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/greet.js +4 -0
- package/dist/src/proto/gen/dxos/credentials/greet.js.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/identity.d.ts +12 -4
- package/dist/src/proto/gen/dxos/credentials/identity.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/party.d.ts +50 -18
- package/dist/src/proto/gen/dxos/credentials/party.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/party.js +4 -0
- package/dist/src/proto/gen/dxos/credentials/party.js.map +1 -1
- package/dist/src/proto/gen/dxos/credentials.d.ts +39 -0
- package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.d.ts +44 -2
- package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.js +4 -0
- package/dist/src/proto/gen/dxos/halo/keys.js.map +1 -1
- package/dist/src/proto/gen/google/protobuf.d.ts +11 -11
- package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/src/proto/gen/index.d.ts.map +1 -1
- package/dist/src/proto/gen/index.js +1 -1
- package/dist/src/proto/gen/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +12 -12
- package/src/keys/keystore.ts +4 -4
- package/src/proto/gen/dxos/credentials/auth.ts +12 -3
- package/src/proto/gen/dxos/credentials/greet.ts +39 -8
- package/src/proto/gen/dxos/credentials/identity.ts +12 -4
- package/src/proto/gen/dxos/credentials/party.ts +50 -18
- package/src/proto/gen/dxos/credentials.ts +39 -0
- package/src/proto/gen/dxos/halo/keys.ts +44 -2
- package/src/proto/gen/google/protobuf.ts +11 -11
- package/src/proto/gen/index.ts +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files": {
|
|
3
|
-
"packages/halo/credentials/.rush/temp/shrinkwrap-deps.json": "
|
|
3
|
+
"packages/halo/credentials/.rush/temp/shrinkwrap-deps.json": "c68d18c75c22bb1ed9ef4d4fa061bae396ba2217",
|
|
4
4
|
"packages/halo/credentials/.eslintrc.js": "8c186197e908188715a6c9635941ec4b7896c787",
|
|
5
5
|
"packages/halo/credentials/README.md": "b6859b1e271596aa5934d07b6d4320721c43b035",
|
|
6
|
-
"packages/halo/credentials/package.json": "
|
|
6
|
+
"packages/halo/credentials/package.json": "7b7ef39748ad4c5136cc931d89c131cb0e49be09",
|
|
7
7
|
"packages/halo/credentials/src/auth/auth-message.ts": "7b358a1b61331154a7753942ee298562871a7837",
|
|
8
8
|
"packages/halo/credentials/src/auth/auth-plugin.test.ts": "d6f401b531c3283b9a3aff46484789a145b10da5",
|
|
9
9
|
"packages/halo/credentials/src/auth/auth-plugin.ts": "799abc7a90bf045f799458a47091a3de7de4a1a9",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"packages/halo/credentials/src/keys/keyring.test.ts": "dd59ea4478f82a04f2b5f6b3ac291e2bcd8ab0f4",
|
|
38
38
|
"packages/halo/credentials/src/keys/keyring.ts": "e836be552124c142f09164a2c73e809a1716d6c4",
|
|
39
39
|
"packages/halo/credentials/src/keys/keystore.test.js": "c810fd1c1db191122dafbbf4f7d0acce12cb8065",
|
|
40
|
-
"packages/halo/credentials/src/keys/keystore.ts": "
|
|
40
|
+
"packages/halo/credentials/src/keys/keystore.ts": "13132963446fe41c216f12e60285c84a1d77b218",
|
|
41
41
|
"packages/halo/credentials/src/keys/keytype.ts": "499be4ecd6b66fac896d0b3e615af027cad19f65",
|
|
42
42
|
"packages/halo/credentials/src/keys/signer.ts": "9a774bd508d88c6fb0c8edbae670c3134848dfdc",
|
|
43
43
|
"packages/halo/credentials/src/keys/simple-metrics.ts": "819fe8021c5797a05140bcb2733cc7028d1363fd",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files": {
|
|
3
|
-
"packages/halo/credentials/.rush/temp/shrinkwrap-deps.json": "
|
|
3
|
+
"packages/halo/credentials/.rush/temp/shrinkwrap-deps.json": "c68d18c75c22bb1ed9ef4d4fa061bae396ba2217",
|
|
4
4
|
"packages/halo/credentials/.eslintrc.js": "8c186197e908188715a6c9635941ec4b7896c787",
|
|
5
5
|
"packages/halo/credentials/README.md": "b6859b1e271596aa5934d07b6d4320721c43b035",
|
|
6
|
-
"packages/halo/credentials/package.json": "
|
|
6
|
+
"packages/halo/credentials/package.json": "7b7ef39748ad4c5136cc931d89c131cb0e49be09",
|
|
7
7
|
"packages/halo/credentials/src/auth/auth-message.ts": "7b358a1b61331154a7753942ee298562871a7837",
|
|
8
8
|
"packages/halo/credentials/src/auth/auth-plugin.test.ts": "d6f401b531c3283b9a3aff46484789a145b10da5",
|
|
9
9
|
"packages/halo/credentials/src/auth/auth-plugin.ts": "799abc7a90bf045f799458a47091a3de7de4a1a9",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"packages/halo/credentials/src/keys/keyring.test.ts": "dd59ea4478f82a04f2b5f6b3ac291e2bcd8ab0f4",
|
|
38
38
|
"packages/halo/credentials/src/keys/keyring.ts": "e836be552124c142f09164a2c73e809a1716d6c4",
|
|
39
39
|
"packages/halo/credentials/src/keys/keystore.test.js": "c810fd1c1db191122dafbbf4f7d0acce12cb8065",
|
|
40
|
-
"packages/halo/credentials/src/keys/keystore.ts": "
|
|
40
|
+
"packages/halo/credentials/src/keys/keystore.ts": "13132963446fe41c216f12e60285c84a1d77b218",
|
|
41
41
|
"packages/halo/credentials/src/keys/keytype.ts": "499be4ecd6b66fac896d0b3e615af027cad19f65",
|
|
42
42
|
"packages/halo/credentials/src/keys/signer.ts": "9a774bd508d88c6fb0c8edbae670c3134848dfdc",
|
|
43
43
|
"packages/halo/credentials/src/keys/simple-metrics.ts": "819fe8021c5797a05140bcb2733cc7028d1363fd",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"../../packages/halo/credentials": "../../packages/halo/credentials:
|
|
2
|
+
"../../packages/halo/credentials": "../../packages/halo/credentials:NxXoJHjcxBGQr93AtFl+3RKI25QT6PE59pmqQDfORFo=:",
|
|
3
3
|
"/@babel/code-frame/7.12.11": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==",
|
|
4
4
|
"/@babel/code-frame/7.18.6": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==",
|
|
5
5
|
"/@babel/helper-validator-identifier/7.18.6": "sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g==",
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
"/glob/7.1.7": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==",
|
|
176
176
|
"/globals/13.12.0": "sha512-uS8X6lSKN2JumVoXrbUz+uG4BYG+eiawqm3qFcT7ammfbUHeCBoJMlHcec/S3krSk73/AE/f0szYFmgAA3kYZg==",
|
|
177
177
|
"/globby/11.1.0": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",
|
|
178
|
-
"/graceful-fs/4.2.
|
|
178
|
+
"/graceful-fs/4.2.10": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==",
|
|
179
179
|
"/has-bigints/1.0.1": "sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA==",
|
|
180
180
|
"/has-bigints/1.0.2": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==",
|
|
181
181
|
"/has-flag/3.0.0": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",
|
|
@@ -199,7 +199,6 @@
|
|
|
199
199
|
"/is-bigint/1.0.4": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==",
|
|
200
200
|
"/is-boolean-object/1.1.2": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==",
|
|
201
201
|
"/is-callable/1.2.4": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==",
|
|
202
|
-
"/is-core-module/2.8.0": "sha512-vd15qHsaqrRL7dtH6QNuy0ndJmRDrS9HAM1CAiSifNUFv4x1a0CCVsj18hJ1mShxIG6T2i1sO78MkP56r0nYRw==",
|
|
203
202
|
"/is-core-module/2.9.0": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==",
|
|
204
203
|
"/is-date-object/1.0.5": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==",
|
|
205
204
|
"/is-extglob/2.1.1": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
|
package/credentials.build.log
CHANGED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
Invoking: toolchain build:test
|
|
2
|
+
|
|
3
|
+
Tests started
|
|
4
|
+
Protobuf
|
|
5
|
+
Compiling protobuf definitions
|
|
6
|
+
|
|
7
|
+
Proto file(s): /home/github/_work/protocols/protocols/packages/halo/credentials/src/proto/defs/import.proto
|
|
8
|
+
Substitution file: /home/github/_work/protocols/protocols/packages/halo/credentials/src/proto/substitutions.ts
|
|
9
|
+
Output directory: /home/github/_work/protocols/protocols/packages/halo/credentials/src/proto/gen
|
|
10
|
+
|
|
11
|
+
Loaded 3 substitutions:
|
|
12
|
+
|
|
13
|
+
dxos.halo.keys.PubKey -> import("/home/github/_work/protocols/protocols/packages/common/protocols/dist/src/public-key").PublicKey
|
|
14
|
+
dxos.halo.keys.PrivKey -> Buffer
|
|
15
|
+
google.protobuf.Any -> any
|
|
16
|
+
|
|
17
|
+
OK in 2789 ms
|
|
18
|
+
|
|
19
|
+
Typescript
|
|
20
|
+
OK in 3815 ms
|
|
21
|
+
/home/github/_work/protocols/protocols/packages/halo/credentials/src/auth/auth-plugin.test.ts(151,1): warning jest/expect-expect : Test has no assertions
|
|
22
|
+
/home/github/_work/protocols/protocols/packages/halo/credentials/src/greet/greeter.test.js(34,1): warning jest/expect-expect : Test has no assertions
|
|
23
|
+
/home/github/_work/protocols/protocols/packages/halo/credentials/src/keys/keyring.test.ts(378,1): warning jest/expect-expect : Test has no assertions
|
|
24
|
+
|
|
25
|
+
3 problems
|
|
26
|
+
OK in 7140 ms
|
|
27
|
+
|
|
28
|
+
Mocha Tests
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
✓ Auth Plugin (GOOD) (60ms)
|
|
32
|
+
✓ Auth & Repl (GOOD) (87ms)
|
|
33
|
+
✓ Greeting Flow using GreetingCommandPlugin
|
|
34
|
+
✓ Good invitation
|
|
35
|
+
✓ Bad invitation secret
|
|
36
|
+
✓ Attempt to re-use invitation
|
|
37
|
+
✓ Wrong partyKey
|
|
38
|
+
✓ Create Invitation message
|
|
39
|
+
✓ WellKnownType params - BytesValue
|
|
40
|
+
✓ Basic bip39 operations work
|
|
41
|
+
✓ Create keypair from seedphrase
|
|
42
|
+
✓ Create cold identity key and recover
|
|
43
|
+
✓ Basic filter
|
|
44
|
+
✓ Basic AND filter
|
|
45
|
+
✓ Generate keys
|
|
46
|
+
✓ Update a key
|
|
47
|
+
✓ Bad key attributes
|
|
48
|
+
✓ Add/retrieve single keyRecord from an external source
|
|
49
|
+
✓ Try to add/retrieve a publicKey from an external source (with secret present)
|
|
50
|
+
✓ Add/retrieve a publicKey from an external source (without secret present)
|
|
51
|
+
✓ Retrieve a non-existent key
|
|
52
|
+
✓ Sign and verify a message with a single key
|
|
53
|
+
✓ Sign and verify a message with multiple keys
|
|
54
|
+
✓ Sign and verify a message using a key chain
|
|
55
|
+
✓ Attempt to sign a message with a publicKey
|
|
56
|
+
✓ Attempt to add a badly formatted key
|
|
57
|
+
✓ Attempt to add a keyRecord missing its secretKey
|
|
58
|
+
✓ Attempt to add a keyRecord missing its publicKey
|
|
59
|
+
✓ Attempt to add keyRecord with reversed publicKey/secretKey
|
|
60
|
+
✓ Attempt to add secretKey as a publicKey
|
|
61
|
+
✓ Tamper with the contents of a signed message
|
|
62
|
+
✓ Tamper with the signature of a signed message
|
|
63
|
+
✓ Tamper with the signature key of a signed message
|
|
64
|
+
✓ To/from JSON
|
|
65
|
+
✓ Raw sign
|
|
66
|
+
✓ To/from Protobuf
|
|
67
|
+
✓ Authenticate flow for Kube/Keyhole authentication
|
|
68
|
+
✓ Storing DXNS Address keys
|
|
69
|
+
✓ Basic store operations
|
|
70
|
+
✓ reloading
|
|
71
|
+
✓ PartyInvitation messages
|
|
72
|
+
✓ Process basic message types
|
|
73
|
+
✓ GreetingCommandPlugin envelopes
|
|
74
|
+
✓ Reject message from unknown source
|
|
75
|
+
✓ Message signed by known and unknown key should not admit unknown key
|
|
76
|
+
✓ Reject Genesis not signed by Party key
|
|
77
|
+
✓ Reject admit key message with wrong Party
|
|
78
|
+
✓ Reject admit feed message with wrong Party
|
|
79
|
+
✓ Reject tampered Genesis message
|
|
80
|
+
✓ Reject tampered admit feed message
|
|
81
|
+
✓ Reject tampered admit key message
|
|
82
|
+
PartyAuthenticator
|
|
83
|
+
✓ Chain of Keys
|
|
84
|
+
✓ good direct
|
|
85
|
+
✓ auth callback is called
|
|
86
|
+
✓ good chain
|
|
87
|
+
✓ bad chain
|
|
88
|
+
✓ wrong key
|
|
89
|
+
✓ wrong party
|
|
90
|
+
✓ missing deviceKey
|
|
91
|
+
✓ tampered message
|
|
92
|
+
✓ tampered signature
|
|
93
|
+
✓ signature too old
|
|
94
|
+
✓ signature too far in future
|
|
95
|
+
✓ signature date invalid
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
64 passing (604ms)
|
|
99
|
+
|
|
100
|
+
OK in 1662 ms
|
|
101
|
+
|
|
102
|
+
Tests complete in 15435 ms
|
|
@@ -13,7 +13,7 @@ const encoding_down_1 = __importDefault(require("encoding-down"));
|
|
|
13
13
|
const levelup_1 = __importDefault(require("levelup"));
|
|
14
14
|
const memdown_1 = __importDefault(require("memdown"));
|
|
15
15
|
const node_assert_1 = __importDefault(require("node:assert"));
|
|
16
|
-
const
|
|
16
|
+
const async_1 = require("@dxos/async");
|
|
17
17
|
const protocols_1 = require("@dxos/protocols");
|
|
18
18
|
const log = (0, debug_1.default)('dxos:halo:keys:keystore'); // eslint-disable-line unused-imports/no-unused-vars
|
|
19
19
|
const marshaller = {
|
|
@@ -57,20 +57,20 @@ class KeyStore {
|
|
|
57
57
|
* Returns all lookup key strings.
|
|
58
58
|
*/
|
|
59
59
|
async getKeys() {
|
|
60
|
-
return (0,
|
|
60
|
+
return (0, async_1.streamToArray)(this._db.createKeyStream({ asBuffer: false }));
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
63
|
* Returns all KeyRecord values.
|
|
64
64
|
*/
|
|
65
65
|
async getRecords() {
|
|
66
|
-
const records = await (0,
|
|
66
|
+
const records = await (0, async_1.streamToArray)(this._db.createValueStream({ asBuffer: false }));
|
|
67
67
|
return records.map(record => marshaller.unmarshall(record));
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
70
|
* Returns all entries as key/value pairs.
|
|
71
71
|
*/
|
|
72
72
|
async getRecordsWithKey() {
|
|
73
|
-
const entries = await (0,
|
|
73
|
+
const entries = await (0, async_1.streamToArray)(this._db.createReadStream({ keyAsBuffer: false, valueAsBuffer: false }));
|
|
74
74
|
return entries.map(pair => [pair.key, marshaller.unmarshall(pair.value)]);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keystore.js","sourceRoot":"","sources":["../../../src/keys/keystore.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,gFAA8C;AAC9C,kDAA0B;AAC1B,kEAAmC;AACnC,sDAA2C;AAC3C,sDAA8B;AAC9B,8DAAiC;
|
|
1
|
+
{"version":3,"file":"keystore.js","sourceRoot":"","sources":["../../../src/keys/keystore.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAE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EG;IACH,KAAK,CAAC,SAAS,CAAE,GAAW;QAC1B,IAAA,qBAAM,EAAC,GAAG,CAAC,CAAC;QAEZ,OAAO,UAAU,CAAC,UAAU,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO;QACX,OAAO,IAAA,qBAAa,EAAC,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU;QACd,MAAM,OAAO,GAAG,MAAM,IAAA,qBAAa,EAAC,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;QACrF,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,iBAAiB;QACrB,MAAM,OAAO,GAAG,MAAM,IAAA,qBAAa,EAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;QAC7G,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AA7DD,4BA6DC"}
|
|
@@ -1,26 +1,35 @@
|
|
|
1
1
|
import substitutions from "../../../substitutions";
|
|
2
2
|
/**
|
|
3
3
|
* The payload for a SignedMessage sent during handshake for replication authentication.
|
|
4
|
+
*
|
|
5
|
+
* Defined in:
|
|
6
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/auth.proto}
|
|
4
7
|
*/
|
|
5
8
|
export interface Auth {
|
|
6
9
|
/**
|
|
7
10
|
* The publicKey of the target Party for these credentials.
|
|
8
11
|
*/
|
|
9
|
-
partyKey
|
|
12
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
10
13
|
/**
|
|
11
14
|
* The publicKey of the authenticating Device.
|
|
12
15
|
*/
|
|
13
|
-
deviceKey
|
|
16
|
+
deviceKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
14
17
|
/**
|
|
15
18
|
* The publicKey of the authenticating Identity.
|
|
16
19
|
*/
|
|
17
|
-
identityKey
|
|
20
|
+
identityKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
18
21
|
/**
|
|
19
22
|
* The publicKey of the authenticating Identity.
|
|
23
|
+
*
|
|
24
|
+
* Options:
|
|
25
|
+
* - proto3_optional = true
|
|
20
26
|
*/
|
|
21
27
|
feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
22
28
|
/**
|
|
23
29
|
* FeedAdmit message to the should be written to a control feed in case the `feedKey` is not admitted to the party.
|
|
30
|
+
*
|
|
31
|
+
* Options:
|
|
32
|
+
* - proto3_optional = true
|
|
24
33
|
*/
|
|
25
34
|
feedAdmit?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
26
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/auth.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAOnD
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/auth.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAOnD;;;;;GAKG;AACH,MAAM,WAAW,IAAI;IACjB;;OAEG;IACH,QAAQ,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChF;;OAEG;IACH,SAAS,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjF;;OAEG;IACH,WAAW,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnF;;;;;OAKG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChF;;;;;OAKG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;CACnF"}
|
|
@@ -2,13 +2,24 @@ import substitutions from "../../../substitutions";
|
|
|
2
2
|
import * as dxos_halo_keys from "../halo/keys";
|
|
3
3
|
/**
|
|
4
4
|
* A Greeter command.
|
|
5
|
+
*
|
|
6
|
+
* Defined in:
|
|
7
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
|
|
5
8
|
*/
|
|
6
9
|
export interface Command {
|
|
7
|
-
command
|
|
10
|
+
command: Command.Type;
|
|
11
|
+
/**
|
|
12
|
+
* Options:
|
|
13
|
+
* - proto3_optional = true
|
|
14
|
+
*/
|
|
8
15
|
secret?: Uint8Array;
|
|
9
16
|
params?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>[];
|
|
10
17
|
}
|
|
11
18
|
export declare namespace Command {
|
|
19
|
+
/**
|
|
20
|
+
* Defined in:
|
|
21
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
|
|
22
|
+
*/
|
|
12
23
|
enum Type {
|
|
13
24
|
BEGIN = 0,
|
|
14
25
|
HANDSHAKE = 1,
|
|
@@ -17,23 +28,43 @@ export declare namespace Command {
|
|
|
17
28
|
CLAIM = 10
|
|
18
29
|
}
|
|
19
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Defined in:
|
|
33
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
|
|
34
|
+
*/
|
|
20
35
|
export interface BeginResponse {
|
|
21
36
|
info?: Partial<Record<string, ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>>>;
|
|
22
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Defined in:
|
|
40
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
|
|
41
|
+
*/
|
|
23
42
|
export interface HandshakeResponse {
|
|
24
|
-
nonce
|
|
25
|
-
partyKey
|
|
43
|
+
nonce: Uint8Array;
|
|
44
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
26
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Defined in:
|
|
48
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
|
|
49
|
+
*/
|
|
27
50
|
export interface NotarizeResponse {
|
|
28
51
|
copies?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>[];
|
|
29
|
-
genesisFeed
|
|
52
|
+
genesisFeed: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
30
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* Defined in:
|
|
56
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
|
|
57
|
+
*/
|
|
31
58
|
export interface KeyHint {
|
|
32
|
-
publicKey
|
|
33
|
-
type
|
|
59
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
60
|
+
type: dxos_halo_keys.KeyType;
|
|
34
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Defined in:
|
|
64
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
|
|
65
|
+
*/
|
|
35
66
|
export interface ClaimResponse {
|
|
36
|
-
id
|
|
37
|
-
rendezvousKey
|
|
67
|
+
id: Uint8Array;
|
|
68
|
+
rendezvousKey: Uint8Array;
|
|
38
69
|
}
|
|
39
70
|
//# sourceMappingURL=greet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"greet.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/greet.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAKnD,OAAO,KAAK,cAAc,MAAM,cAAc,CAAC;AAE/C
|
|
1
|
+
{"version":3,"file":"greet.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/greet.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAKnD,OAAO,KAAK,cAAc,MAAM,cAAc,CAAC;AAE/C;;;;;GAKG;AACH,MAAM,WAAW,OAAO;IACpB,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC;IACtB;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,MAAM,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC;CAClF;AACD,yBAAiB,OAAO,CAAC;IACrB;;;OAGG;IACH,KAAY,IAAI;QACZ,KAAK,IAAI;QACT,SAAS,IAAI;QACb,QAAQ,IAAI;QACZ,MAAM,IAAI;QACV,KAAK,KAAK;KACb;CACJ;AACD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;CACvG;AACD;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAC9B,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;CACnF;AACD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC7B,MAAM,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC;IAC/E,WAAW,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;CACtF;AACD;;;GAGG;AACH,MAAM,WAAW,OAAO;IACpB,SAAS,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjF,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC;CAChC;AACD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,UAAU,CAAC;IACf,aAAa,EAAE,UAAU,CAAC;CAC7B"}
|
|
@@ -3,6 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Command = void 0;
|
|
4
4
|
var Command;
|
|
5
5
|
(function (Command) {
|
|
6
|
+
/**
|
|
7
|
+
* Defined in:
|
|
8
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
|
|
9
|
+
*/
|
|
6
10
|
let Type;
|
|
7
11
|
(function (Type) {
|
|
8
12
|
Type[Type["BEGIN"] = 0] = "BEGIN";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"greet.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/greet.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"greet.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/greet.ts"],"names":[],"mappings":";;;AAuBA,IAAiB,OAAO,CAYvB;AAZD,WAAiB,OAAO;IACpB;;;OAGG;IACH,IAAY,IAMX;IAND,WAAY,IAAI;QACZ,iCAAS,CAAA;QACT,yCAAa,CAAA;QACb,uCAAY,CAAA;QACZ,mCAAU,CAAA;QACV,kCAAU,CAAA;IACd,CAAC,EANW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAMf;AACL,CAAC,EAZgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAYvB"}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import substitutions from "../../../substitutions";
|
|
2
|
+
/**
|
|
3
|
+
* Defined in:
|
|
4
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/identity.proto}
|
|
5
|
+
*/
|
|
2
6
|
export interface IdentityInfo {
|
|
3
|
-
publicKey
|
|
4
|
-
displayName
|
|
7
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
8
|
+
displayName: string;
|
|
5
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* Defined in:
|
|
12
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/identity.proto}
|
|
13
|
+
*/
|
|
6
14
|
export interface DeviceInfo {
|
|
7
|
-
publicKey
|
|
8
|
-
displayName
|
|
15
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
16
|
+
displayName: string;
|
|
9
17
|
}
|
|
10
18
|
//# sourceMappingURL=identity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/identity.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAOnD,MAAM,WAAW,YAAY;IACzB,SAAS,
|
|
1
|
+
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/identity.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAOnD;;;GAGG;AACH,MAAM,WAAW,YAAY;IACzB,SAAS,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjF,WAAW,EAAE,MAAM,CAAC;CACvB;AACD;;;GAGG;AACH,MAAM,WAAW,UAAU;IACvB,SAAS,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjF,WAAW,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import substitutions from "../../../substitutions";
|
|
2
2
|
import * as dxos_credentials from "../credentials";
|
|
3
3
|
import * as dxos_halo_keys from "../halo/keys";
|
|
4
|
+
/**
|
|
5
|
+
* Defined in:
|
|
6
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
|
|
7
|
+
*/
|
|
4
8
|
export interface PartyCredential {
|
|
5
|
-
type
|
|
9
|
+
type: PartyCredential.Type;
|
|
6
10
|
envelope?: Envelope;
|
|
7
11
|
partyGenesis?: PartyGenesis;
|
|
8
12
|
keyAdmit?: KeyAdmit;
|
|
@@ -10,6 +14,10 @@ export interface PartyCredential {
|
|
|
10
14
|
feedGenesis?: FeedGenesis;
|
|
11
15
|
}
|
|
12
16
|
export declare namespace PartyCredential {
|
|
17
|
+
/**
|
|
18
|
+
* Defined in:
|
|
19
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
|
|
20
|
+
*/
|
|
13
21
|
enum Type {
|
|
14
22
|
ENVELOPE = 0,
|
|
15
23
|
PARTY_GENESIS = 1,
|
|
@@ -18,33 +26,57 @@ export declare namespace PartyCredential {
|
|
|
18
26
|
FEED_ADMIT = 4
|
|
19
27
|
}
|
|
20
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Defined in:
|
|
31
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
|
|
32
|
+
*/
|
|
21
33
|
export interface PartyGenesis {
|
|
22
|
-
partyKey
|
|
23
|
-
feedKey
|
|
24
|
-
admitKey
|
|
25
|
-
admitKeyType
|
|
34
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
35
|
+
feedKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
36
|
+
admitKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
37
|
+
admitKeyType: dxos_halo_keys.KeyType;
|
|
26
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Defined in:
|
|
41
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
|
|
42
|
+
*/
|
|
27
43
|
export interface KeyAdmit {
|
|
28
|
-
partyKey
|
|
29
|
-
admitKey
|
|
30
|
-
admitKeyType
|
|
44
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
45
|
+
admitKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
46
|
+
admitKeyType: dxos_halo_keys.KeyType;
|
|
31
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* Defined in:
|
|
50
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
|
|
51
|
+
*/
|
|
32
52
|
export interface FeedAdmit {
|
|
33
|
-
partyKey
|
|
34
|
-
feedKey
|
|
53
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
54
|
+
feedKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
35
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Defined in:
|
|
58
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
|
|
59
|
+
*/
|
|
36
60
|
export interface FeedGenesis {
|
|
37
|
-
feedKey
|
|
38
|
-
ownerKey
|
|
61
|
+
feedKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
62
|
+
ownerKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
39
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Defined in:
|
|
66
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
|
|
67
|
+
*/
|
|
40
68
|
export interface Envelope {
|
|
41
|
-
partyKey
|
|
42
|
-
message
|
|
69
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
70
|
+
message: dxos_credentials.Message;
|
|
43
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* Defined in:
|
|
74
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
|
|
75
|
+
*/
|
|
44
76
|
export interface PartyInvitation {
|
|
45
|
-
id
|
|
46
|
-
partyKey
|
|
47
|
-
issuerKey
|
|
48
|
-
inviteeKey
|
|
77
|
+
id: Uint8Array;
|
|
78
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
79
|
+
issuerKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
80
|
+
inviteeKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
49
81
|
}
|
|
50
82
|
//# sourceMappingURL=party.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"party.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/party.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,M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,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjF,UAAU,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;CACrF"}
|
|
@@ -3,6 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PartyCredential = void 0;
|
|
4
4
|
var PartyCredential;
|
|
5
5
|
(function (PartyCredential) {
|
|
6
|
+
/**
|
|
7
|
+
* Defined in:
|
|
8
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
|
|
9
|
+
*/
|
|
6
10
|
let Type;
|
|
7
11
|
(function (Type) {
|
|
8
12
|
Type[Type["ENVELOPE"] = 0] = "ENVELOPE";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"party.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/party.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"party.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/party.ts"],"names":[],"mappings":";;;AAoBA,IAAiB,eAAe,CAY/B;AAZD,WAAiB,eAAe;IAC5B;;;OAGG;IACH,IAAY,IAMX;IAND,WAAY,IAAI;QACZ,uCAAY,CAAA;QACZ,iDAAiB,CAAA;QACjB,+CAAgB,CAAA;QAChB,yCAAa,CAAA;QACb,2CAAc,CAAA;IAClB,CAAC,EANW,IAAI,GAAJ,oBAAI,KAAJ,oBAAI,QAMf;AACL,CAAC,EAZgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAY/B"}
|
|
@@ -1,24 +1,63 @@
|
|
|
1
1
|
import substitutions from "../../substitutions";
|
|
2
2
|
import * as dxos_halo_keys from "./halo/keys";
|
|
3
|
+
/**
|
|
4
|
+
* Defined in:
|
|
5
|
+
* {@link file://./../../../../../../common/protocols/src/proto/dxos/halo/signed.proto}
|
|
6
|
+
*/
|
|
3
7
|
export interface Message {
|
|
4
8
|
payload: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
5
9
|
}
|
|
6
10
|
/**
|
|
7
11
|
* A generic container message used whenever messages are signed (e.g. PartyCredential)
|
|
12
|
+
*
|
|
13
|
+
* Defined in:
|
|
14
|
+
* {@link file://./../../../../../../common/protocols/src/proto/dxos/halo/signed.proto}
|
|
8
15
|
*/
|
|
9
16
|
export interface SignedMessage {
|
|
17
|
+
/**
|
|
18
|
+
* The signed message contents.
|
|
19
|
+
*/
|
|
10
20
|
signed: SignedMessage.Signed;
|
|
21
|
+
/**
|
|
22
|
+
* An array of Signatures, one for each key that signed the message.
|
|
23
|
+
*/
|
|
11
24
|
signatures?: SignedMessage.Signature[];
|
|
12
25
|
}
|
|
13
26
|
export declare namespace SignedMessage {
|
|
27
|
+
/**
|
|
28
|
+
* Defined in:
|
|
29
|
+
* {@link file://./../../../../../../common/protocols/src/proto/dxos/halo/signed.proto}
|
|
30
|
+
*/
|
|
14
31
|
interface Signed {
|
|
32
|
+
/**
|
|
33
|
+
* RFC-3339 datetime string.
|
|
34
|
+
*/
|
|
15
35
|
created: string;
|
|
16
36
|
nonce: Uint8Array;
|
|
37
|
+
/**
|
|
38
|
+
* The payload to be signed.
|
|
39
|
+
*/
|
|
17
40
|
payload: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
18
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* Defined in:
|
|
44
|
+
* {@link file://./../../../../../../common/protocols/src/proto/dxos/halo/signed.proto}
|
|
45
|
+
*/
|
|
19
46
|
interface Signature {
|
|
47
|
+
/**
|
|
48
|
+
* The publicKey of the keypair that made this signature.
|
|
49
|
+
*/
|
|
20
50
|
key: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
51
|
+
/**
|
|
52
|
+
* The bytes of the signature.
|
|
53
|
+
*/
|
|
21
54
|
signature: Uint8Array;
|
|
55
|
+
/**
|
|
56
|
+
* The certification chain of SignedMessages for this key.
|
|
57
|
+
*
|
|
58
|
+
* Options:
|
|
59
|
+
* - proto3_optional = true
|
|
60
|
+
*/
|
|
22
61
|
keyChain?: dxos_halo_keys.KeyChain;
|
|
23
62
|
}
|
|
24
63
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../../src/proto/gen/dxos/credentials.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAKhD,OAAO,KAAK,cAAc,MAAM,aAAa,CAAC;AAE9C,MAAM,WAAW,OAAO;IACpB,OAAO,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;CAChF;AACD
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../../src/proto/gen/dxos/credentials.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAKhD,OAAO,KAAK,cAAc,MAAM,aAAa,CAAC;AAE9C;;;GAGG;AACH,MAAM,WAAW,OAAO;IACpB,OAAO,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;CAChF;AACD;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC;IAC7B;;OAEG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC,SAAS,EAAE,CAAC;CAC1C;AACD,yBAAiB,aAAa,CAAC;IAC3B;;;OAGG;IACH,UAAiB,MAAM;QACnB;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,UAAU,CAAC;QAClB;;WAEG;QACH,OAAO,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;K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