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

Method sign

atomic-identity/src/keypair.rs:147–150  ·  view source on GitHub ↗

Sign a message

(&self, message: &[u8])

Source from the content-addressed store, hash-verified

145
146 /// Sign a message
147 pub fn sign(&self, message: &[u8]) -> [u8; 64] {
148 let sig = self.0.sign(message);
149 sig.to_bytes()
150 }
151}
152
153impl fmt::Debug for SecretKey {

Callers 9

mint_tokenFunction · 0.45
runMethod · 0.45
executeMethod · 0.45
test_signing_workflowFunction · 0.45
test_sign_and_verifyFunction · 0.45

Calls 1

to_bytesMethod · 0.45

Tested by 6

test_signing_workflowFunction · 0.36
test_sign_and_verifyFunction · 0.36