solana-age-verify-sdk 2.0.0-beta.15 → 2.0.0-beta.16
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/security.js +2 -8
- package/package.json +1 -1
package/dist/security.js
CHANGED
|
@@ -16,14 +16,8 @@ let _cachedPlatformPubKey = null;
|
|
|
16
16
|
export function getPlatformPublicKey() {
|
|
17
17
|
if (_cachedPlatformPubKey)
|
|
18
18
|
return _cachedPlatformPubKey;
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
// We check VITE_TREASURY_ADDRESS first as per configuration, then fallback to legacy VITE_PLATFORM_PUBLIC_KEY
|
|
22
|
-
const envKey = import.meta.env?.VITE_TREASURY_ADDRESS || import.meta.env?.VITE_PLATFORM_PUBLIC_KEY;
|
|
23
|
-
if (envKey) {
|
|
24
|
-
_cachedPlatformPubKey = new PublicKey(envKey);
|
|
25
|
-
return _cachedPlatformPubKey;
|
|
26
|
-
}
|
|
19
|
+
// Environment variable overrides disabled for security.
|
|
20
|
+
// We strictly use the hardcoded, obfuscated treasury address to ensure integrity in the distributed package.
|
|
27
21
|
// Default/Fallback logic
|
|
28
22
|
// We use a base58 encoded version that is "minified" in the code.
|
|
29
23
|
// The string here is obfuscated to avoid plain text search and easy replacement.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solana-age-verify-sdk",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Solana Age Verify is a premium, client-side SDK for privacy-preserving age verification and liveness detection. It generates a deterministic Face Hash linked to a wallet without storing facial data.",
|
|
6
6
|
"license": "MIT",
|