MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / from_secret_key

Method from_secret_key

atomic-identity/src/signing.rs:149–151  ·  view source on GitHub ↗

Create a new signer from a secret key.

(secret_key: &'a SecretKey)

Source from the content-addressed store, hash-verified

147impl<'a> Signer<'a> {
148 /// Create a new signer from a secret key.
149 pub fn from_secret_key(secret_key: &'a SecretKey) -> Self {
150 Self { secret_key }
151 }
152
153 /// Create a new signer from a keypair.
154 pub fn new(keypair: &'a KeyPair) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected