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

Method sign

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

Sign a message

(&self, message: &[u8])

Source from the content-addressed store, hash-verified

187
188 /// Sign a message
189 pub fn sign(&self, message: &[u8]) -> [u8; 64] {
190 let sig = self.0.sign(message);
191 sig.to_bytes()
192 }
193}
194
195impl fmt::Debug for SecretKey {

Callers 10

mint_tokenFunction · 0.45
runMethod · 0.45
executeMethod · 0.45
attest_valueFunction · 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