|
@@ -8,7 +8,7 @@ use std::io::Write;
|
|
|
fn main() {
|
|
|
// import bridgedb pubkey
|
|
|
// note: currently no checks for valid data
|
|
|
- let infile = std::fs::File::open("../pubkeys/bridgedb_pubkey").unwrap();
|
|
|
+ let infile = std::fs::File::open("bridgedb_pubkey").unwrap();
|
|
|
let mut reader = BufReader::new(infile);
|
|
|
let mut buffer = Vec::new();
|
|
|
reader
|
|
@@ -28,7 +28,7 @@ fn main() {
|
|
|
count += 1;
|
|
|
let pubkey_bytes = pubkey.compress().to_bytes();
|
|
|
// Is this the proper way to concatenate an integer and a string?
|
|
|
- let mut outfile = File::create(format!("{}{}", "../pubkeys/bridge_auth_pubkey_", count))
|
|
|
+ let mut outfile = File::create(format!("bridge_auth_pubkey_{}", count))
|
|
|
.expect("Failed to create pubkey file");
|
|
|
outfile
|
|
|
.write_all(&pubkey_bytes)
|