Skip to content

Releases: ssvlabs/ssv-keys

v1.2.0

29 Aug 08:05
e370c87
Compare
Choose a tag to compare
Removed dependencies on etherjs and web3js (#65)

* updated elliptic lib version due to vulnerability found in previous version

* removed web3js and ethers.js

* updated nodejs to 16 in github actions

* set esbuild to v0.14.54 in github actions

* fix lint

* removed unused code

v1.1.0

01 Feb 11:07
2768d49
Compare
Choose a tag to compare

v1.1.0

v1.0.8-custom-bulk

06 Aug 14:22
Compare
Choose a tag to compare
v1.0.8-custom-bulk Pre-release
Pre-release
v1.0.8-custom-bulk

v1.0.1

06 Jul 07:56
852a92f
Compare
Choose a tag to compare
v1.0.1

v1.0.0.rc0

19 Jun 09:40
852a92f
Compare
Choose a tag to compare
v1.0.0.rc0 Pre-release
Pre-release
Merge pull request #44 from bloxapp/vc/IO1-3576-keyshares-version

keyshares version

v0.0.21

07 Jun 16:32
Compare
Choose a tag to compare
v0.0.21

v0.0.20

22 May 10:34
Compare
Choose a tag to compare
v0.0.20 Pre-release
Pre-release
v0.0.20

v0.0.18

18 May 14:30
2fbaedf
Compare
Choose a tag to compare

This release introduces some significant SDK changes, including a few breaking changes. Please review the notes below and update your code accordingly.

Breaking Changes

SSVKeys, KeyShares

  • Removed multi-version support.

    Old version:

    const ssvKeys = new SSVKeys(SSVKeys.VERSION.V3);
    

    New format:

    import { SSVKeys, KeyShares } from 'ssv-keys';
    const ssvKeys = new SSVKeys();
    const keyShares = new KeyShares();
    
  • Replaced operatorIds and operatorKeys with a single array of objects:

    const operators = [{ id, publicKey },...];
    
  • Replaced getPrivateKeyFromKeystoreData method by extractKeys which returns validator privateKey and publicKey.

    const { privateKey, publicKey } = await ssvKeys.extractKeys(keystore, keystorePassword);
    
  • Replaced ssvKeys.keyShares.setData to keyShares.update

    Old version:

    await ssvKeys.keyShares.setData({ operators });
    

    New format:

    const keyShares = new KeyShares();
    keyShares.update({ operators, publicKey });
    
  • Changed buildShares function params:

    Old version:

    const encryptedShares = await ssvKeys.buildShares(privateKey, operatorIds, operators);
    

    New format:

    const encryptedShares = await ssvKeys.buildShares(privateKey, operators);
    
  • Changed buildPayload interface and params:

    Old version:

    const payload = await ssvKeys.buildPayload({ publicKey, operatorIds, encryptedShares });
    

    New format:

    const payload = keyShares.buildPayload({ publicKey, operators, encryptedShares });
    
  • Added buildSharesFromBytes to extract shares from a single string:

    const shares = keyShares.buildSharesFromBytes(payload.shares, operators.length);
    

v0.0.16

03 May 08:47
f277aaa
Compare
Choose a tag to compare
Merge pull request #32 from bloxapp/v3

Merge v3 to main

v0.0.15

30 Mar 09:34
Compare
Choose a tag to compare
v0.0.15