[][src]Function ed25519::ed_sign

pub fn ed_sign(
    public: &[u8],
    secret: &[u8],
    message: &[u8]
) -> PyResult<PySignature>

Signs a message with the given keypair, returning the resulting signature.

Arguments

  • public - The ed25519 public key, as an array of 32 bytes
  • secret - The ed25519 private key, as an array of 32 bytes
  • message - The binary message to sign.

Returns

A 64-byte signature.