<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0" />

Org.BouncyCastle.Crypto.Signers.Ed25519ctxSigner

public class Ed25519ctxSigner : ISigner
Ed25519ctx (RFC 8032 ยง5.1) signature primitive: pure Ed25519 with a domain-separation context of up to 255 bytes captured at construction.
public virtual string AlgorithmName { get; }

public Ed25519ctxSigner(byte[] context)

Construct an Ed25519ctx signer bound to the supplied context. The context bytes are cloned so the caller may mutate the array afterwards.

public virtual void BlockUpdate(byte[] buf, int off, int len)

public virtual byte[] GenerateSignature()

Finalise the buffered message and produce the signature. Buffer is reset on return.

public virtual int GetMaxSignatureSize()

Length in bytes of an Ed25519ctx signature (64).

public virtual void Init(bool forSigning, ICipherParameters parameters)

Initialise for signing (private key) or verification (public key).

public virtual void Reset()

Clear and rewind the buffered message; the captured context survives.

public virtual void Update(byte b)

public virtual bool VerifySignature(byte[] signature)

Finalise the buffered message and verify signature. Buffer is reset on return.