@pinkparrot/qsafe-sig 0.0.7 → 0.0.8
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/qsafe-sig.browser.min.js +3 -1
- package/index.mjs +6 -4
- package/package.json +1 -1
|
@@ -3108,13 +3108,15 @@ var QsafeSigner = class _QsafeSigner {
|
|
|
3108
3108
|
return signer;
|
|
3109
3109
|
}
|
|
3110
3110
|
};
|
|
3111
|
+
var Qsafe = { QsafeSigner, QsafeHelper, ed25519, PROTOCOL_VERSIONS, CURRENT_VERSION, AVAILABLE_VERSIONS };
|
|
3112
|
+
var index_default = Qsafe;
|
|
3111
3113
|
export {
|
|
3112
3114
|
AVAILABLE_VERSIONS,
|
|
3113
3115
|
CURRENT_VERSION,
|
|
3114
|
-
HEADER_SIZE,
|
|
3115
3116
|
PROTOCOL_VERSIONS,
|
|
3116
3117
|
QsafeHelper,
|
|
3117
3118
|
QsafeSigner,
|
|
3119
|
+
index_default as default,
|
|
3118
3120
|
ed25519
|
|
3119
3121
|
};
|
|
3120
3122
|
/*! Bundled license information:
|
package/index.mjs
CHANGED
|
@@ -6,13 +6,11 @@ import { PROTOCOL_VERSIONS, CURRENT_VERSION, DEFAULT_VARIANT, AVAILABLE_VERSIONS
|
|
|
6
6
|
ED25519_PRIV_SIZE, ED25519_PUB_SIZE, ED25519_SIG_SIZE,
|
|
7
7
|
HEADER_SIZE, VARIANT_ID } from './constants.mjs';
|
|
8
8
|
|
|
9
|
-
export { ed25519, QsafeHelper, HEADER_SIZE, PROTOCOL_VERSIONS, CURRENT_VERSION, AVAILABLE_VERSIONS };
|
|
10
|
-
|
|
11
9
|
/**
|
|
12
10
|
* @typedef {{ hybridKey : Uint8Array, secretKey: Uint8Array }} Keypair
|
|
13
11
|
* @typedef {import('@pinkparrot/qsafe-mayo-wasm').MayoSigner} MayoSigner */
|
|
14
12
|
|
|
15
|
-
|
|
13
|
+
class QsafeSigner {
|
|
16
14
|
// Shared stateless instances for verify() — one per "version:variant", loaded once.
|
|
17
15
|
// These never have keypairFromSeed() called on them, so they are safe to share.
|
|
18
16
|
/** @type {Record<string, MayoSigner>} */
|
|
@@ -159,4 +157,8 @@ export class QsafeSigner {
|
|
|
159
157
|
QsafeSigner.#sharedSigners[key] = signer;
|
|
160
158
|
return signer;
|
|
161
159
|
}
|
|
162
|
-
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
const Qsafe = { QsafeSigner, QsafeHelper, ed25519, PROTOCOL_VERSIONS, CURRENT_VERSION, AVAILABLE_VERSIONS };
|
|
163
|
+
export { QsafeSigner, QsafeHelper, ed25519, PROTOCOL_VERSIONS, CURRENT_VERSION, AVAILABLE_VERSIONS };
|
|
164
|
+
export default Qsafe;
|