Skip to content

Commit db82bea

Browse files
author
maxufeng
committed
[feat] fit bifchain
1 parent 3ebc63d commit db82bea

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
const basex = require('base-x')
2-
const ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
2+
const ALPHABET = '123456789AbCDEFGHJKLMNPQRSTuVWXYZaBcdefghijkmnopqrstUvwxyz'
33

44
module.exports = basex(ALPHABET)

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "bs58",
2+
"name": "@bifproject/bs58",
33
"version": "5.0.0",
4-
"description": "Base 58 encoding / decoding",
4+
"description": "Base 58 encoding / decoding for bif",
55
"keywords": [
66
"base58",
77
"bitcoin",
@@ -11,15 +11,16 @@
1111
"decoding",
1212
"encode",
1313
"encoding",
14-
"litecoin"
14+
"litecoin",
15+
"bif"
1516
],
1617
"license": "MIT",
1718
"devDependencies": {
1819
"standard": "^16.0.4",
1920
"tape": "^4.6.3"
2021
},
2122
"repository": {
22-
"url": "https://github.com/cryptocoinjs/bs58",
23+
"url": "https://github.com/caict-4iot-dev/bs58",
2324
"type": "git"
2425
},
2526
"files": [

test/fixtures.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
"string": "aPEr"
1818
},
1919
{
20-
"hex": "73696d706c792061206c6f6e6720737472696e67",
20+
"hex": "736712b21ecd6e5b57ed63efaaf2c80f79696e67",
2121
"string": "2cFupjhnEsSn59qHXstmK2ffpLv2"
2222
},
2323
{
24-
"hex": "00eb15231dfceb60925886b67d065299925915aeb172c06647",
24+
"hex": "00eb15231dfceb60925886b67d06529992590a4ee03462ad47",
2525
"string": "1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L"
2626
},
2727
{
28-
"hex": "516b6fcd0f",
28+
"hex": "55165cd40f",
2929
"string": "ABnLTmg"
3030
},
3131
{
@@ -34,10 +34,10 @@
3434
},
3535
{
3636
"hex": "572e4794",
37-
"string": "3EFU7m"
37+
"string": "3EFu7m"
3838
},
3939
{
40-
"hex": "ecac89cad93923c02321",
40+
"hex": "ecac89cad93923beda9d",
4141
"string": "EJDM8drfXA6uyA"
4242
},
4343
{
@@ -49,12 +49,12 @@
4949
"string": "1111111111"
5050
},
5151
{
52-
"hex": "801184cd2cdd640ca42cfc3a091c51d549b2f016d454b2774019c2b2d2e08529fd206ec97e",
52+
"hex": "801184cd2cdd640ca42cfc3a091c51d549b2f016d454b2774019c2b2d2e084f9cb0dbecd7e",
5353
"string": "5Hx15HFGyep2CfPxsJKe2fXJsCVn5DEiyoeGGF6JZjGbTRnqfiD"
5454
},
5555
{
56-
"hex": "003c176e659bea0f29a3e9bf7880c112b1b31b4dc826268187",
57-
"string": "16UjcYNBG9GTK4uq2f7yYEbuifqCzoLMGS"
56+
"hex": "003c176e65b99daab855f34bce35447cf55f7bf711c65fbd87",
57+
"string": "16ujcYNBG9GTK4uq2f7yYEbuifqCzoLMGS"
5858
}
5959
],
6060
"invalid": [

0 commit comments

Comments
 (0)