@nmshd/crypto 1.0.6 → 1.0.9
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/dist/CryptoPrivateKey.d.ts +8 -8
- package/dist/CryptoPrivateKey.js +13 -13
- package/dist/CryptoPrivateKey.js.map +1 -1
- package/dist/CryptoPublicKey.d.ts +8 -8
- package/dist/CryptoPublicKey.js +13 -13
- package/dist/CryptoPublicKey.js.map +1 -1
- package/dist/CryptoSerializable.d.ts +5 -0
- package/dist/CryptoSerializable.js +15 -0
- package/dist/CryptoSerializable.js.map +1 -0
- package/dist/SodiumWrapper.js +5 -1
- package/dist/SodiumWrapper.js.map +1 -1
- package/dist/buildInformation.js +5 -5
- package/dist/encryption/CryptoCipher.d.ts +6 -6
- package/dist/encryption/CryptoCipher.js +8 -8
- package/dist/encryption/CryptoCipher.js.map +1 -1
- package/dist/encryption/CryptoSecretKey.d.ts +6 -6
- package/dist/encryption/CryptoSecretKey.js +7 -7
- package/dist/encryption/CryptoSecretKey.js.map +1 -1
- package/dist/exchange/CryptoExchange.js +3 -3
- package/dist/exchange/CryptoExchange.js.map +1 -1
- package/dist/exchange/CryptoExchangeKeypair.d.ts +8 -8
- package/dist/exchange/CryptoExchangeKeypair.js +12 -16
- package/dist/exchange/CryptoExchangeKeypair.js.map +1 -1
- package/dist/exchange/CryptoExchangePrivateKey.d.ts +6 -6
- package/dist/exchange/CryptoExchangePrivateKey.js +4 -4
- package/dist/exchange/CryptoExchangePrivateKey.js.map +1 -1
- package/dist/exchange/CryptoExchangePublicKey.d.ts +4 -4
- package/dist/exchange/CryptoExchangePublicKey.js +7 -7
- package/dist/exchange/CryptoExchangePublicKey.js.map +1 -1
- package/dist/exchange/CryptoExchangeSecrets.d.ts +7 -7
- package/dist/exchange/CryptoExchangeSecrets.js +6 -6
- package/dist/exchange/CryptoExchangeSecrets.js.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/relationship/CryptoRelationshipPublicRequest.d.ts +8 -8
- package/dist/relationship/CryptoRelationshipPublicRequest.js +16 -20
- package/dist/relationship/CryptoRelationshipPublicRequest.js.map +1 -1
- package/dist/relationship/CryptoRelationshipPublicResponse.d.ts +8 -8
- package/dist/relationship/CryptoRelationshipPublicResponse.js +14 -18
- package/dist/relationship/CryptoRelationshipPublicResponse.js.map +1 -1
- package/dist/relationship/CryptoRelationshipRequestSecrets.d.ts +7 -7
- package/dist/relationship/CryptoRelationshipRequestSecrets.js +9 -9
- package/dist/relationship/CryptoRelationshipRequestSecrets.js.map +1 -1
- package/dist/relationship/CryptoRelationshipSecrets.d.ts +7 -7
- package/dist/relationship/CryptoRelationshipSecrets.js +10 -10
- package/dist/relationship/CryptoRelationshipSecrets.js.map +1 -1
- package/dist/signature/CryptoSignature.d.ts +8 -8
- package/dist/signature/CryptoSignature.js +8 -8
- package/dist/signature/CryptoSignature.js.map +1 -1
- package/dist/signature/CryptoSignatureKeypair.d.ts +8 -8
- package/dist/signature/CryptoSignatureKeypair.js +12 -16
- package/dist/signature/CryptoSignatureKeypair.js.map +1 -1
- package/dist/signature/CryptoSignaturePrivateKey.d.ts +6 -6
- package/dist/signature/CryptoSignaturePrivateKey.js +6 -6
- package/dist/signature/CryptoSignaturePrivateKey.js.map +1 -1
- package/dist/signature/CryptoSignaturePublicKey.d.ts +6 -6
- package/dist/signature/CryptoSignaturePublicKey.js +7 -7
- package/dist/signature/CryptoSignaturePublicKey.js.map +1 -1
- package/dist/signature/CryptoSignatures.js +1 -1
- package/dist/signature/CryptoSignatures.js.map +1 -1
- package/dist/state/CryptoPrivateState.d.ts +6 -6
- package/dist/state/CryptoPrivateState.js +5 -5
- package/dist/state/CryptoPrivateState.js.map +1 -1
- package/dist/state/CryptoPrivateStateReceive.d.ts +3 -3
- package/dist/state/CryptoPrivateStateReceive.js +4 -4
- package/dist/state/CryptoPrivateStateReceive.js.map +1 -1
- package/dist/state/CryptoPrivateStateTransmit.d.ts +3 -3
- package/dist/state/CryptoPrivateStateTransmit.js +4 -4
- package/dist/state/CryptoPrivateStateTransmit.js.map +1 -1
- package/dist/state/CryptoPublicState.d.ts +7 -7
- package/dist/state/CryptoPublicState.js +7 -7
- package/dist/state/CryptoPublicState.js.map +1 -1
- package/dist/stream/CryptoStreamAddress.d.ts +5 -5
- package/dist/stream/CryptoStreamAddress.js +5 -5
- package/dist/stream/CryptoStreamAddress.js.map +1 -1
- package/dist/stream/CryptoStreamHeader.d.ts +6 -6
- package/dist/stream/CryptoStreamHeader.js +4 -4
- package/dist/stream/CryptoStreamHeader.js.map +1 -1
- package/dist/stream/CryptoStreamState.d.ts +5 -5
- package/dist/stream/CryptoStreamState.js +6 -6
- package/dist/stream/CryptoStreamState.js.map +1 -1
- package/lib-web/nmshd.crypto.js +221 -238
- package/lib-web/nmshd.crypto.js.map +1 -1
- package/lib-web/nmshd.crypto.min.js +1 -1
- package/lib-web/nmshd.crypto.min.js.map +1 -1
- package/package.json +19 -19
- package/dist/CryptoSerializableAsync.d.ts +0 -5
- package/dist/CryptoSerializableAsync.js +0 -24
- package/dist/CryptoSerializableAsync.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISerializable, ISerialized } from "@js-soft/ts-serval";
|
|
2
2
|
import { CoreBuffer, IClearable, ICoreBuffer } from "../CoreBuffer";
|
|
3
3
|
import { CryptoPrivateKey } from "../CryptoPrivateKey";
|
|
4
4
|
import { CryptoExchangeAlgorithm } from "./CryptoExchange";
|
|
@@ -7,7 +7,7 @@ export interface ICryptoExchangePrivateKeySerialized extends ISerialized {
|
|
|
7
7
|
alg: number;
|
|
8
8
|
prv: string;
|
|
9
9
|
}
|
|
10
|
-
export interface ICryptoExchangePrivateKey extends
|
|
10
|
+
export interface ICryptoExchangePrivateKey extends ISerializable {
|
|
11
11
|
algorithm: CryptoExchangeAlgorithm;
|
|
12
12
|
privateKey: ICoreBuffer;
|
|
13
13
|
}
|
|
@@ -20,8 +20,8 @@ export declare class CryptoExchangePrivateKey extends CryptoPrivateKey implement
|
|
|
20
20
|
serialize(verbose?: boolean): string;
|
|
21
21
|
toBase64(verbose?: boolean): string;
|
|
22
22
|
toPublicKey(): Promise<CryptoExchangePublicKey>;
|
|
23
|
-
static from(value: CryptoExchangePrivateKey | ICryptoExchangePrivateKey):
|
|
24
|
-
static fromJSON(value: ICryptoExchangePrivateKeySerialized):
|
|
25
|
-
static fromBase64(value: string):
|
|
26
|
-
static deserialize(value: string):
|
|
23
|
+
static from(value: CryptoExchangePrivateKey | ICryptoExchangePrivateKey): CryptoExchangePrivateKey;
|
|
24
|
+
static fromJSON(value: ICryptoExchangePrivateKeySerialized): CryptoExchangePrivateKey;
|
|
25
|
+
static fromBase64(value: string): CryptoExchangePrivateKey;
|
|
26
|
+
static deserialize(value: string): CryptoExchangePrivateKey;
|
|
27
27
|
}
|
|
@@ -47,19 +47,19 @@ let CryptoExchangePrivateKey = CryptoExchangePrivateKey_1 = class CryptoExchange
|
|
|
47
47
|
return await CryptoExchange_1.CryptoExchange.privateKeyToPublicKey(this);
|
|
48
48
|
}
|
|
49
49
|
static from(value) {
|
|
50
|
-
return
|
|
50
|
+
return new CryptoExchangePrivateKey_1(value.algorithm, CoreBuffer_1.CoreBuffer.from(value.privateKey));
|
|
51
51
|
}
|
|
52
52
|
static fromJSON(value) {
|
|
53
53
|
CryptoExchangeValidation_1.CryptoExchangeValidation.checkExchangeAlgorithm(value.alg);
|
|
54
54
|
CryptoExchangeValidation_1.CryptoExchangeValidation.checkExchangePrivateKeyAsNumber(value.prv, value.alg, "privateKey");
|
|
55
55
|
const buffer = CoreBuffer_1.CoreBuffer.fromBase64URL(value.prv);
|
|
56
|
-
return
|
|
56
|
+
return new CryptoExchangePrivateKey_1(value.alg, buffer);
|
|
57
57
|
}
|
|
58
58
|
static fromBase64(value) {
|
|
59
59
|
return this.deserialize(CoreBuffer_1.CoreBuffer.base64_utf8(value));
|
|
60
60
|
}
|
|
61
|
-
static
|
|
62
|
-
return
|
|
61
|
+
static deserialize(value) {
|
|
62
|
+
return this.fromJSON(JSON.parse(value));
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
CryptoExchangePrivateKey = CryptoExchangePrivateKey_1 = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CryptoExchangePrivateKey.js","sourceRoot":"","sources":["../../src/exchange/CryptoExchangePrivateKey.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"CryptoExchangePrivateKey.js","sourceRoot":"","sources":["../../src/exchange/CryptoExchangePrivateKey.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAsE;AACtE,8CAAoE;AACpE,0DAAuD;AACvD,qDAA2E;AAE3E,yEAAsE;AAatE,IAAa,wBAAwB,gCAArC,MAAa,wBAAyB,SAAQ,mCAAgB;IAI1D,YAAmB,SAAkC,EAAE,UAAsB;QACzE,mDAAwB,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC;QAC3D,mDAAwB,CAAC,+BAA+B,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;QAEhF,KAAK,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;QAE7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAEM,MAAM,CAAC,OAAO,GAAG,IAAI;QACxB,MAAM,GAAG,GAAwC;YAC7C,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE;YAClC,GAAG,EAAE,IAAI,CAAC,SAAS;SACtB,CAAC;QACF,IAAI,OAAO,EAAE;YACT,GAAG,CAAC,OAAO,CAAC,GAAG,0BAA0B,CAAC;SAC7C;QACD,OAAO,GAAG,CAAC;IACf,CAAC;IAEM,KAAK;QACR,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IAC5B,CAAC;IAEM,SAAS,CAAC,OAAO,GAA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uBAAU;GAJpE,wBAAwB,CAgEpC;AAhEY,4DAAwB"}
|
|
@@ -16,8 +16,8 @@ export declare class CryptoExchangePublicKey extends CryptoPublicKey implements
|
|
|
16
16
|
constructor(algorithm: CryptoExchangeAlgorithm, publicKey: CoreBuffer);
|
|
17
17
|
toJSON(verbose?: boolean): ICryptoExchangePublicKeySerialized;
|
|
18
18
|
clear(): void;
|
|
19
|
-
static from(value: CryptoExchangePublicKey | ICryptoExchangePublicKey):
|
|
20
|
-
static fromJSON(value: ICryptoExchangePublicKeySerialized):
|
|
21
|
-
static fromBase64(value: string):
|
|
22
|
-
static deserialize(value: string):
|
|
19
|
+
static from(value: CryptoExchangePublicKey | ICryptoExchangePublicKey): CryptoExchangePublicKey;
|
|
20
|
+
static fromJSON(value: ICryptoExchangePublicKeySerialized): CryptoExchangePublicKey;
|
|
21
|
+
static fromBase64(value: string): CryptoExchangePublicKey;
|
|
22
|
+
static deserialize(value: string): CryptoExchangePublicKey;
|
|
23
23
|
}
|
|
@@ -37,23 +37,23 @@ let CryptoExchangePublicKey = CryptoExchangePublicKey_1 = class CryptoExchangePu
|
|
|
37
37
|
this.publicKey.clear();
|
|
38
38
|
}
|
|
39
39
|
static from(value) {
|
|
40
|
-
return
|
|
40
|
+
return new CryptoExchangePublicKey_1(value.algorithm, value.publicKey);
|
|
41
41
|
}
|
|
42
|
-
static
|
|
42
|
+
static fromJSON(value) {
|
|
43
43
|
CryptoExchangeValidation_1.CryptoExchangeValidation.checkExchangeAlgorithm(value.alg);
|
|
44
44
|
CryptoExchangeValidation_1.CryptoExchangeValidation.checkExchangePrivateKeyAsNumber(value.pub, value.alg, "publicKey");
|
|
45
45
|
const buffer = CoreBuffer_1.CoreBuffer.fromBase64URL(value.pub);
|
|
46
|
-
return
|
|
46
|
+
return this.from({
|
|
47
47
|
algorithm: value.alg,
|
|
48
48
|
publicKey: buffer
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
static
|
|
52
|
-
return
|
|
51
|
+
static fromBase64(value) {
|
|
52
|
+
return this.deserialize(CoreBuffer_1.CoreBuffer.base64_utf8(value));
|
|
53
53
|
}
|
|
54
|
-
static
|
|
54
|
+
static deserialize(value) {
|
|
55
55
|
const obj = JSON.parse(value);
|
|
56
|
-
return
|
|
56
|
+
return this.fromJSON(obj);
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
CryptoExchangePublicKey = CryptoExchangePublicKey_1 = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CryptoExchangePublicKey.js","sourceRoot":"","sources":["../../src/exchange/CryptoExchangePublicKey.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAuD;AACvD,8CAAuD;AACvD,wDAAqD;AAErD,yEAAsE;AAatE,IAAa,uBAAuB,+BAApC,MAAa,uBAAwB,SAAQ,iCAAe;IAIxD,YAAmB,SAAkC,EAAE,SAAqB;QACxE,mDAAwB,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC;QAC3D,mDAAwB,CAAC,8BAA8B,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QAE9E,KAAK,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QAE5B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,OAAO,GAAG,IAAI;QACxB,MAAM,GAAG,GAAuC;YAC5C,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;YACjC,GAAG,EAAE,IAAI,CAAC,SAAS;SACtB,CAAC;QACF,IAAI,OAAO,EAAE;YACT,GAAG,CAAC,OAAO,CAAC,GAAG,yBAAyB,CAAC;SAC5C;QACD,OAAO,GAAG,CAAC;IACf,CAAC;IAEM,KAAK;QACR,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;IAC3B,CAAC;IAEM,MAAM,CAAC,IAAI,CAAC,KAAyD;QACxE,OAAO,
|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AM,MAAM,GAAG,uBAAU,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACnD,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,SAAS,EAAE,KAAK,CAAC,GAA8B;YAC/C,SAAS,EAAE,MAAM;SACpB,CAAC,CAAC;IACP,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,KAAa;QAClC,OAAO,IAAI,CAAC,WAAW,CAAC,uBAAU,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3D,CAAC;IAEM,MAAM,CAAC,WAAW,CAAC,KAAa;QACnC,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9B,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;CACJ,CAAA;AAxDY,uBAAuB;IADnC,IAAA,gBAAI,EAAC,yBAAyB,CAAC;6CAKsC,uBAAU;GAJnE,uBAAuB,CAwDnC;AAxDY,0DAAuB"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISerializable, ISerialized } from "@js-soft/ts-serval";
|
|
2
2
|
import { CoreBuffer, IClearable, ICoreBuffer } from "../CoreBuffer";
|
|
3
|
-
import {
|
|
3
|
+
import { CryptoSerializable } from "../CryptoSerializable";
|
|
4
4
|
import { CryptoEncryptionAlgorithm } from "../encryption/CryptoEncryption";
|
|
5
5
|
export interface ICryptoExchangeSecretsSerialized extends ISerialized {
|
|
6
6
|
alg: CryptoEncryptionAlgorithm;
|
|
7
7
|
rx: string;
|
|
8
8
|
tx: string;
|
|
9
9
|
}
|
|
10
|
-
export interface ICryptoExchangeSecrets extends
|
|
10
|
+
export interface ICryptoExchangeSecrets extends ISerializable {
|
|
11
11
|
algorithm: CryptoEncryptionAlgorithm;
|
|
12
12
|
receivingKey: ICoreBuffer;
|
|
13
13
|
transmissionKey: ICoreBuffer;
|
|
14
14
|
}
|
|
15
|
-
export declare class CryptoExchangeSecrets extends
|
|
15
|
+
export declare class CryptoExchangeSecrets extends CryptoSerializable implements ICryptoExchangeSecrets, IClearable {
|
|
16
16
|
readonly algorithm: CryptoEncryptionAlgorithm;
|
|
17
17
|
readonly receivingKey: CoreBuffer;
|
|
18
18
|
readonly transmissionKey: CoreBuffer;
|
|
@@ -21,8 +21,8 @@ export declare class CryptoExchangeSecrets extends CryptoSerializableAsync imple
|
|
|
21
21
|
clear(): void;
|
|
22
22
|
serialize(verbose?: boolean): string;
|
|
23
23
|
toBase64(verbose?: boolean): string;
|
|
24
|
-
static from(value: CryptoExchangeSecrets | ICryptoExchangeSecrets):
|
|
25
|
-
static fromJSON(value: ICryptoExchangeSecretsSerialized):
|
|
24
|
+
static from(value: CryptoExchangeSecrets | ICryptoExchangeSecrets): CryptoExchangeSecrets;
|
|
25
|
+
static fromJSON(value: ICryptoExchangeSecretsSerialized): CryptoExchangeSecrets;
|
|
26
26
|
static fromBase64(value: string): Promise<CryptoExchangeSecrets>;
|
|
27
|
-
static deserialize(value: string):
|
|
27
|
+
static deserialize(value: string): CryptoExchangeSecrets;
|
|
28
28
|
}
|
|
@@ -13,8 +13,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
exports.CryptoExchangeSecrets = void 0;
|
|
14
14
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
15
|
const CoreBuffer_1 = require("../CoreBuffer");
|
|
16
|
-
const
|
|
17
|
-
let CryptoExchangeSecrets = CryptoExchangeSecrets_1 = class CryptoExchangeSecrets extends
|
|
16
|
+
const CryptoSerializable_1 = require("../CryptoSerializable");
|
|
17
|
+
let CryptoExchangeSecrets = CryptoExchangeSecrets_1 = class CryptoExchangeSecrets extends CryptoSerializable_1.CryptoSerializable {
|
|
18
18
|
constructor(receivingKey, transmissionKey, algorithm) {
|
|
19
19
|
super();
|
|
20
20
|
this.receivingKey = receivingKey;
|
|
@@ -49,7 +49,7 @@ let CryptoExchangeSecrets = CryptoExchangeSecrets_1 = class CryptoExchangeSecret
|
|
|
49
49
|
}
|
|
50
50
|
const receivingKey = CoreBuffer_1.CoreBuffer.from(value.receivingKey);
|
|
51
51
|
const transmissionKey = CoreBuffer_1.CoreBuffer.from(value.transmissionKey);
|
|
52
|
-
return
|
|
52
|
+
return new CryptoExchangeSecrets_1(receivingKey, transmissionKey, value.algorithm);
|
|
53
53
|
}
|
|
54
54
|
static fromJSON(value) {
|
|
55
55
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
@@ -58,14 +58,14 @@ let CryptoExchangeSecrets = CryptoExchangeSecrets_1 = class CryptoExchangeSecret
|
|
|
58
58
|
}
|
|
59
59
|
const receivingKey = CoreBuffer_1.CoreBuffer.fromBase64URL(value.rx);
|
|
60
60
|
const transmissionKey = CoreBuffer_1.CoreBuffer.fromBase64URL(value.tx);
|
|
61
|
-
return
|
|
61
|
+
return new CryptoExchangeSecrets_1(receivingKey, transmissionKey, value.alg);
|
|
62
62
|
}
|
|
63
63
|
static fromBase64(value) {
|
|
64
64
|
return Promise.resolve(this.deserialize(CoreBuffer_1.CoreBuffer.base64_utf8(value)));
|
|
65
65
|
}
|
|
66
|
-
static
|
|
66
|
+
static deserialize(value) {
|
|
67
67
|
const obj = JSON.parse(value);
|
|
68
|
-
return
|
|
68
|
+
return this.fromJSON(obj);
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
CryptoExchangeSecrets = CryptoExchangeSecrets_1 = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CryptoExchangeSecrets.js","sourceRoot":"","sources":["../../src/exchange/CryptoExchangeSecrets.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"CryptoExchangeSecrets.js","sourceRoot":"","sources":["../../src/exchange/CryptoExchangeSecrets.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAsE;AACtE,8CAAoE;AACpE,8DAA2D;AAgB3D,IAAa,qBAA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
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,qDAAmC;AACnC,+CAA6B;AAC7B,qDAAmC;AACnC,gDAA8B;AAC9B,oDAAkC;AAClC,qDAAmC;AACnC,oDAAkC;AAClC,qDAAmC;AACnC,4DAA0C;AAC1C,gEAA8C;AAC9C,+DAA6C;AAC7C,4DAA0C;AAC1C,mEAAiD;AACjD,sEAAoD;AACpD,qEAAmD;AACnD,mEAAiD;AACjD,sEAAoD;AACpD,oDAAkC;AAClC,mEAAiD;AACjD,wDAAsC;AACtC,iFAA+D;AAC/D,kFAAgE;AAChE,kFAAgE;AAChE,2EAAyD;AACzD,wEAAsD;AACtD,8DAA4C;AAC5C,qEAAmD;AACnD,wEAAsD;AACtD,uEAAqD;AACrD,+DAA6C;AAC7C,wEAAsD;AACtD,kDAAgC;AAChC,6DAA2C;AAC3C,oEAAkD;AAClD,qEAAmD;AACnD,4DAA0C;AAC1C,0DAAwC;AACxC,wDAAsC;AACtC,+DAA6C;AAC7C,6DAA2C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISerializable, ISerialized } from "@js-soft/ts-serval";
|
|
2
2
|
import { CoreBuffer, IClearable, ICoreBuffer } from "../CoreBuffer";
|
|
3
|
-
import {
|
|
3
|
+
import { CryptoSerializable } from "../CryptoSerializable";
|
|
4
4
|
import { CryptoExchangePublicKey, ICryptoExchangePublicKey, ICryptoExchangePublicKeySerialized } from "../exchange/CryptoExchangePublicKey";
|
|
5
5
|
import { CryptoSignaturePublicKey, ICryptoSignaturePublicKey, ICryptoSignaturePublicKeySerialized } from "../signature/CryptoSignaturePublicKey";
|
|
6
6
|
export interface ICryptoRelationshipPublicRequestSerialized extends ISerialized {
|
|
@@ -10,14 +10,14 @@ export interface ICryptoRelationshipPublicRequestSerialized extends ISerialized
|
|
|
10
10
|
eph: ICryptoExchangePublicKeySerialized;
|
|
11
11
|
nnc: string;
|
|
12
12
|
}
|
|
13
|
-
export interface ICryptoRelationshipPublicRequest extends
|
|
13
|
+
export interface ICryptoRelationshipPublicRequest extends ISerializable {
|
|
14
14
|
id?: string;
|
|
15
15
|
exchangeKey: ICryptoExchangePublicKey;
|
|
16
16
|
signatureKey: ICryptoSignaturePublicKey;
|
|
17
17
|
ephemeralKey: ICryptoExchangePublicKey;
|
|
18
18
|
nonce: ICoreBuffer;
|
|
19
19
|
}
|
|
20
|
-
export declare class CryptoRelationshipPublicRequest extends
|
|
20
|
+
export declare class CryptoRelationshipPublicRequest extends CryptoSerializable implements ICryptoRelationshipPublicRequest, IClearable {
|
|
21
21
|
id?: string;
|
|
22
22
|
signatureKey: CryptoSignaturePublicKey;
|
|
23
23
|
exchangeKey: CryptoExchangePublicKey;
|
|
@@ -26,8 +26,8 @@ export declare class CryptoRelationshipPublicRequest extends CryptoSerializableA
|
|
|
26
26
|
constructor(signatureKey: CryptoSignaturePublicKey, exchangeKey: CryptoExchangePublicKey, ephemeralKey: CryptoExchangePublicKey, nonce: CoreBuffer);
|
|
27
27
|
toJSON(verbose?: boolean): ICryptoRelationshipPublicRequestSerialized;
|
|
28
28
|
clear(): void;
|
|
29
|
-
static from(value: CryptoRelationshipPublicRequest | ICryptoRelationshipPublicRequest):
|
|
30
|
-
static fromJSON(value: ICryptoRelationshipPublicRequestSerialized):
|
|
31
|
-
static fromBase64(value: string):
|
|
32
|
-
static deserialize(value: string):
|
|
29
|
+
static from(value: CryptoRelationshipPublicRequest | ICryptoRelationshipPublicRequest): CryptoRelationshipPublicRequest;
|
|
30
|
+
static fromJSON(value: ICryptoRelationshipPublicRequestSerialized): CryptoRelationshipPublicRequest;
|
|
31
|
+
static fromBase64(value: string): CryptoRelationshipPublicRequest;
|
|
32
|
+
static deserialize(value: string): CryptoRelationshipPublicRequest;
|
|
33
33
|
}
|
|
@@ -13,10 +13,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
exports.CryptoRelationshipPublicRequest = void 0;
|
|
14
14
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
15
|
const CoreBuffer_1 = require("../CoreBuffer");
|
|
16
|
-
const
|
|
16
|
+
const CryptoSerializable_1 = require("../CryptoSerializable");
|
|
17
17
|
const CryptoExchangePublicKey_1 = require("../exchange/CryptoExchangePublicKey");
|
|
18
18
|
const CryptoSignaturePublicKey_1 = require("../signature/CryptoSignaturePublicKey");
|
|
19
|
-
let CryptoRelationshipPublicRequest = CryptoRelationshipPublicRequest_1 = class CryptoRelationshipPublicRequest extends
|
|
19
|
+
let CryptoRelationshipPublicRequest = CryptoRelationshipPublicRequest_1 = class CryptoRelationshipPublicRequest extends CryptoSerializable_1.CryptoSerializable {
|
|
20
20
|
constructor(signatureKey, exchangeKey, ephemeralKey, nonce) {
|
|
21
21
|
super();
|
|
22
22
|
this.signatureKey = signatureKey;
|
|
@@ -42,29 +42,25 @@ let CryptoRelationshipPublicRequest = CryptoRelationshipPublicRequest_1 = class
|
|
|
42
42
|
this.ephemeralKey.clear();
|
|
43
43
|
this.nonce.clear();
|
|
44
44
|
}
|
|
45
|
-
static
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
CoreBuffer_1.CoreBuffer.from(value.nonce)
|
|
51
|
-
]);
|
|
45
|
+
static from(value) {
|
|
46
|
+
const signatureKey = CryptoSignaturePublicKey_1.CryptoSignaturePublicKey.from(value.signatureKey);
|
|
47
|
+
const exchangeKey = CryptoExchangePublicKey_1.CryptoExchangePublicKey.from(value.exchangeKey);
|
|
48
|
+
const ephemeralKey = CryptoExchangePublicKey_1.CryptoExchangePublicKey.from(value.ephemeralKey);
|
|
49
|
+
const nonce = CoreBuffer_1.CoreBuffer.from(value.nonce);
|
|
52
50
|
return new CryptoRelationshipPublicRequest_1(signatureKey, exchangeKey, ephemeralKey, nonce);
|
|
53
51
|
}
|
|
54
|
-
static
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
CoreBuffer_1.CoreBuffer.fromBase64URL(value.nnc)
|
|
60
|
-
]);
|
|
52
|
+
static fromJSON(value) {
|
|
53
|
+
const signatureKey = CryptoSignaturePublicKey_1.CryptoSignaturePublicKey.fromJSON(value.sig);
|
|
54
|
+
const exchangeKey = CryptoExchangePublicKey_1.CryptoExchangePublicKey.fromJSON(value.exc);
|
|
55
|
+
const ephemeralKey = CryptoExchangePublicKey_1.CryptoExchangePublicKey.fromJSON(value.eph);
|
|
56
|
+
const nonce = CoreBuffer_1.CoreBuffer.fromBase64URL(value.nnc);
|
|
61
57
|
return new CryptoRelationshipPublicRequest_1(signatureKey, exchangeKey, ephemeralKey, nonce);
|
|
62
58
|
}
|
|
63
|
-
static
|
|
64
|
-
return
|
|
59
|
+
static fromBase64(value) {
|
|
60
|
+
return this.deserialize(CoreBuffer_1.CoreBuffer.base64_utf8(value));
|
|
65
61
|
}
|
|
66
|
-
static
|
|
67
|
-
return
|
|
62
|
+
static deserialize(value) {
|
|
63
|
+
return this.fromJSON(JSON.parse(value));
|
|
68
64
|
}
|
|
69
65
|
};
|
|
70
66
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CryptoRelationshipPublicRequest.js","sourceRoot":"","sources":["../../src/relationship/CryptoRelationshipPublicRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"CryptoRelationshipPublicRequest.js","sourceRoot":"","sources":["../../src/relationship/CryptoRelationshipPublicRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA2F;AAC3F,8CAAoE;AACpE,8DAA2D;AAC3D,iFAI6C;AAC7C,oFAI+C;AAmB/C,IAAa,+BAA+B,uCAA5C,MAAa,+BACT,SAAQ,uCAAkB;IAuB1B,YACI,YAAsC,EACtC,WAAoC,EACpC,YAAqC,EACrC,KAAiB;QAEjB,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAEM,MAAM,CAAC,OAAO,GAAG,IAAI;QACxB,MAAM,GAAG,GAA+C;YACpD,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC;YACnC,GAAG,EAAE,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC;YACpC,GAAG,EAAE,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC;YACpC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE;SAChC,CAAC;QACF,IAAI,OAAO,EAAE;YACT,GAAG,CAAC,OAAO,CAAC,GAAG,iCAAiC,CAAC;SACpD;QACD,OAAO,GAAG,CAAC;IACf,CAAC;IAEM,KAAK;QACR,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;QACzB,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;QAC1B,IAAI,C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,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5C,CAAC;CACJ,CAAA;AA/EG;IAFC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;;2DACO;AAInB;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACS,mDAAwB;qEAAC;AAI9C;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACQ,iDAAuB;oEAAC;AAI5C;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACS,iDAAuB;qEAAC;AAI7C;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACE,uBAAU;8DAAC;AAtBhB,+BAA+B;IAD3C,IAAA,gBAAI,EAAC,iCAAiC,CAAC;qCA0BlB,mDAAwB;QACzB,iDAAuB;QACtB,iDAAuB;QAC9B,uBAAU;GA5BZ,+BAA+B,CAqF3C;AArFY,0EAA+B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISerializable, ISerialized } from "@js-soft/ts-serval";
|
|
2
2
|
import { CoreBuffer, IClearable } from "../CoreBuffer";
|
|
3
|
-
import {
|
|
3
|
+
import { CryptoSerializable } from "../CryptoSerializable";
|
|
4
4
|
import { CryptoExchangePublicKey, ICryptoExchangePublicKey, ICryptoExchangePublicKeySerialized } from "../exchange/CryptoExchangePublicKey";
|
|
5
5
|
import { CryptoSignature } from "../signature/CryptoSignature";
|
|
6
6
|
import { CryptoSignaturePublicKey, ICryptoSignaturePublicKey, ICryptoSignaturePublicKeySerialized } from "../signature/CryptoSignaturePublicKey";
|
|
@@ -11,13 +11,13 @@ export interface ICryptoRelationshipPublicResponseSerialized extends ISerialized
|
|
|
11
11
|
sig: ICryptoSignaturePublicKeySerialized;
|
|
12
12
|
sta: ICryptoPublicStateSerialized;
|
|
13
13
|
}
|
|
14
|
-
export interface ICryptoRelationshipPublicResponse extends
|
|
14
|
+
export interface ICryptoRelationshipPublicResponse extends ISerializable {
|
|
15
15
|
id?: string;
|
|
16
16
|
exchangeKey: ICryptoExchangePublicKey;
|
|
17
17
|
signatureKey: ICryptoSignaturePublicKey;
|
|
18
18
|
state: ICryptoPublicState;
|
|
19
19
|
}
|
|
20
|
-
export declare class CryptoRelationshipPublicResponse extends
|
|
20
|
+
export declare class CryptoRelationshipPublicResponse extends CryptoSerializable implements ICryptoRelationshipPublicResponse, IClearable {
|
|
21
21
|
id?: string;
|
|
22
22
|
signatureKey: CryptoSignaturePublicKey;
|
|
23
23
|
exchangeKey: CryptoExchangePublicKey;
|
|
@@ -26,8 +26,8 @@ export declare class CryptoRelationshipPublicResponse extends CryptoSerializable
|
|
|
26
26
|
toJSON(verbose?: boolean): ICryptoRelationshipPublicResponseSerialized;
|
|
27
27
|
clear(): void;
|
|
28
28
|
verify(content: CoreBuffer, signature: CryptoSignature): Promise<boolean>;
|
|
29
|
-
static from(value: CryptoRelationshipPublicResponse | ICryptoRelationshipPublicResponse):
|
|
30
|
-
static fromJSON(value: ICryptoRelationshipPublicResponseSerialized):
|
|
31
|
-
static fromBase64(value: string):
|
|
32
|
-
static deserialize(value: string):
|
|
29
|
+
static from(value: CryptoRelationshipPublicResponse | ICryptoRelationshipPublicResponse): CryptoRelationshipPublicResponse;
|
|
30
|
+
static fromJSON(value: ICryptoRelationshipPublicResponseSerialized): CryptoRelationshipPublicResponse;
|
|
31
|
+
static fromBase64(value: string): CryptoRelationshipPublicResponse;
|
|
32
|
+
static deserialize(value: string): CryptoRelationshipPublicResponse;
|
|
33
33
|
}
|
|
@@ -13,12 +13,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
exports.CryptoRelationshipPublicResponse = void 0;
|
|
14
14
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
15
|
const CoreBuffer_1 = require("../CoreBuffer");
|
|
16
|
-
const
|
|
16
|
+
const CryptoSerializable_1 = require("../CryptoSerializable");
|
|
17
17
|
const CryptoExchangePublicKey_1 = require("../exchange/CryptoExchangePublicKey");
|
|
18
18
|
const CryptoSignaturePublicKey_1 = require("../signature/CryptoSignaturePublicKey");
|
|
19
19
|
const CryptoSignatures_1 = require("../signature/CryptoSignatures");
|
|
20
20
|
const CryptoPublicState_1 = require("../state/CryptoPublicState");
|
|
21
|
-
let CryptoRelationshipPublicResponse = CryptoRelationshipPublicResponse_1 = class CryptoRelationshipPublicResponse extends
|
|
21
|
+
let CryptoRelationshipPublicResponse = CryptoRelationshipPublicResponse_1 = class CryptoRelationshipPublicResponse extends CryptoSerializable_1.CryptoSerializable {
|
|
22
22
|
constructor(signatureKey, exchangeKey, state) {
|
|
23
23
|
super();
|
|
24
24
|
this.signatureKey = signatureKey;
|
|
@@ -44,27 +44,23 @@ let CryptoRelationshipPublicResponse = CryptoRelationshipPublicResponse_1 = clas
|
|
|
44
44
|
async verify(content, signature) {
|
|
45
45
|
return await CryptoSignatures_1.CryptoSignatures.verify(content, signature, this.signatureKey);
|
|
46
46
|
}
|
|
47
|
-
static
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
CryptoPublicState_1.CryptoPublicState.from(value.state)
|
|
52
|
-
]);
|
|
47
|
+
static from(value) {
|
|
48
|
+
const signatureKey = CryptoSignaturePublicKey_1.CryptoSignaturePublicKey.from(value.signatureKey);
|
|
49
|
+
const exchangeKey = CryptoExchangePublicKey_1.CryptoExchangePublicKey.from(value.exchangeKey);
|
|
50
|
+
const state = CryptoPublicState_1.CryptoPublicState.from(value.state);
|
|
53
51
|
return new CryptoRelationshipPublicResponse_1(signatureKey, exchangeKey, state);
|
|
54
52
|
}
|
|
55
|
-
static
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
CryptoPublicState_1.CryptoPublicState.fromJSON(value.sta)
|
|
60
|
-
]);
|
|
53
|
+
static fromJSON(value) {
|
|
54
|
+
const signatureKey = CryptoSignaturePublicKey_1.CryptoSignaturePublicKey.fromJSON(value.sig);
|
|
55
|
+
const exchangeKey = CryptoExchangePublicKey_1.CryptoExchangePublicKey.fromJSON(value.exc);
|
|
56
|
+
const state = CryptoPublicState_1.CryptoPublicState.fromJSON(value.sta);
|
|
61
57
|
return new CryptoRelationshipPublicResponse_1(signatureKey, exchangeKey, state);
|
|
62
58
|
}
|
|
63
|
-
static
|
|
64
|
-
return
|
|
59
|
+
static fromBase64(value) {
|
|
60
|
+
return this.deserialize(CoreBuffer_1.CoreBuffer.base64_utf8(value));
|
|
65
61
|
}
|
|
66
|
-
static
|
|
67
|
-
return
|
|
62
|
+
static deserialize(value) {
|
|
63
|
+
return this.fromJSON(JSON.parse(value));
|
|
68
64
|
}
|
|
69
65
|
};
|
|
70
66
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CryptoRelationshipPublicResponse.js","sourceRoot":"","sources":["../../src/relationship/CryptoRelationshipPublicResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"CryptoRelationshipPublicResponse.js","sourceRoot":"","sources":["../../src/relationship/CryptoRelationshipPublicResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA2F;AAC3F,8CAAuD;AACvD,8DAA2D;AAC3D,iFAI6C;AAE7C,oFAI+C;AAC/C,oEAAiE;AACjE,kEAAiH;AAiBjH,IAAa,gCAAgC,wCAA7C,MAAa,gCACT,SAAQ,uCAAkB;IAmB1B,YACI,YAAsC,EACtC,WAAoC,EACpC,KAAwB;QAExB,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAEM,MAAM,CAAC,OAAO,GAAG,IAAI;QACxB,MAAM,GAAG,GAAgD;YACrD,GAAG,EA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CAAiB,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAEpD,OAAO,IAAI,kCAAgC,CAAC,YAAY,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;IAClF,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,KAAa;QAClC,OAAO,IAAI,CAAC,WAAW,CAAC,uBAAU,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3D,CAAC;IAEM,MAAM,CAAC,WAAW,CAAC,KAAa;QACnC,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5C,CAAC;CACJ,CAAA;AAzEG;IAFC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;;4DACO;AAInB;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACS,mDAAwB;sEAAC;AAI9C;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACQ,iDAAuB;qEAAC;AAI5C;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACE,qCAAiB;+DAAC;AAlBvB,gCAAgC;IAD5C,IAAA,gBAAI,EAAC,kCAAkC,CAAC;qCAsBnB,mDAAwB;QACzB,iDAAuB;QAC7B,qCAAiB;GAvBnB,gCAAgC,CA+E5C;AA/EY,4EAAgC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISerializable } from "@js-soft/ts-serval";
|
|
2
2
|
import { CoreBuffer, ICoreBuffer } from "../CoreBuffer";
|
|
3
|
-
import {
|
|
3
|
+
import { CryptoSerializable } from "../CryptoSerializable";
|
|
4
4
|
import { CryptoCipher } from "../encryption/CryptoCipher";
|
|
5
5
|
import { CryptoSecretKey, ICryptoSecretKey } from "../encryption/CryptoSecretKey";
|
|
6
6
|
import { CryptoExchangeKeypair, ICryptoExchangeKeypair } from "../exchange/CryptoExchangeKeypair";
|
|
@@ -10,7 +10,7 @@ import { CryptoSignature } from "../signature/CryptoSignature";
|
|
|
10
10
|
import { CryptoSignatureKeypair, ICryptoSignatureKeypair } from "../signature/CryptoSignatureKeypair";
|
|
11
11
|
import { CryptoSignaturePublicKey, ICryptoSignaturePublicKey } from "../signature/CryptoSignaturePublicKey";
|
|
12
12
|
import { CryptoRelationshipPublicRequest } from "./CryptoRelationshipPublicRequest";
|
|
13
|
-
export interface ICryptoRelationshipRequestSecrets extends
|
|
13
|
+
export interface ICryptoRelationshipRequestSecrets extends ISerializable {
|
|
14
14
|
id?: string;
|
|
15
15
|
exchangeKeypair: ICryptoExchangeKeypair;
|
|
16
16
|
signatureKeypair: ICryptoSignatureKeypair;
|
|
@@ -20,7 +20,7 @@ export interface ICryptoRelationshipRequestSecrets extends ISerializableAsync {
|
|
|
20
20
|
secretKey: ICryptoSecretKey;
|
|
21
21
|
nonce: ICoreBuffer;
|
|
22
22
|
}
|
|
23
|
-
export declare class CryptoRelationshipRequestSecrets extends
|
|
23
|
+
export declare class CryptoRelationshipRequestSecrets extends CryptoSerializable implements ICryptoRelationshipRequestSecrets {
|
|
24
24
|
id?: string;
|
|
25
25
|
exchangeKeypair: CryptoExchangeKeypair;
|
|
26
26
|
ephemeralKeypair: CryptoExchangeKeypair;
|
|
@@ -29,13 +29,13 @@ export declare class CryptoRelationshipRequestSecrets extends CryptoSerializable
|
|
|
29
29
|
peerExchangeKey: CryptoExchangePublicKey;
|
|
30
30
|
secretKey: CryptoSecretKey;
|
|
31
31
|
nonce: CoreBuffer;
|
|
32
|
-
static from(value: ICryptoRelationshipRequestSecrets):
|
|
33
|
-
static deserialize(value: string):
|
|
32
|
+
static from(value: ICryptoRelationshipRequestSecrets): CryptoRelationshipRequestSecrets;
|
|
33
|
+
static deserialize(value: string): CryptoRelationshipRequestSecrets;
|
|
34
34
|
sign(content: CoreBuffer, algorithm?: CryptoHashAlgorithm): Promise<CryptoSignature>;
|
|
35
35
|
verifyOwn(content: CoreBuffer, signature: CryptoSignature): Promise<boolean>;
|
|
36
36
|
verifyPeerIdentity(content: CoreBuffer, signature: CryptoSignature): Promise<boolean>;
|
|
37
37
|
encryptRequest(content: CoreBuffer): Promise<CryptoCipher>;
|
|
38
38
|
decryptRequest(cipher: CryptoCipher): Promise<CoreBuffer>;
|
|
39
|
-
toPublicRequest():
|
|
39
|
+
toPublicRequest(): CryptoRelationshipPublicRequest;
|
|
40
40
|
static fromPeer(peerExchangeKey: CryptoExchangePublicKey, peerIdentityKey: CryptoSignaturePublicKey): Promise<CryptoRelationshipRequestSecrets>;
|
|
41
41
|
}
|
|
@@ -14,7 +14,7 @@ exports.CryptoRelationshipRequestSecrets = void 0;
|
|
|
14
14
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
15
|
const CoreBuffer_1 = require("../CoreBuffer");
|
|
16
16
|
const CryptoDerivation_1 = require("../CryptoDerivation");
|
|
17
|
-
const
|
|
17
|
+
const CryptoSerializable_1 = require("../CryptoSerializable");
|
|
18
18
|
const CryptoEncryption_1 = require("../encryption/CryptoEncryption");
|
|
19
19
|
const CryptoSecretKey_1 = require("../encryption/CryptoSecretKey");
|
|
20
20
|
const CryptoExchange_1 = require("../exchange/CryptoExchange");
|
|
@@ -25,12 +25,12 @@ const CryptoSignatureKeypair_1 = require("../signature/CryptoSignatureKeypair");
|
|
|
25
25
|
const CryptoSignaturePublicKey_1 = require("../signature/CryptoSignaturePublicKey");
|
|
26
26
|
const CryptoSignatures_1 = require("../signature/CryptoSignatures");
|
|
27
27
|
const CryptoRelationshipPublicRequest_1 = require("./CryptoRelationshipPublicRequest");
|
|
28
|
-
let CryptoRelationshipRequestSecrets = CryptoRelationshipRequestSecrets_1 = class CryptoRelationshipRequestSecrets extends
|
|
29
|
-
static
|
|
30
|
-
return
|
|
28
|
+
let CryptoRelationshipRequestSecrets = CryptoRelationshipRequestSecrets_1 = class CryptoRelationshipRequestSecrets extends CryptoSerializable_1.CryptoSerializable {
|
|
29
|
+
static from(value) {
|
|
30
|
+
return super.from(value, CryptoRelationshipRequestSecrets_1);
|
|
31
31
|
}
|
|
32
|
-
static
|
|
33
|
-
return
|
|
32
|
+
static deserialize(value) {
|
|
33
|
+
return super.deserialize(value, CryptoRelationshipRequestSecrets_1);
|
|
34
34
|
}
|
|
35
35
|
async sign(content, algorithm = 1 /* SHA256 */) {
|
|
36
36
|
return await CryptoSignatures_1.CryptoSignatures.sign(content, this.signatureKeypair.privateKey, algorithm);
|
|
@@ -47,8 +47,8 @@ let CryptoRelationshipRequestSecrets = CryptoRelationshipRequestSecrets_1 = clas
|
|
|
47
47
|
async decryptRequest(cipher) {
|
|
48
48
|
return await CryptoEncryption_1.CryptoEncryption.decrypt(cipher, this.secretKey);
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
return
|
|
50
|
+
toPublicRequest() {
|
|
51
|
+
return CryptoRelationshipPublicRequest_1.CryptoRelationshipPublicRequest.from({
|
|
52
52
|
id: this.id,
|
|
53
53
|
exchangeKey: this.exchangeKeypair.publicKey,
|
|
54
54
|
signatureKey: this.signatureKeypair.publicKey,
|
|
@@ -65,7 +65,7 @@ let CryptoRelationshipRequestSecrets = CryptoRelationshipRequestSecrets_1 = clas
|
|
|
65
65
|
]);
|
|
66
66
|
const masterKey = await CryptoExchange_1.CryptoExchange.deriveRequestor(ephemeralKeypair, peerExchangeKey);
|
|
67
67
|
const secretKey = await CryptoDerivation_1.CryptoDerivation.deriveKeyFromBase(masterKey.transmissionKey, 1, "REQTMP01");
|
|
68
|
-
return
|
|
68
|
+
return CryptoRelationshipRequestSecrets_1.from({
|
|
69
69
|
exchangeKeypair: exchangeKeypair,
|
|
70
70
|
ephemeralKeypair: ephemeralKeypair,
|
|
71
71
|
signatureKeypair: signatureKeypair,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CryptoRelationshipRequestSecrets.js","sourceRoot":"","sources":["../../src/relationship/CryptoRelationshipRequestSecrets.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"CryptoRelationshipRequestSecrets.js","sourceRoot":"","sources":["../../src/relationship/CryptoRelationshipRequestSecrets.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA8E;AAC9E,8CAAwD;AACxD,0DAAuD;AACvD,8DAA2D;AAE3D,qEAAkE;AAClE,mEAAkF;AAClF,+DAA4D;AAC5D,6EAAkG;AAClG,iFAAwG;AAExG,yDAAsD;AAEtD,gFAAsG;AACtG,oFAA4G;AAC5G,oEAAiE;AACjE,uFAAoF;AAcpF,IAAa,gCAAgC,wCAA7C,MAAa,gCAAiC,SAAQ,uCAAkB;IAiC7D,MAAM,CAAC,IAAI,CAAC,KAAwC;QACvD,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,kCAAgC,CAAqC,CAAC;IACnG,CAAC;IAEM,MAAM,CAAC,WAAW,CAAC,KAAa;QACnC,OAAO,KAAK,CAAC,WAAW,CAAC,KAAK,EAAE,kCAAgC,CAAqC,CAAC;IAC1G,CAAC;IAEM,KAAK,CAAC,IAAI,CACb,OAAmB,EACnB,0BAA2D;QAE3D,OAAO,MAAM,mCAAgB,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;IAC7F,CAAC;IAEM,KAAK,CAAC,SAAS,CAAC,OAAmB,EAAE,SAA0B;QAClE,OAAO,MAAM,mCAAgB,CAAC,MAAM,CAAC,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAC9F,CAAC;IAEM,KAAK,CAAC,kBAAkB,CAAC,OAAmB,EAAE,SAA0B;QAC3E,OAAO,MAAM,mCAAgB,CAAC,MAAM,CAAC,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;IACnF,CAAC;IAEM,KAAK,CAAC,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