@hardkas/accounts 0.2.1-alpha → 0.2.2-alpha.1
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/index.d.ts +1 -3
- package/dist/index.js +0 -10
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -112,8 +112,6 @@ declare function describeAccount(account: HardkasAccount): Record<string, unknow
|
|
|
112
112
|
|
|
113
113
|
declare function getRequiredEnv(name: string): string;
|
|
114
114
|
|
|
115
|
-
declare function redactSecret(value: string): string;
|
|
116
|
-
|
|
117
115
|
/**
|
|
118
116
|
* Simulated signer for simnet development.
|
|
119
117
|
* Produces deterministic signatures without real private keys.
|
|
@@ -337,4 +335,4 @@ declare class KeystoreManager {
|
|
|
337
335
|
static saveEncryptedKeystore(filePath: string, keystore: EncryptedKeystoreV2): Promise<void>;
|
|
338
336
|
}
|
|
339
337
|
|
|
340
|
-
export { type EncryptedKeystoreV2, type GeneratedKaspaDevAccount, type HardkasAccount, type HardkasAccountKind, type HardkasBaseAccount, type HardkasEvmPrivateKeyAccount, type HardkasExternalWalletAccount, type HardkasKaspaPrivateKeyAccount, type HardkasSigner, type HardkasSignerKind, type HardkasSimulatedAccount, type HardkasTxPlanSigner, type KaspaKeyGenerator, KaspaSdkKeyGenerator, type KaspaSdkKeyGeneratorOptions, KaspaSdkRealTxSigner, type KaspaSdkRealTxSignerOptions, type KaspaSigningBackendStatus, KaspaWasmPrivateKeySigner, type KeystoreCipherParams, type KeystoreKdfParams, KeystoreManager, type KeystorePayload, type KeystoreUnlockResult, type RealAccountStore, type RealDevAccount, type RealTxSigner, type RealTxSigningInput, type RealTxSigningResult, type ResolveAccountOptions, type SignTxPlanInput, type SignTxPlanResult, SimulatedSigner, SimulatedTxPlanSigner, UnsupportedKaspaKeyGenerator, UnsupportedRealKaspaSigner, UnsupportedRealTxSigner, assertSigningNetworkAllowed, createEmptyRealAccountStore, describeAccount, getDefaultRealAccountsPath, getKaspaSigningBackendStatus, getRealDevAccount, getRequiredEnv, importRealDevAccount, listHardkasAccounts, listRealDevAccounts, loadKaspaWasm, loadOrCreateRealAccountStore, loadRealAccountStore, loadRealAccountStoreSync,
|
|
338
|
+
export { type EncryptedKeystoreV2, type GeneratedKaspaDevAccount, type HardkasAccount, type HardkasAccountKind, type HardkasBaseAccount, type HardkasEvmPrivateKeyAccount, type HardkasExternalWalletAccount, type HardkasKaspaPrivateKeyAccount, type HardkasSigner, type HardkasSignerKind, type HardkasSimulatedAccount, type HardkasTxPlanSigner, type KaspaKeyGenerator, KaspaSdkKeyGenerator, type KaspaSdkKeyGeneratorOptions, KaspaSdkRealTxSigner, type KaspaSdkRealTxSignerOptions, type KaspaSigningBackendStatus, KaspaWasmPrivateKeySigner, type KeystoreCipherParams, type KeystoreKdfParams, KeystoreManager, type KeystorePayload, type KeystoreUnlockResult, type RealAccountStore, type RealDevAccount, type RealTxSigner, type RealTxSigningInput, type RealTxSigningResult, type ResolveAccountOptions, type SignTxPlanInput, type SignTxPlanResult, SimulatedSigner, SimulatedTxPlanSigner, UnsupportedKaspaKeyGenerator, UnsupportedRealKaspaSigner, UnsupportedRealTxSigner, assertSigningNetworkAllowed, createEmptyRealAccountStore, describeAccount, getDefaultRealAccountsPath, getKaspaSigningBackendStatus, getRealDevAccount, getRequiredEnv, importRealDevAccount, listHardkasAccounts, listRealDevAccounts, loadKaspaWasm, loadOrCreateRealAccountStore, loadRealAccountStore, loadRealAccountStoreSync, removeRealDevAccount, resolveHardkasAccount, resolveHardkasAccountAddress, resolveRealAccountOrAddress, saveRealAccountStore, signTxPlanArtifact, validateAccountName, validateAddressPrefix };
|
package/dist/index.js
CHANGED
|
@@ -262,15 +262,6 @@ function getRequiredEnv(name) {
|
|
|
262
262
|
return value;
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
// src/redact.ts
|
|
266
|
-
function redactSecret(value) {
|
|
267
|
-
if (!value) return "";
|
|
268
|
-
if (value.length <= 10) {
|
|
269
|
-
return "***";
|
|
270
|
-
}
|
|
271
|
-
return `${value.slice(0, 6)}...${value.slice(-4)}`;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
265
|
// src/signer.ts
|
|
275
266
|
import {
|
|
276
267
|
createSimulatedSignedTxArtifact,
|
|
@@ -789,7 +780,6 @@ export {
|
|
|
789
780
|
loadOrCreateRealAccountStore,
|
|
790
781
|
loadRealAccountStore,
|
|
791
782
|
loadRealAccountStoreSync,
|
|
792
|
-
redactSecret,
|
|
793
783
|
removeRealDevAccount,
|
|
794
784
|
resolveHardkasAccount,
|
|
795
785
|
resolveHardkasAccountAddress,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hardkas/accounts",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2-alpha.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"hash-wasm": "^4.12.0",
|
|
20
|
-
"@hardkas/artifacts": "0.2.
|
|
21
|
-
"@hardkas/config": "0.2.
|
|
22
|
-
"@hardkas/
|
|
23
|
-
"@hardkas/
|
|
20
|
+
"@hardkas/artifacts": "0.2.2-alpha.1",
|
|
21
|
+
"@hardkas/config": "0.2.2-alpha.1",
|
|
22
|
+
"@hardkas/core": "0.2.2-alpha.1",
|
|
23
|
+
"@hardkas/localnet": "0.2.2-alpha.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"tsup": "^8.3.5",
|