How to use the @keepkey/device-protocol/lib/messages_pb.CharacterAck function in @keepkey/device-protocol

To help you get started, we’ve selected a few @keepkey/device-protocol examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shapeshift / hdwallet / packages / hdwallet-keepkey / src / keepkey.ts View on Github external
public async sendCharacterProto(
    character: string,
    _delete: boolean,
    _done: boolean
  ): Promise {
    const characterAck = new Messages.CharacterAck();
    if (character !== "") {
      characterAck.setCharacter(character);
    } else if (_delete) {
      characterAck.setDelete(_delete);
    } else if (_done) {
      characterAck.setDone(_done);
    }
    console.assert(undefined === await this.transport.call(Messages.MessageType.MESSAGETYPE_CHARACTERACK, characterAck, DEFAULT_TIMEOUT, true, true))
  }