use baddress/bcrypto/bscript for ambuigities
This commit is contained in:
parent
6ec687deba
commit
8934de591c
9 changed files with 113 additions and 113 deletions
test
|
@ -1,7 +1,7 @@
|
|||
/* global describe, it */
|
||||
|
||||
var assert = require('assert')
|
||||
var crypto = require('../src/crypto')
|
||||
var bcrypto = require('../src/crypto')
|
||||
|
||||
var fixtures = require('./fixtures/crypto')
|
||||
|
||||
|
@ -9,7 +9,7 @@ describe('Crypto', function () {
|
|||
['hash160', 'hash256', 'ripemd160', 'sha1', 'sha256'].forEach(function (algorithm) {
|
||||
describe(algorithm, function () {
|
||||
fixtures.valid.forEach(function (f) {
|
||||
var fn = crypto[algorithm]
|
||||
var fn = bcrypto[algorithm]
|
||||
var expected = f[algorithm]
|
||||
|
||||
it('returns ' + expected + ' for ' + f.hex, function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue