integration tests: test description rephrasing
This commit is contained in:
parent
f81a47a8b9
commit
ec517376c2
2 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@ var bigi = require('bigi')
|
|||
var bitcoin = require('../../')
|
||||
|
||||
describe('bitcoinjs-lib (advanced)', function() {
|
||||
it('can sign a bitcoin message', function() {
|
||||
it('can sign a Bitcoin message', function() {
|
||||
var key = bitcoin.ECKey.fromWIF('5KYZdUEo39z3FPrtuX2QbbwGnNP5zTd7yyr2SC1j299sBCnWjss')
|
||||
var message = 'This is an example of a signed message.'
|
||||
|
||||
|
@ -12,7 +12,7 @@ describe('bitcoinjs-lib (advanced)', function() {
|
|||
assert.equal(signature.toString('base64'), 'G9L5yLFjti0QTHhPyFrZCT1V/MMnBtXKmoiKDZ78NDBjERki6ZTQZdSMCtkgoNmp17By9ItJr8o7ChX0XxY91nk=')
|
||||
})
|
||||
|
||||
it('can verify a bitcoin message', function() {
|
||||
it('can verify a Bitcoin message', function() {
|
||||
var address = '1HZwkjkeaoZfTSaJxDw6aKkxp45agDiEzN'
|
||||
var signature = 'HJLQlDWLyb1Ef8bQKEISzFbDAKctIlaqOpGbrk3YVtRsjmC61lpE5ErkPRUFtDKtx98vHFGUWlFhsh3DiW6N0rE'
|
||||
var message = 'This is an example of a signed message.'
|
||||
|
|
|
@ -18,7 +18,7 @@ describe('bitcoinjs-lib (basic)', function() {
|
|||
assert.equal(address, '1F5VhMHukdnUES9kfXqzPzMeF1GPHKiF64')
|
||||
}))
|
||||
|
||||
it('can initialize a ECKey from a sha256 hash', function() {
|
||||
it('can generate an address from a SHA256 hash', function() {
|
||||
var hash = bitcoin.crypto.sha256('correct horse battery staple')
|
||||
var d = bigi.fromBuffer(hash)
|
||||
|
||||
|
@ -27,7 +27,7 @@ describe('bitcoinjs-lib (basic)', function() {
|
|||
assert.equal(key.pub.getAddress().toString(), '1C7zdTfnkzmr13HfA2vNm5SJYRK6nEKyq8')
|
||||
})
|
||||
|
||||
it('can import a WIF encoded private key', function() {
|
||||
it('can import an address via WIF', function() {
|
||||
var key = bitcoin.ECKey.fromWIF('Kxr9tQED9H44gCmp6HAdmemAzU3n84H3dGkuWTKvE23JgHMW8gct')
|
||||
var address = key.pub.getAddress().toString()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue