aeternity/aepp-sdk-js

`sign` should accept string as hex string or sg_encoded string, not as a raw data

Opened this issue · 0 comments

export function sign(data: string | Uint8Array, privateKey: string | Uint8Array): Uint8Array {
return nacl.sign.detached(Buffer.from(data), Buffer.from(privateKey));
}