Skip to content

Latest commit

 

History

History
48 lines (40 loc) · 985 Bytes

RELEASES.md

File metadata and controls

48 lines (40 loc) · 985 Bytes

Release v0.0.21 - 2023-05-19

This release introduces new feature to generate BLS signatures with a validator's private key for improved security.

Breaking changes

import { SSVKeys, KeyShares } from 'ssv-keys';

const ssvKeys = new SSVKeys();
const keyShares = new KeyShares();

const { privateKey, publicKey } = await ssvKeys.extractKeys(keystore, keystorePassword);

...
const payload = keyShares.buildPayload({
  publicKey,
  operators,
  encryptedShares
}, {
  ownerAddress: ...validator owner address...,
  ownerNonce: ...nonce of the owner...,
  privateKey
});

await keyShares.validateSingleShares(payload.shares, {
  ownerAddress: ...validator owner address...,
  ownerNonce: ...nonce of the owner...,
  publicKey,
});

KeyShares Json v4

version: 'v4',
data: {
  publicKey,
  operators: [
    {
      id: ...,
      operatorKey: '...',
    },
  ],
},
payload: {
  ...
}