- Firmware version required
- Touch: 4.6.0
- Classic/Mini: 3.5.0
- Classic1s: 3.6.0
Asks device to sign given schnorr transaction using the private key derived by given BIP32 path. User is asked to confirm all transaction details on OneKey.
const result = await HardwareSDK.nostrSignSchnorr(connectId, deviceId, params);
path
— requiredstring | Array<number>
minimum length is3
. read morehash
— requiredstring
schnorr hash.
const response = await HardwareSDK.nostrSignSchnorr(
connectId,
deviceId,
{
path: "m/44'/1237'/0'/0/0",
hash: '2118c65161c7d68b4bdbe1374f658532670057ab1bb0c99937d0ff7cff45cb5e',
}
);
Result
{
success: true,
payload: {
path: string;
rawHash: string,
signature: string,
}
}
Error
{
success: false,
payload: {
error: string, // error message
code: number // error code
}
}