build: made it easier to build bind-shell
This commit is contained in:
@@ -7,4 +7,5 @@ edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0.70"
|
||||
ed25519-dalek = "1.0.1"
|
||||
ed25519-dalek = "1.0.1"
|
||||
ex-bind-shell-key-generator = { path = "../key-generator" }
|
||||
@@ -3,8 +3,7 @@ use std::{io::prelude::*, net::UdpSocket, thread};
|
||||
use anyhow::{anyhow, Context};
|
||||
use ed25519_dalek::{Keypair, Signer};
|
||||
|
||||
const PUBKEY: &[u8] = include_bytes!("../../key-generator/pubkey");
|
||||
const PRIVKEY: &[u8] = include_bytes!("../../key-generator/privkey");
|
||||
use ex_bind_shell_key_generator::{PRIVKEY, PUBKEY};
|
||||
|
||||
fn main() -> anyhow::Result<()> {
|
||||
let privkey = Keypair::from_bytes(&[PRIVKEY, PUBKEY].concat())
|
||||
|
||||
Reference in New Issue
Block a user