rename Message to message
This commit is contained in:
parent
5f8484645d
commit
bdb372da7d
3 changed files with 13 additions and 13 deletions
test/integration
|
@ -9,7 +9,7 @@ describe('bitcoinjs-lib (advanced)', function () {
|
|||
var key = bitcoin.ECKey.fromWIF('5KYZdUEo39z3FPrtuX2QbbwGnNP5zTd7yyr2SC1j299sBCnWjss')
|
||||
var message = 'This is an example of a signed message.'
|
||||
|
||||
var signature = bitcoin.Message.sign(key, message)
|
||||
var signature = bitcoin.message.sign(key, message)
|
||||
assert.equal(signature.toString('base64'), 'G9L5yLFjti0QTHhPyFrZCT1V/MMnBtXKmoiKDZ78NDBjERki6ZTQZdSMCtkgoNmp17By9ItJr8o7ChX0XxY91nk=')
|
||||
})
|
||||
|
||||
|
@ -18,7 +18,7 @@ describe('bitcoinjs-lib (advanced)', function () {
|
|||
var signature = 'HJLQlDWLyb1Ef8bQKEISzFbDAKctIlaqOpGbrk3YVtRsjmC61lpE5ErkPRUFtDKtx98vHFGUWlFhsh3DiW6N0rE'
|
||||
var message = 'This is an example of a signed message.'
|
||||
|
||||
assert(bitcoin.Message.verify(address, signature, message))
|
||||
assert(bitcoin.message.verify(address, signature, message))
|
||||
})
|
||||
|
||||
it('can create an OP_RETURN transaction', function (done) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue