-
Notifications
You must be signed in to change notification settings - Fork 57
Conversation
closes #10
return new Buffer(s, 'hex') | ||
} | ||
|
||
exports.toB58String = function toB58String (m) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we've been using the toSomething
as obj.toNewFormat. Since this is a utility function and not something available on the object, I would prefer and argue it would be less confusing if instead of 'to' we use the word 'convert' or 'transform'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that would make these very long, e.g.
multihash.convertToB58String(myBuffer)
// compared to
multihash.toB58String(myBuffer)
Because you call it on the module I fell it's pretty clear that you convert from multihash to
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok then
@diasdavid also added api docs :) |
|
||
- `code: Number` | ||
|
||
Checks wether a code is part of the app range. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is an appCode?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anything between 0
and 0x10
. I'm not a 100% sure where in the spec they are defined
LGTM :) |
released 0.2.2 :) |
No description provided.