Releases: ssvlabs/ssv-keys
Releases · ssvlabs/ssv-keys
v1.2.1
v1.2.0
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
v1.1.0
v1.0.8-custom-bulk
v1.0.8-custom-bulk
v1.0.1
v1.0.1
v1.0.0.rc0
Merge pull request #44 from bloxapp/vc/IO1-3576-keyshares-version keyshares version
v0.0.21
v0.0.21
v0.0.20
v0.0.20
v0.0.18
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
andoperatorKeys
with a single array of objects:const operators = [{ id, publicKey },...];
-
Replaced
getPrivateKeyFromKeystoreData
method byextractKeys
which returns validator privateKey and publicKey.const { privateKey, publicKey } = await ssvKeys.extractKeys(keystore, keystorePassword);
-
Replaced
ssvKeys.keyShares.setData
tokeyShares.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
Merge pull request #32 from bloxapp/v3 Merge v3 to main