@near-js/crypto
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -27,3 +27,3 @@ "use strict"; | ||
const secretKey = new Uint8Array(decoded.slice(0, constants_1.KeySize.SECRET_KEY)); | ||
const publicKey = ed25519_1.ed25519.getPublicKey(secretKey); | ||
const publicKey = ed25519_1.ed25519.getPublicKey(new Uint8Array(secretKey)); | ||
this.publicKey = new public_key_1.PublicKey({ keyType: constants_1.KeyType.ED25519, data: publicKey }); | ||
@@ -30,0 +30,0 @@ this.secretKey = (0, utils_1.baseEncode)(secretKey); |
{ | ||
"name": "@near-js/crypto", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Abstractions around NEAR-compatible elliptical curves and cryptographic keys", | ||
@@ -13,4 +13,4 @@ "main": "lib/index.js", | ||
"randombytes": "2.1.0", | ||
"@near-js/types": "0.2.0", | ||
"@near-js/utils": "0.2.1" | ||
"@near-js/types": "0.2.1", | ||
"@near-js/utils": "0.2.2" | ||
}, | ||
@@ -17,0 +17,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19564
+ Added@near-js/types@0.2.1(transitive)
+ Added@near-js/utils@0.2.2(transitive)
- Removed@near-js/types@0.2.0(transitive)
- Removed@near-js/utils@0.2.1(transitive)
Updated@near-js/types@0.2.1
Updated@near-js/utils@0.2.2