diff --git a/package.json b/package.json index 3f6453d..0fd4f46 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "decamelize": "^1.2.0", "es6-promise": "^4.0.5", "fetch-ponyfill": "^4.0.0", - "js-crypto-conditions": "^1.0.3", + "crypto-conditions": "^2.0.1", "isomorphic-fetch": "^2.2.1", "js-sha3": "^0.6.1", "js-utility-belt": "^1.5.0", diff --git a/src/transaction/makeEd25519Condition.js b/src/transaction/makeEd25519Condition.js index 775256c..c7988e8 100644 --- a/src/transaction/makeEd25519Condition.js +++ b/src/transaction/makeEd25519Condition.js @@ -1,7 +1,7 @@ import { Buffer } from 'buffer' import base58 from 'bs58' -import cc from 'js-crypto-conditions' +import cc from 'crypto-conditions' import ccJsonify from './utils/ccJsonify' diff --git a/src/transaction/makeSha256Condition.js b/src/transaction/makeSha256Condition.js index 0dc715b..27a8adf 100644 --- a/src/transaction/makeSha256Condition.js +++ b/src/transaction/makeSha256Condition.js @@ -1,6 +1,6 @@ import { Buffer } from 'buffer' -import cc from 'js-crypto-conditions' +import cc from 'crypto-conditions' import ccJsonify from './utils/ccJsonify' diff --git a/src/transaction/makeThresholdCondition.js b/src/transaction/makeThresholdCondition.js index 9daf088..3405861 100644 --- a/src/transaction/makeThresholdCondition.js +++ b/src/transaction/makeThresholdCondition.js @@ -1,4 +1,4 @@ -import cc from 'js-crypto-conditions' +import cc from 'crypto-conditions' import ccJsonify from './utils/ccJsonify' diff --git a/src/transaction/signTransaction.js b/src/transaction/signTransaction.js index c482ab4..a92cfdf 100644 --- a/src/transaction/signTransaction.js +++ b/src/transaction/signTransaction.js @@ -1,6 +1,6 @@ import { Buffer } from 'buffer' import base58 from 'bs58' -import cc from 'js-crypto-conditions' +import cc from 'crypto-conditions' import clone from 'clone' import serializeTransactionIntoCanonicalString from './serializeTransactionIntoCanonicalString' diff --git a/src/transaction/utils/ccJsonLoad.js b/src/transaction/utils/ccJsonLoad.js index 3ea9363..4122f4b 100644 --- a/src/transaction/utils/ccJsonLoad.js +++ b/src/transaction/utils/ccJsonLoad.js @@ -1,6 +1,6 @@ import { Buffer } from 'buffer' import base58 from 'bs58' -import cc from 'js-crypto-conditions' +import cc from 'crypto-conditions' /** * @public diff --git a/test/transaction/test_cryptoconditions.js b/test/transaction/test_cryptoconditions.js index 5396249..0b5f775 100644 --- a/test/transaction/test_cryptoconditions.js +++ b/test/transaction/test_cryptoconditions.js @@ -1,5 +1,5 @@ import test from 'ava' -import cc from 'js-crypto-conditions' +import cc from 'crypto-conditions' import { Ed25519Keypair, Transaction } from '../../src'