public TestConnectionContext(byte[] clientPublicKey, byte[] sharedKey, byte[] smartLockNonce, byte[] smartLockPublicKey, Func <byte[]> creatNonce) { ClientPublicKey = new ClientPublicKey(clientPublicKey); SharedKey = new SharedKey(sharedKey); SmartLockNonce = new SmartLockNonce(smartLockNonce); SmartLockPublicKey = new SmartLockPublicKey(smartLockPublicKey); m_delCreateNonce = creatNonce; }
/// <summary> /// Public Key (0x0003) /// </summary> /// <param name="byPublicKey">The public key of the sender. </param> public SendPublicKeyComand(ClientPublicKey byPublicKey) : base(NukiCommandType.PublicKey, 1) { AddField(nameof(PublicKey), byPublicKey); }