Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Move utils to a new repo #318

Open
5 tasks
mrcnski opened this issue Oct 14, 2021 · 0 comments
Open
5 tasks

Move utils to a new repo #318

mrcnski opened this issue Oct 14, 2021 · 0 comments
Labels

Comments

@mrcnski
Copy link
Contributor

mrcnski commented Oct 14, 2021

Overview

A lot of the utilities in the utils folder are needed in other JS projects, e.g.:

  • Conversion functions e.g. hexToUint8Array
  • Crypto functions e.g. sha512
  • The validation functions e.g. validateHexString
  • etc.

In skynet-mysky we have been copy/pasting these utility functions from skynet-js, but that increases the maintenance burden if they ever need to be updated.

Design or Proposal

  • Create a new repo e.g. skynet-utils
  • Move all utilities from skynet-js not specific to skynet-js to the new repo.
  • Publish the new repo
  • Use skynet-utils as a dependency in skynet-js
  • Use skynet-utils as a dependency in skynet-mysky
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant