Commit 7de22d84 authored by Zhenzhen Zhan's avatar Zhenzhen Zhan

Address prefix change

parent 7f9a1670
Pipeline #677 failed with stages
......@@ -29,7 +29,7 @@ var signature = Message('hello, world').sign(privateKey);
To verify a message:
```javascript
var address = 'n1ZCYg9YXtB5XCZazLxSmPDa8iwJRZHhGx';
var address = 'tCRWZ2dNEPftK5QP4JLnAeaBraq6i9yt4mE2T';
var signature = 'H/DIn8uA1scAuKLlCx+/9LnAcJtwQQ0PmcPrJUq90aboLv3fH5fFvY+vmbfOSFEtGarznYli6ShPr9RXwY9UrIY=';
var verified = Message('hello, world').verify(address, signature);
```
......@@ -11,8 +11,8 @@ var Message = require('../');
describe('Message', function() {
var address = 'n1ZCYg9YXtB5XCZazLxSmPDa8iwJRZHhGx';
var badAddress = 'mmRcrB5fTwgxaFJmVLNtaG8SV454y1E3kC';
var address = 'tCRWZ2dNEPftK5QP4JLnAeaBraq6i9yt4mE2T';
var badAddress = 'tCRWJu3fjKnpNbHS73XHA51zjVhT3HkPDThbD';
var privateKey = bitcore.PrivateKey.fromWIF('cPBn5A4ikZvBTQ8D7NnvHZYCAxzDZ5Z2TSGW2LkyPiLxqYaJPBW4');
var text = 'hello, world';
var signatureString = 'IENYChRyuvwUNrv4OuMaBPWl/Fo3e/DR9pQyyCHKgFrSeXTmVf11fKokjCDgm3lkwGaJONEGDXCGWKF/gExUhnE=';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment