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

Method new

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

Create a new signer from a keypair.

(keypair: &'a KeyPair)

Source from the content-addressed store, hash-verified

152
153 /// Create a new signer from a keypair.
154 pub fn new(keypair: &'a KeyPair) -> Self {
155 Self {
156 secret_key: &keypair.secret,
157 }
158 }
159
160 /// Sign a message.
161 pub fn sign(&self, message: &[u8]) -> Signature {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected