mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-29 20:27:14 +00:00
Update milagro_bls to new release (#1183)
* Update milagro_bls to new release Signed-off-by: Kirk Baird <baird.k@outlook.com> * Tidy up fake cryptos Signed-off-by: Kirk Baird <baird.k@outlook.com> * move SecretHash to bls and put plaintext back Signed-off-by: Kirk Baird <baird.k@outlook.com>
This commit is contained in:
committed by
Michael Sproul
parent
ce10db15da
commit
197adeff0b
@@ -369,7 +369,7 @@ fn validator_create() {
|
||||
fn write_legacy_keypair<P: AsRef<Path>>(name: &str, dir: P) -> Keypair {
|
||||
let keypair = Keypair::random();
|
||||
|
||||
let mut keypair_bytes = keypair.pk.as_bytes();
|
||||
let mut keypair_bytes = keypair.pk.as_bytes().to_vec();
|
||||
keypair_bytes.extend_from_slice(keypair.sk.as_bytes().as_ref());
|
||||
|
||||
fs::write(dir.as_ref().join(name), &keypair_bytes).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user