Skip to content

Releases: CasperDash/casper-storage

v.1.5.0

05 Aug 12:02

Choose a tag to compare

What's Changed

  • Get rid of storing key-phrase in memory by @codsay in #37

Enhanced security, avoid memory leak issue

  • Support accessing words by index from an entropy

e.g. get the first word of key-phrase: KeyFactory.getInstance().getWordAt(entropy, 0)

Full Changelog: v1.4.0...v1.5.0

v1.4.0

27 Jul 16:35

Choose a tag to compare

What's Changed

  • Update all dependencies to latest version
  • When working with mnemonic key, work with entropy by default
  • Mnemonic key should be transferred back and forth by an array instead of string (to avoid leaking), bonus with encoding mode

Full Changelog: v1.3.1...v1.4.0

v1.3.1

25 May 14:32

Choose a tag to compare

What's Changed

  • Support custom derivation path of HD wallet by @codsay in #35
    When creating a new user, we now can pass a custom derivation path to create wallets
const user = new User("user-password", {
    passwordValidator: {
      validatorRegex: "passwordRegexValidation",
    },
    "m/PURPOSE'/COINT_TYPE'/INDEX'"
});

Ref README for more details

Full Changelog: v.1.2.1...v1.3.1

v.1.2.1

24 Apr 14:49

Choose a tag to compare

Changes

Update dependencies to latest version, remarkable fixed BigInt literals from @noble-curves

v1.2.0

26 Mar 08:32

Choose a tag to compare

What's Changed

  • Feature/encrypt key phrase by @codsay in #33
    Stores encrypted key-phrase of HD wallet and allows users to get back key-phrase with their password
const user: IUser;

...
const keyPhrase = await user.getHDWalletKeyPhrase();

Full Changelog: v1.1.0...v1.2.0

v1.1.0

25 Mar 12:57
1af9f67

Choose a tag to compare

  • Updated dependencies
  • Fied issue #31
  • WalletInfo: Hides the sensitive keyPhrase information, works directly on keySeed instead

v1.0.0

24 Oct 16:27

Choose a tag to compare

Production ready

  • The library is audited by Cure53

Fixes and Breaking changes

  • Fix identified vulnerabilities
  • The internal default encryption modes are replaced by more secured approaches, the encrypted values in previous releases will not compatible with this new release
  • Get rid of hashing options, simplify the usage of user instance

Features

  • Adding ability to export private keys to PEM format
  • Default provided storage is secured by default

v0.2.5

11 Sep 15:54
92b63c1

Choose a tag to compare

Breaking changes

  • WalletInfo
    • Rename property key to id for consistency of code

Improvements

  • Introduce uid (which is hashed from id) to use as a reference id for wallets
  • Add icon, description to wallet descriptor
  • Expose 2 new methods: encrypt/decrypt from users to help encrypt/decrypt texts with user's password
  • User's serialize/deserialize support 2 modes (raw value / encryption)

Update dependencies to latest version

v0.2.4

09 Aug 14:24

Choose a tag to compare

Rename functions to avoid confusion

  • getPublicKey to getRawPublicKey which is generated directly from the private key
  • getPublicAddress to getPublicKey which is the formatted public key

    Prefix with 01 / 02 depending on the encryption type

  • getPublicHash to getPublicAddress which is populated from the pubic key (e.g hashing)

Update dependencies to latest version

v0.2.3

18 Apr 16:31

Choose a tag to compare

Bug fixes

  • Several fixes to integrate with react-native projects
    Guidelines