@cardano-sdk/key-management 0.3.1-nightly.2 → 0.4.0
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/cjs/InMemoryKeyAgent.d.ts +10 -8
- package/dist/cjs/InMemoryKeyAgent.d.ts.map +1 -1
- package/dist/cjs/InMemoryKeyAgent.js +38 -38
- package/dist/cjs/InMemoryKeyAgent.js.map +1 -1
- package/dist/cjs/KeyAgentBase.d.ts +9 -7
- package/dist/cjs/KeyAgentBase.d.ts.map +1 -1
- package/dist/cjs/KeyAgentBase.js +35 -25
- package/dist/cjs/KeyAgentBase.js.map +1 -1
- package/dist/cjs/LedgerKeyAgent.d.ts +4 -3
- package/dist/cjs/LedgerKeyAgent.d.ts.map +1 -1
- package/dist/cjs/LedgerKeyAgent.js +7 -3
- package/dist/cjs/LedgerKeyAgent.js.map +1 -1
- package/dist/cjs/TrezorKeyAgent.d.ts +3 -2
- package/dist/cjs/TrezorKeyAgent.d.ts.map +1 -1
- package/dist/cjs/TrezorKeyAgent.js +27 -3
- package/dist/cjs/TrezorKeyAgent.js.map +1 -1
- package/dist/cjs/cip8/cip30signData.d.ts +3 -2
- package/dist/cjs/cip8/cip30signData.d.ts.map +1 -1
- package/dist/cjs/cip8/cip30signData.js +9 -9
- package/dist/cjs/cip8/cip30signData.js.map +1 -1
- package/dist/cjs/cip8/types.d.ts +3 -3
- package/dist/cjs/cip8/types.d.ts.map +1 -1
- package/dist/cjs/emip3.d.ts +3 -3
- package/dist/cjs/emip3.d.ts.map +1 -1
- package/dist/cjs/emip3.js +5 -5
- package/dist/cjs/emip3.js.map +1 -1
- package/dist/cjs/errors/AuthenticationError.d.ts +1 -1
- package/dist/cjs/errors/AuthenticationError.js +2 -2
- package/dist/cjs/errors/HwMappingError.d.ts +1 -1
- package/dist/cjs/errors/HwMappingError.js +2 -2
- package/dist/cjs/errors/ProofGenerationError.d.ts +1 -1
- package/dist/cjs/errors/ProofGenerationError.js +2 -2
- package/dist/cjs/errors/TransportError.d.ts +1 -1
- package/dist/cjs/errors/TransportError.js +2 -2
- package/dist/cjs/restoreKeyAgent.d.ts +4 -4
- package/dist/cjs/restoreKeyAgent.d.ts.map +1 -1
- package/dist/cjs/restoreKeyAgent.js +4 -4
- package/dist/cjs/restoreKeyAgent.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/cjs/types.d.ts +20 -17
- package/dist/cjs/types.d.ts.map +1 -1
- package/dist/cjs/types.js.map +1 -1
- package/dist/cjs/util/createAsyncKeyAgent.d.ts.map +1 -1
- package/dist/cjs/util/createAsyncKeyAgent.js +1 -0
- package/dist/cjs/util/createAsyncKeyAgent.js.map +1 -1
- package/dist/cjs/util/key.d.ts +5 -4
- package/dist/cjs/util/key.d.ts.map +1 -1
- package/dist/cjs/util/key.js +9 -17
- package/dist/cjs/util/key.js.map +1 -1
- package/dist/cjs/util/mapHardwareSigningData.d.ts +2 -1
- package/dist/cjs/util/mapHardwareSigningData.d.ts.map +1 -1
- package/dist/cjs/util/mapHardwareSigningData.js +3 -3
- package/dist/cjs/util/mapHardwareSigningData.js.map +1 -1
- package/dist/cjs/util/ownSignatureKeyPaths.js +1 -1
- package/dist/cjs/util/ownSignatureKeyPaths.js.map +1 -1
- package/dist/cjs/util/stubSignTransaction.d.ts.map +1 -1
- package/dist/cjs/util/stubSignTransaction.js +26 -3
- package/dist/cjs/util/stubSignTransaction.js.map +1 -1
- package/dist/esm/InMemoryKeyAgent.d.ts +10 -8
- package/dist/esm/InMemoryKeyAgent.d.ts.map +1 -1
- package/dist/esm/InMemoryKeyAgent.js +33 -33
- package/dist/esm/InMemoryKeyAgent.js.map +1 -1
- package/dist/esm/KeyAgentBase.d.ts +9 -7
- package/dist/esm/KeyAgentBase.d.ts.map +1 -1
- package/dist/esm/KeyAgentBase.js +35 -25
- package/dist/esm/KeyAgentBase.js.map +1 -1
- package/dist/esm/LedgerKeyAgent.d.ts +4 -3
- package/dist/esm/LedgerKeyAgent.d.ts.map +1 -1
- package/dist/esm/LedgerKeyAgent.js +9 -5
- package/dist/esm/LedgerKeyAgent.js.map +1 -1
- package/dist/esm/TrezorKeyAgent.d.ts +3 -2
- package/dist/esm/TrezorKeyAgent.d.ts.map +1 -1
- package/dist/esm/TrezorKeyAgent.js +5 -4
- package/dist/esm/TrezorKeyAgent.js.map +1 -1
- package/dist/esm/cip8/cip30signData.d.ts +3 -2
- package/dist/esm/cip8/cip30signData.d.ts.map +1 -1
- package/dist/esm/cip8/cip30signData.js +2 -2
- package/dist/esm/cip8/cip30signData.js.map +1 -1
- package/dist/esm/cip8/types.d.ts +3 -3
- package/dist/esm/cip8/types.d.ts.map +1 -1
- package/dist/esm/emip3.d.ts +3 -3
- package/dist/esm/emip3.d.ts.map +1 -1
- package/dist/esm/emip3.js +5 -5
- package/dist/esm/emip3.js.map +1 -1
- package/dist/esm/errors/AuthenticationError.d.ts +1 -1
- package/dist/esm/errors/AuthenticationError.js +1 -1
- package/dist/esm/errors/HwMappingError.d.ts +1 -1
- package/dist/esm/errors/HwMappingError.js +1 -1
- package/dist/esm/errors/ProofGenerationError.d.ts +1 -1
- package/dist/esm/errors/ProofGenerationError.js +1 -1
- package/dist/esm/errors/TransportError.d.ts +1 -1
- package/dist/esm/errors/TransportError.js +1 -1
- package/dist/esm/restoreKeyAgent.d.ts +4 -4
- package/dist/esm/restoreKeyAgent.d.ts.map +1 -1
- package/dist/esm/restoreKeyAgent.js +4 -4
- package/dist/esm/restoreKeyAgent.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/types.d.ts +20 -17
- package/dist/esm/types.d.ts.map +1 -1
- package/dist/esm/types.js.map +1 -1
- package/dist/esm/util/createAsyncKeyAgent.d.ts.map +1 -1
- package/dist/esm/util/createAsyncKeyAgent.js +1 -0
- package/dist/esm/util/createAsyncKeyAgent.js.map +1 -1
- package/dist/esm/util/key.d.ts +5 -4
- package/dist/esm/util/key.d.ts.map +1 -1
- package/dist/esm/util/key.js +9 -17
- package/dist/esm/util/key.js.map +1 -1
- package/dist/esm/util/mapHardwareSigningData.d.ts +2 -1
- package/dist/esm/util/mapHardwareSigningData.d.ts.map +1 -1
- package/dist/esm/util/mapHardwareSigningData.js +3 -3
- package/dist/esm/util/mapHardwareSigningData.js.map +1 -1
- package/dist/esm/util/ownSignatureKeyPaths.js +1 -1
- package/dist/esm/util/ownSignatureKeyPaths.js.map +1 -1
- package/dist/esm/util/stubSignTransaction.d.ts.map +1 -1
- package/dist/esm/util/stubSignTransaction.js +3 -3
- package/dist/esm/util/stubSignTransaction.js.map +1 -1
- package/package.json +7 -5
package/dist/esm/emip3.js
CHANGED
|
@@ -7,15 +7,15 @@ const PBKDF2_ITERATIONS = 19162;
|
|
|
7
7
|
const SALT_LENGTH = 32;
|
|
8
8
|
const TAG_LENGTH = 16;
|
|
9
9
|
const AAD = Buffer.from('', 'hex');
|
|
10
|
-
export const createPbkdf2Key = async (
|
|
10
|
+
export const createPbkdf2Key = async (passphrase, salt) => await new Promise((resolve, reject) => pbkdf2(passphrase, salt, PBKDF2_ITERATIONS, KEY_LENGTH, 'sha512', (err, derivedKey) => {
|
|
11
11
|
if (err)
|
|
12
12
|
return reject(err);
|
|
13
13
|
resolve(derivedKey);
|
|
14
14
|
}));
|
|
15
|
-
export const emip3encrypt = async (data,
|
|
15
|
+
export const emip3encrypt = async (data, passphrase) => {
|
|
16
16
|
const salt = new Uint8Array(SALT_LENGTH);
|
|
17
17
|
getRandomValues(salt);
|
|
18
|
-
const key = await createPbkdf2Key(
|
|
18
|
+
const key = await createPbkdf2Key(passphrase, salt);
|
|
19
19
|
const nonce = new Uint8Array(NONCE_LENGTH);
|
|
20
20
|
getRandomValues(nonce);
|
|
21
21
|
const cipher = chacha.createCipher(key, Buffer.from(nonce));
|
|
@@ -25,12 +25,12 @@ export const emip3encrypt = async (data, password) => {
|
|
|
25
25
|
const tag = cipher.getAuthTag();
|
|
26
26
|
return Buffer.concat([salt, nonce, tag, head, final]);
|
|
27
27
|
};
|
|
28
|
-
export const emip3decrypt = async (encrypted,
|
|
28
|
+
export const emip3decrypt = async (encrypted, passphrase) => {
|
|
29
29
|
const salt = encrypted.slice(0, SALT_LENGTH);
|
|
30
30
|
const nonce = encrypted.slice(SALT_LENGTH, SALT_LENGTH + NONCE_LENGTH);
|
|
31
31
|
const tag = encrypted.slice(SALT_LENGTH + NONCE_LENGTH, SALT_LENGTH + NONCE_LENGTH + TAG_LENGTH);
|
|
32
32
|
const data = encrypted.slice(SALT_LENGTH + NONCE_LENGTH + TAG_LENGTH);
|
|
33
|
-
const key = await createPbkdf2Key(
|
|
33
|
+
const key = await createPbkdf2Key(passphrase, salt);
|
|
34
34
|
const decipher = chacha.createDecipher(key, Buffer.from(nonce));
|
|
35
35
|
decipher.setAuthTag(Buffer.from(tag));
|
|
36
36
|
decipher.setAAD(AAD);
|
package/dist/esm/emip3.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emip3.js","sourceRoot":"","sources":["../../src/emip3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAEhD,MAAM,UAAU,GAAG,EAAE,CAAC;AACtB,MAAM,YAAY,GAAG,EAAE,CAAC;AACxB,MAAM,iBAAiB,GAAG,KAAM,CAAC;AACjC,MAAM,WAAW,GAAG,EAAE,CAAC;AACvB,MAAM,UAAU,GAAG,EAAE,CAAC;AACtB,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;AAEnC,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"emip3.js","sourceRoot":"","sources":["../../src/emip3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ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AI,CAAC,CAAC,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;AAC/E,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComposableError } from '@cardano-sdk/
|
|
1
|
+
import { ComposableError } from '@cardano-sdk/util';
|
|
2
2
|
export declare class ProofGenerationError<InnerError = unknown> extends ComposableError<InnerError> {
|
|
3
3
|
constructor(detail?: string, innerError?: InnerError);
|
|
4
4
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GetPassphrase, KeyAgent, KeyAgentDependencies, SerializableInMemoryKeyAgentData, SerializableKeyAgentData, SerializableLedgerKeyAgentData, SerializableTrezorKeyAgentData } from './types';
|
|
2
2
|
export interface RestoreInMemoryKeyAgentProps {
|
|
3
|
-
|
|
3
|
+
getPassphrase?: GetPassphrase;
|
|
4
4
|
}
|
|
5
|
-
export declare function restoreKeyAgent(data: SerializableInMemoryKeyAgentData, dependencies: KeyAgentDependencies,
|
|
6
|
-
export declare function restoreKeyAgent(data: SerializableKeyAgentData, dependencies: KeyAgentDependencies,
|
|
5
|
+
export declare function restoreKeyAgent(data: SerializableInMemoryKeyAgentData, dependencies: KeyAgentDependencies, getPassphrase: GetPassphrase): Promise<KeyAgent>;
|
|
6
|
+
export declare function restoreKeyAgent(data: SerializableKeyAgentData, dependencies: KeyAgentDependencies, getPassphrase?: GetPassphrase): Promise<KeyAgent>;
|
|
7
7
|
export declare function restoreKeyAgent(data: SerializableLedgerKeyAgentData, dependencies: KeyAgentDependencies): Promise<KeyAgent>;
|
|
8
8
|
export declare function restoreKeyAgent(data: SerializableTrezorKeyAgentData, dependencies: KeyAgentDependencies): Promise<KeyAgent>;
|
|
9
9
|
//# sourceMappingURL=restoreKeyAgent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restoreKeyAgent.d.ts","sourceRoot":"","sources":["../../src/restoreKeyAgent.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"restoreKeyAgent.d.ts","sourceRoot":"","sources":["../../src/restoreKeyAgent.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,aAAa,EAEb,QAAQ,EACR,oBAAoB,EAEpB,gCAAgC,EAChC,wBAAwB,EACxB,8BAA8B,EAC9B,8BAA8B,EAC/B,MAAM,SAAS,CAAC;AASjB,MAAM,WAAW,4BAA4B;IAI3C,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B;AA0BD,wBAAgB,eAAe,CAC7B,IAAI,EAAE,gCAAgC,EACtC,YAAY,EAAE,oBAAoB,EAClC,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,QAAQ,CAAC,CAAC;AACrB,wBAAgB,eAAe,CAC7B,IAAI,EAAE,wBAAwB,EAC9B,YAAY,EAAE,oBAAoB,EAClC,aAAa,CAAC,EAAE,aAAa,GAC5B,OAAO,CAAC,QAAQ,CAAC,CAAC;AACrB,wBAAgB,eAAe,CAC7B,IAAI,EAAE,8BAA8B,EACpC,YAAY,EAAE,oBAAoB,GACjC,OAAO,CAAC,QAAQ,CAAC,CAAC;AACrB,wBAAgB,eAAe,CAC7B,IAAI,EAAE,8BAA8B,EACpC,YAAY,EAAE,oBAAoB,GACjC,OAAO,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -25,17 +25,17 @@ const migrateSerializableData = (data, logger) => ({
|
|
|
25
25
|
stakeKeyDerivationPath: address.stakeKeyDerivationPath || STAKE_KEY_DERIVATION_PATH
|
|
26
26
|
}))
|
|
27
27
|
});
|
|
28
|
-
export async function restoreKeyAgent(dataArg, dependencies,
|
|
28
|
+
export async function restoreKeyAgent(dataArg, dependencies, getPassphrase) {
|
|
29
29
|
const data = migrateSerializableData(dataArg, dependencies.logger);
|
|
30
30
|
switch (data.__typename) {
|
|
31
31
|
case KeyAgentType.InMemory: {
|
|
32
32
|
if (!data.encryptedRootPrivateKeyBytes || data.encryptedRootPrivateKeyBytes.length !== 156) {
|
|
33
33
|
throw new InvalidSerializableDataError('Expected encrypted root private key in "agentData" for InMemoryKeyAgent"');
|
|
34
34
|
}
|
|
35
|
-
if (!
|
|
36
|
-
throw new InvalidSerializableDataError('Expected "
|
|
35
|
+
if (!getPassphrase) {
|
|
36
|
+
throw new InvalidSerializableDataError('Expected "getPassphrase" in RestoreKeyAgentProps for InMemoryKeyAgent"');
|
|
37
37
|
}
|
|
38
|
-
return new InMemoryKeyAgent({ ...data,
|
|
38
|
+
return new InMemoryKeyAgent({ ...data, getPassphrase }, dependencies);
|
|
39
39
|
}
|
|
40
40
|
case KeyAgentType.Ledger: {
|
|
41
41
|
return new LedgerKeyAgent(data, dependencies);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restoreKeyAgent.js","sourceRoot":"","sources":["../../src/restoreKeyAgent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAKL,YAAY,EAKb,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAWlD,MAAM,uBAAuB,GAAG,CAAqC,IAAS,EAAE,MAAc,EAAK,EAAE,CAAC,CAAC;IACrG,GAAG,IAAI;IACP,OAAO,EACL,IAAI,CAAC,OAAO;QACZ,CAAC,GAAG,EAAE;YACJ,MAAM,CAAC,IAAI,CAAC,sDAAsD,CAAC,CAAC;YACpE,OAAO;gBACL,GAAG,IAAI;gBACP,OAAO,EACL,IAAI,CAAC,SAAS,KAAK,OAAO,CAAC,SAAS,CAAC,OAAO;oBAC1C,CAAC,CAAC,OAAO,CA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