(privateKey: Buffer)
| 104 | } |
| 105 | |
| 106 | async setPrivateKey(privateKey: Buffer) { |
| 107 | deviceLogger.debug(`Setting private key for device ${this.id}`); |
| 108 | |
| 109 | const keyPair = await createKeyPair(privateKey); |
| 110 | |
| 111 | this.encryptionKeys.localKeys = keyPair; |
| 112 | } |
| 113 | |
| 114 | hasAbility(ability: Namespace) { |
| 115 | deviceLogger.debug(`Checking if device ${this.id} has ability ${ability}`, { |
no test coverage detected