patch_seq_crypto_ed25519_sign

Function patch_seq_crypto_ed25519_sign 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn patch_seq_crypto_ed25519_sign( stack: Stack, ) -> Stack
Expand description

Sign a message with an Ed25519 private key

Stack effect: ( message private-key – signature success )

Parameters:

  • message: The message to sign (any string)
  • private-key: Hex-encoded 32-byte private key (64 hex characters)

Returns:

  • signature: Hex-encoded 64-byte signature (128 hex characters)
  • success: Bool indicating success

§Safety

Stack must have String, String values on top