How to use the @keepkey/device-protocol/lib/messages_pb.DebugLinkDecision 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 / debuglink.ts View on Github external
public async press (isYes: boolean): Promise {
      let decision = new ProtoMessages.DebugLinkDecision()
      decision.setYesNo(isYes)

      await this.transport.callDebugLink(
        ProtoMessages.MessageType.MESSAGETYPE_DEBUGLINKDECISION,
        decision,
        DEFAULT_TIMEOUT,
        /*omitLock=*/false,
        /*noWait=*/true
      )
    }
}
github shapeshift / hdwallet / packages / hdwallet-keepkey / src / keepkey.ts View on Github external
public async press (isYes: boolean): Promise {
    let decision = new Messages.DebugLinkDecision()
    decision.setYesNo(isYes)

    await this.transport.callDebugLink(
      Messages.MessageType.MESSAGETYPE_DEBUGLINKDECISION,
      decision,
      DEFAULT_TIMEOUT,
      /*omitLock=*/false,
      /*noWait=*/true
    )
  }