Members on this page
Meshline.Sdk
Meshline.Interactions
IAccountSigner Interface
Supplies an account identity and signs protocol input using its account key.
public interface IAccountSigner
Derived
↳ Nep6AccountSigner
Remarks
The implementation retains ownership of private key material. Sign the supplied protocol input using the account namespace's signing rules; the SDK verifies the resulting signature against the advertised identity.
Properties
IAccountSigner.AccountId Property
The account's CAIP-10 identifier.
string AccountId { get; }
Property Value
IAccountSigner.PublicKey Property
The account public key corresponding to AccountId.
System.Collections.Immutable.ImmutableArray<byte> PublicKey { get; }
Property Value
System.Collections.Immutable.ImmutableArray<System.Byte>
Methods
IAccountSigner.SignAsync(ReadOnlyMemory<byte>, CancellationToken) Method
Signs the supplied bytes using the account 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.