Releases: ssvlabs/ssv-keys
Releases · ssvlabs/ssv-keys
v1.2.0
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
v0.0.15
v0.0.15