Members on this page
Meshline.Sdk
Meshline.Interactions
IDeviceSigner Interface
Supplies a device certificate and signs protocol input using its device signing key.
public interface IDeviceSigner
Derived
↳ DeviceManager
Remarks
The certificate and signing key must describe the same device. Device signatures use Ed25519 over the supplied bytes. The implementation retains ownership of its private key.
Properties
IDeviceSigner.Certificate Property
The certificate corresponding to the device signing key used by this signer.
Meshline.Models.Protocol.DeviceCertificate Certificate { get; }
Property Value
Methods
IDeviceSigner.SignAsync(ReadOnlyMemory<byte>, CancellationToken) Method
Signs the supplied bytes using the device Ed25519 signing key.
System.Threading.Tasks.Task<byte[]> SignAsync(System.ReadOnlyMemory<byte> data, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
data System.ReadOnlyMemory<System.Byte>
The exact bytes to sign or verify.
cancellationToken System.Threading.CancellationToken
A token that can cancel the operation.
Returns
System.Threading.Tasks.Task<System.Byte[]>
The signature over the supplied input bytes.
Exceptions
System.OperationCanceledException
The operation observes cancellation of cancellationToken.