import { crypto_sign } from './crypto_sign'
import { crypto_verify } from './crypto_verify'
-const MESSAGE_BYTES: i32 = 32
const PRIVATEKEY_BYTES: i32 = 32
const PUBLICKEY_BYTES: i32 = 32
const SIGNATURE_BYTES: i32 = 64
// Static I/O buffers
-const INPUT_BUFFER_BYTES: i32 = SIGNATURE_BYTES + MESSAGE_BYTES
+const INPUT_BUFFER_BYTES: i32 = SIGNATURE_BYTES + PUBLICKEY_BYTES
const MESSAGE_BUFFER_BYTES: i32 = 32768
const OUTPUT_BUFFER_BYTES: i32 = SIGNATURE_BYTES
const INPUT_BUFFER = new StaticArray<u8>(INPUT_BUFFER_BYTES)
const MESSAGE_BUFFER = new StaticArray<u8>(MESSAGE_BUFFER_BYTES)
const OUTPUT_BUFFER = new StaticArray<u8>(OUTPUT_BUFFER_BYTES)
-/** Returns the pointer to the static input buffer (128 bytes). */
+/** Returns the pointer to the static input buffer (96 bytes). */
export function getInputPointer (): usize {
return changetype<usize>(INPUT_BUFFER)
}