@radixdlt/crypto
Advanced tools
Comparing version 1.0.13 to 1.0.14
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.0.14](https://github.com/radixdlt/radixdlt-javascript/compare/@radixdlt/crypto@1.0.13...@radixdlt/crypto@1.0.14) (2021-04-16) | ||
**Note:** Version bump only for package @radixdlt/crypto | ||
## [1.0.13](https://github.com/radixdlt/radixdlt-javascript/compare/@radixdlt/crypto@1.0.12...@radixdlt/crypto@1.0.13) (2021-04-16) | ||
@@ -8,0 +16,0 @@ |
/// <reference types="node" /> | ||
import { Result } from 'neverthrow'; | ||
import { AES_GCM_SealedBoxT } from '../symmetric-encryption/_index'; | ||
import { AES_GCM_SealedBoxT } from '../symmetric-encryption'; | ||
import { PublicKey } from '../_types'; | ||
@@ -5,0 +5,0 @@ import { SealedMessageT } from './_types'; |
@@ -7,3 +7,3 @@ "use strict"; | ||
const publicKey_1 = require("../elliptic-curve/publicKey"); | ||
const _index_1 = require("../symmetric-encryption/_index"); | ||
const symmetric_encryption_1 = require("../symmetric-encryption"); | ||
const _types_1 = require("../_types"); | ||
@@ -24,4 +24,4 @@ const utils_1 = require("../utils"); | ||
}; | ||
const sealedMessageNonceLength = _index_1.AES_GCM.nonceLength; | ||
const sealedMessageAuthTagLength = _index_1.AES_GCM.tagLength; | ||
const sealedMessageNonceLength = symmetric_encryption_1.AES_GCM.nonceLength; | ||
const sealedMessageAuthTagLength = symmetric_encryption_1.AES_GCM.tagLength; | ||
exports.__validateTag = utils_1.validateLength.bind(null, sealedMessageAuthTagLength, 'auth tag'); | ||
@@ -28,0 +28,0 @@ exports.__validateNonce = utils_1.validateLength.bind(null, sealedMessageNonceLength, 'nonce'); |
{ | ||
"name": "@radixdlt/crypto", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "Cryptographic primitives such as digests (hashing) and Elliptic Curve Cryptography (ECC) methods such as key generation, signing and verify.", | ||
@@ -20,3 +20,3 @@ "keywords": [ | ||
"license": "Apache-2.0", | ||
"main": "dist/_index.js", | ||
"main": "dist/index.js", | ||
"publishConfig": { | ||
@@ -39,6 +39,6 @@ "access": "public" | ||
"dependencies": { | ||
"@radixdlt/data-formats": "^1.0.10", | ||
"@radixdlt/primitives": "^1.0.12", | ||
"@radixdlt/data-formats": "^1.0.11", | ||
"@radixdlt/primitives": "^1.0.13", | ||
"@radixdlt/uint256": "^1.1.0", | ||
"@radixdlt/util": "^1.0.9", | ||
"@radixdlt/util": "^1.0.10", | ||
"base-x": "^3.0.8", | ||
@@ -57,3 +57,3 @@ "elliptic": "^6.5.3", | ||
}, | ||
"gitHead": "c1a0ad4b8428b695d03991082d58226bed4c64a6" | ||
"gitHead": "ab614e64084928260e3cd31ecd07bcaaae134e10" | ||
} |
import { combine, err, Result } from 'neverthrow' | ||
import { readBuffer } from '@radixdlt/util' | ||
import { publicKeyFromBytes } from '../elliptic-curve/publicKey' | ||
import { AES_GCM, AES_GCM_SealedBoxT } from '../symmetric-encryption/_index' | ||
import { AES_GCM, AES_GCM_SealedBoxT } from '../symmetric-encryption' | ||
import { PublicKey, publicKeyCompressedByteCount } from '../_types' | ||
@@ -6,0 +6,0 @@ import { SealedMessageT } from './_types' |
import { secureRandomGenerator } from '@radixdlt/util' | ||
import { AES_GCM } from '../src/symmetric-encryption/_index' | ||
import { AES_GCM } from '../src/symmetric-encryption' | ||
@@ -4,0 +4,0 @@ describe('aes gcm', () => { |
@@ -10,3 +10,3 @@ import { | ||
sha256, | ||
} from '../src/_index' | ||
} from '../src/index' | ||
@@ -13,0 +13,0 @@ import { UInt256 } from '@radixdlt/uint256' |
@@ -1,2 +0,2 @@ | ||
import { Hasher, sha256 } from '../src/_index' | ||
import { Hasher, sha256 } from '../src' | ||
import { sha256Twice } from '../src/hash/sha' | ||
@@ -3,0 +3,0 @@ |
import { secureRandomGenerator } from '@radixdlt/util' | ||
import { Keystore, KeystoreT } from '../src/_index' | ||
import { Keystore, KeystoreT } from '../src' | ||
@@ -4,0 +4,0 @@ describe('keystore', () => { |
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
326208
208
4211
Updated@radixdlt/primitives@^1.0.13
Updated@radixdlt/util@^1.0.10