nostrEncryptMessage
Use requirement
Firmware version required
Touch: 4.6.0
Classic/Mini: 3.5.0
Classic1s: 3.6.0
Nostr: Encrypt Message
Asks device to encrypt message using the private key derived by given BIP32 path. User is asked to confirm all transaction details on OneKey.
const result = await HardwareSDK.nostrEncryptMessage(connectId, deviceId, params);Params
path- requiredstring | Array<number>minimum length is3. read morepubkey- requiredstringpublic key .plaintext- requiredstringmessages that need to be encrypted.showOnOneKey- optionalbooleandetermines if address will be displayed on device. Default is set totrue.
Examples
Result
Error
Last updated
Was this helpful?