Does it helps?
    
    
    proc crypto_ed25519_sign(signature: array[64, uint8];
                             secret_key: array[32, uint8];
                             message: ptr uint8;
                             message_size: csize) {.cdecl, importc: 
"crypto_ed25519_sign".}
    
    var message = newSeq[uint8]()
    crypto_ed25519_sign(signature, key, cast[ptr uint8](addr message[0]), 
len(message))
    
    

Reply via email to