@leofcoin/codec-format-interface 1.2.3 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -51,7 +51,7 @@ class BasicInterface {
51
51
  return bs32__default["default"].isBase32(string)
52
52
  }
53
53
  isBase58(string) {
54
- return bs58__default["default"].isBase32(string)
54
+ return bs58__default["default"].isBase58(string)
55
55
  }
56
56
  /**
57
57
  * @param {String} encoded
@@ -232,6 +232,14 @@ var codecs = {
232
232
  codec: parseInt('636d', 16),
233
233
  hashAlg: 'dbl-keccak-256',
234
234
  },
235
+ 'peernet-file' : {
236
+ codec: parseInt('7066', 16),
237
+ hashAlg: 'keccak-256',
238
+ },
239
+ 'peernet-file-response' : {
240
+ codec: parseInt('706672', 16),
241
+ hashAlg: 'keccak-256',
242
+ }
235
243
  };
236
244
 
237
245
  class PeernetCodec extends BasicInterface {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/codec-format-interface",
3
- "version": "1.2.3",
3
+ "version": "1.2.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "src/index.js",
@@ -19,7 +19,7 @@ export default class BasicInterface {
19
19
  return bs32.isBase32(string)
20
20
  }
21
21
  isBase58(string) {
22
- return bs58.isBase32(string)
22
+ return bs58.isBase58(string)
23
23
  }
24
24
  /**
25
25
  * @param {String} encoded
package/src/codecs.js CHANGED
@@ -76,4 +76,12 @@ export default {
76
76
  codec: parseInt('636d', 16),
77
77
  hashAlg: 'dbl-keccak-256',
78
78
  },
79
+ 'peernet-file' : {
80
+ codec: parseInt('7066', 16),
81
+ hashAlg: 'keccak-256',
82
+ },
83
+ 'peernet-file-response' : {
84
+ codec: parseInt('706672', 16),
85
+ hashAlg: 'keccak-256',
86
+ }
79
87
  }