Upgrade to signature scheme 0.6.0

This commit is contained in:
Kirk Baird
2019-03-12 16:01:09 +11:00
parent efd56ebe37
commit c92f867cd8
5 changed files with 23 additions and 26 deletions

View File

@@ -58,7 +58,7 @@ impl KeypairsFile for Vec<Keypair> {
let pk_start = sk_end;
let pk_end = pk_start + PUBLIC_KEY_BYTES_LEN;
let pk = PublicKey::from_bytes(&buf[pk_start..pk_end])
let pk = PublicKey::from_uncompressed_bytes(&buf[pk_start..pk_end])
.map_err(|_| Error::new(ErrorKind::Other, "Invalid PublicKey bytes"))
.unwrap();