@radixdlt/crypto
Advanced tools
Comparing version 2.1.12 to 2.1.13
@@ -6,2 +6,13 @@ # Change Log | ||
## [2.1.13](https://github.com/radixdlt/radixdlt-javascript/compare/@radixdlt/crypto@2.1.12...@radixdlt/crypto@2.1.13) (2022-07-18) | ||
### Bug Fixes | ||
* Calculate Shared Secret ([#204](https://github.com/radixdlt/radixdlt-javascript/issues/204)) ([db5a198](https://github.com/radixdlt/radixdlt-javascript/commit/db5a1984067d6f3a572f3136156f2c90f02fbb64)) | ||
## [2.1.12](https://github.com/radixdlt/radixdlt-javascript/compare/@radixdlt/crypto@2.1.11...@radixdlt/crypto@2.1.12) (2022-01-26) | ||
@@ -8,0 +19,0 @@ |
@@ -18,3 +18,5 @@ "use strict"; | ||
const sharedSecretPoint = dhKey.add(ephemeralPoint); | ||
return Buffer.from(sharedSecretPoint.x.toString(16), 'hex'); | ||
const buf = Buffer.alloc(32); | ||
buf.write(sharedSecretPoint.x.toString(16), 'hex'); | ||
return buf; | ||
}); | ||
@@ -21,0 +23,0 @@ }; |
{ | ||
"name": "@radixdlt/crypto", | ||
"version": "2.1.12", | ||
"version": "2.1.13", | ||
"description": "Cryptographic primitives such as digests (hashing) and Elliptic Curve Cryptography (ECC) methods such as key generation, signing and verify.", | ||
@@ -55,3 +55,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "9f60bc69637cc74ce1e0329207d35c9fdda27180" | ||
"gitHead": "98650442f9765a2fed8694b670e2803410d63a63" | ||
} |
@@ -44,3 +44,5 @@ import { secureRandomGenerator } from '@radixdlt/util' | ||
const sharedSecretPoint = dhKey.add(ephemeralPoint) | ||
return Buffer.from(sharedSecretPoint.x.toString(16), 'hex') | ||
const buf = Buffer.alloc(32) | ||
buf.write(sharedSecretPoint.x.toString(16), 'hex') | ||
return buf | ||
}) | ||
@@ -47,0 +49,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
424971
6960