UNPKG

ssv-keys

Version:

Tool for splitting a validator key into a predefined threshold of shares via Shamir-Secret-Sharing (SSS), and encrypt them with a set of operator keys.

16 lines (15 loc) 536 B
// jest-dom adds custom jest matchers for asserting on DOM nodes. // allows you to do things like: // expect(element).toHaveTextContent(/react/i) // learn more: https://github.com/testing-library/jest-dom // import crypto from 'crypto'; // import 'jsdom-global/register'; // import '@testing-library/jest-dom/extend-expect'; // // // eslint-disable-next-line @typescript-eslint/ban-ts-comment // // @ts-ignore // window.crypto = { // getRandomValues: function (buffer: any) { // return crypto.randomFillSync(buffer); // } // };