Skip to content

jellyfish-wallet-encrypted#344

Closed
ivan-zynesis wants to merge 83 commits intomainfrom
feature/mnemonic-wallet/scrypt-storage
Closed

jellyfish-wallet-encrypted#344
ivan-zynesis wants to merge 83 commits intomainfrom
feature/mnemonic-wallet/scrypt-storage

Conversation

@ivan-zynesis
Copy link
Contributor

@ivan-zynesis ivan-zynesis commented Jun 4, 2021

What kind of PR is this?:

/kind feature

What this PR does / why we need it:

  • sub package, library to encrypt mnemonic seed and store
  • any private key usage require caller to decrypt storage using a passphrase

Which issue(s) does this PR fixes?:

Fixes #133

Additional comments?:

wait for dependencies merged, will ease the reading
trimmed down changes into series of PRs
#331 (merged) -> #369 (merged) -> #371 then this (put this into draft first)

@qlty-cloud-legacy
Copy link

qlty-cloud-legacy bot commented Jun 4, 2021

Code Climate has analyzed commit c7d51bd and detected 0 issues on this pull request.

View more on Code Climate.

@netlify
Copy link

netlify bot commented Jun 4, 2021

✔️ Deploy Preview for jellyfish-defi ready!

🔨 Explore the source changes: 90e1195

🔍 Inspect the deploy log: https://app.netlify.com/sites/jellyfish-defi/deploys/60f536d8871ddc00073397fd

😎 Browse the preview: https://deploy-preview-344--jellyfish-defi.netlify.app

@ivan-zynesis ivan-zynesis changed the title Feature/mnemonic wallet/scrypt storage jellyfish-wallet-encrypted Jun 4, 2021
@ivan-zynesis ivan-zynesis marked this pull request as draft June 4, 2021 04:39
@github-actions
Copy link

github-actions bot commented Jun 4, 2021

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
packages/jellyfish/dist/index.umd.js 21.37 KB (0%) 428 ms (0%) 187 ms (-3.45% 🔽) 615 ms

@ivan-zynesis ivan-zynesis marked this pull request as ready for review June 4, 2021 05:09
@codecov
Copy link

codecov bot commented Jun 4, 2021

Codecov Report

Merging #344 (d8366b1) into main (00986ae) will increase coverage by 4.47%.
The diff coverage is 98.41%.

❗ Current head d8366b1 differs from pull request most recent head c7d51bd. Consider uploading reports for the commit c7d51bd to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main     #344      +/-   ##
==========================================
+ Coverage   92.98%   97.46%   +4.47%     
==========================================
  Files          10      105      +95     
  Lines         171     3071    +2900     
  Branches       19      300     +281     
==========================================
+ Hits          159     2993    +2834     
- Misses         12       78      +66     
Impacted Files Coverage Δ
packages/jellyfish-crypto/src/hash.ts 100.00% <ø> (ø)
packages/jellyfish-crypto/src/index.ts 100.00% <ø> (ø)
packages/jellyfish-crypto/src/wif.ts 100.00% <ø> (ø)
packages/jellyfish-json/src/index.ts 93.10% <ø> (ø)
packages/jellyfish-json/src/remap.ts 96.96% <ø> (ø)
packages/jellyfish-network/src/index.ts 84.61% <ø> (ø)
...ackages/jellyfish-transaction-builder/src/index.ts 100.00% <ø> (ø)
...llyfish-transaction-builder/src/txn/txn_builder.ts 96.15% <ø> (ø)
...transaction-builder/src/txn/txn_builder_account.ts 100.00% <ø> (ø)
...ish-transaction-builder/src/txn/txn_builder_dex.ts 100.00% <ø> (ø)
... and 142 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 90bdb00...c7d51bd. Read the comment docs.

@ivan-zynesis ivan-zynesis marked this pull request as draft June 4, 2021 08:25
Copy link

@qlty-cloud-legacy qlty-cloud-legacy bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 8935 lines exceeds the maximum allowed for the inline comments feature.

@ivan-zynesis ivan-zynesis marked this pull request as ready for review June 8, 2021 04:39
Copy link

@qlty-cloud-legacy qlty-cloud-legacy bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 8940 lines exceeds the maximum allowed for the inline comments feature.

@ivan-zynesis ivan-zynesis marked this pull request as ready for review July 16, 2021 22:39
@fuxingloh
Copy link
Contributor

fuxingloh commented Jul 21, 2021

I am reviewing this, give me some time to understand its integrative behavior

@fuxingloh fuxingloh self-assigned this Jul 21, 2021
fuxingloh added a commit that referenced this pull request Jul 21, 2021
fuxingloh added a commit that referenced this pull request Jul 22, 2021
* pulled changes from #344

* refactor jellyfish-wallet-encrypted encryption layer for a cleaner abstraction pattern

* fixed scrypt_provider import

* refactor encryption to just scrypt
@fuxingloh
Copy link
Contributor

Closed in favor of #480

@fuxingloh fuxingloh closed this Jul 22, 2021
eli-lim pushed a commit that referenced this pull request Mar 27, 2022
* Add basic indexer and model

* Working implementation, added tests

* Added changes to masternode controller and tests

* Fixed test

* Fix flakey test

* Added post eunos paya test

* Improve code coverage

* Improved test coverage for controller

* Fixed new naming

* Add timelock

* Fix test

* Fix tests

* Update packages/whale-api-client/__tests__/api/masternodes.test.ts

Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com>

* Update src/module.api/masternode.controller.ts

Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com>

* Make resign tx optional

* Made resign struct optional

* Fix tests

* Fix tests

* Make tx not optional

* This is better

* Fix test

Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com>
canonbrother pushed a commit that referenced this pull request Jun 1, 2022
* Add basic indexer and model

* Working implementation, added tests

* Added changes to masternode controller and tests

* Fixed test

* Fix flakey test

* Added post eunos paya test

* Improve code coverage

* Improved test coverage for controller

* Fixed new naming

* Add timelock

* Fix test

* Fix tests

* Update packages/whale-api-client/__tests__/api/masternodes.test.ts

Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com>

* Update src/module.api/masternode.controller.ts

Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com>

* Make resign tx optional

* Made resign struct optional

* Fix tests

* Fix tests

* Make tx not optional

* This is better

* Fix test

Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com>
canonbrother pushed a commit that referenced this pull request Jun 1, 2022
* Add basic indexer and model

* Working implementation, added tests

* Added changes to masternode controller and tests

* Fixed test

* Fix flakey test

* Added post eunos paya test

* Improve code coverage

* Improved test coverage for controller

* Fixed new naming

* Add timelock

* Fix test

* Fix tests

* Update packages/whale-api-client/__tests__/api/masternodes.test.ts

Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com>

* Update src/module.api/masternode.controller.ts

Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com>

* Make resign tx optional

* Made resign struct optional

* Fix tests

* Fix tests

* Make tx not optional

* This is better

* Fix test

Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature New feature request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

jellyfish-wallet-mnemonic to support encrypt and decrypt

3 participants