This repository has been archived on 2023-04-09. You can view files and clone it, but cannot push or open issues or pull requests.
2019-08-05 15:48:26 +00:00
|
|
|
import {join} from "path";
|
|
|
|
import {describeSpecTest} from "@chainsafe/eth2.0-spec-test-util";
|
|
|
|
import bls from "../../src";
|
|
|
|
|
|
|
|
describeSpecTest(
|
2019-09-04 11:35:34 +00:00
|
|
|
join(__dirname, "../../../spec-test-cases/tests/bls/priv_to_pub/priv_to_pub.yaml"),
|
|
|
|
bls.generatePublicKey,
|
|
|
|
({input}) => {
|
|
|
|
return [Buffer.from(input.replace('0x', ''), 'hex')];
|
|
|
|
},
|
|
|
|
({output}) => output,
|
|
|
|
(result) => `0x${result.toString('hex')}`,
|
|
|
|
() => false,
|
2019-08-05 15:48:26 +00:00
|
|
|
);
|