Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steward creates a directory when trying to open keystore #251

Open
cbrit opened this issue Feb 8, 2024 · 0 comments · May be fixed by #267
Open

Steward creates a directory when trying to open keystore #251

cbrit opened this issue Feb 8, 2024 · 0 comments · May be fixed by #267
Labels
bug Something isn't working steward

Comments

@cbrit
Copy link
Member

cbrit commented Feb 8, 2024

steward/src/config.rs

Lines 57 to 63 in c3a98eb

fn load_secret_key(&self, name: String) -> k256::elliptic_curve::SecretKey<k256::Secp256k1> {
let keystore = Path::new(&self.keystore);
let keystore = FsKeyStore::create_or_open(keystore).expect("Could not open keystore");
let name = name.parse().expect("Could not parse name");
let key = keystore.load(&name).expect("Could not load key");
key.to_pem().parse().expect("Could not parse pem")
}

@cbrit cbrit added bug Something isn't working steward labels Feb 8, 2024
@cbrit cbrit linked a pull request Jul 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working steward
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant