Skip to content

Commit

Permalink
add script to generate sign_sk (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppca committed Jun 25, 2024
1 parent 76d4335 commit 89fa16c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ fn main() {
let cipher_sk = hex::encode(cipher_sk.to_bytes());
println!("cipher public key: {}", cipher_pk);
println!("cipher private key: {}", cipher_sk);
let sign_sk: SecretKey = "ed25519:46rYEgLEAQuyHryUaF2R2bXQiQKg5xvbKUzqZSTLZyzK6xDixPaoyex5ab1R5EAaiQCZZovbtzBCA3eQEMKZELWx".parse().unwrap();
let sign_sk = near_crypto::SecretKey::from_random(near_crypto::KeyType::ED25519);
let sign_pk = sign_sk.public_key();
println!("sign public key sign_pk: {}", sign_pk);
println!("sign secret key sign_sk: {}", sign_sk);
}
}

0 comments on commit 89fa16c

Please sign in to comment.