Skip to content

Should _toBuf be renamed and documented? #22425

Closed
@ghost

Description

It seems that we now can use the internal function _toBuf() by exposing it directly from the internal/crypto/util. (See codes at crypto.jsLine 90~91, Line 142):

Now I wonder:

1)Generally speaking, since this is a public function exposed to the public, should it be renamed to toBuf instead of _toBuf()? The latter looks like a private function for inner usages.

2)Should it be documented? Any other suggestions or plans?

Thanks anyway!

Metadata

Metadata

Assignees

No one assigned

    Labels

    cryptoIssues and PRs related to the crypto subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions