Skip to main content

Class: DirectEd25519Signer

Defined in: packages/overcast-core/src/protocol-signer.ts:104

The default RawSigner: an in-process key over @noble/ed25519, a pure-JS implementation that runs identically in Node, browsers and other runtimes (no dependency on Node's built-in crypto). Built from a 32-byte seed (the leading half of an ed25519 secret key); createProtocolSigner derives that seed from the config's privateKey.

Use DirectEd25519Signer.create rather than new — deriving the public key from the seed is async.

Implements​

Properties​

curve​

readonly curve: Ed25519 = SignatureCurve.Ed25519;

Defined in: packages/overcast-core/src/protocol-signer.ts:105

The curve that his signer is using

Implementation of​

RawSigner.curve


publicKey​

readonly publicKey: Bytes32;

Defined in: packages/overcast-core/src/protocol-signer.ts:108

The signing key itself, as the canonical 32-byte slot; becomes SignedOperation.signingKey.

Implementation of​

RawSigner.publicKey

Methods​

sign()​

sign(payload): Promise<Hex>;

Defined in: packages/overcast-core/src/protocol-signer.ts:118

Signs an arbitrary input and returns an arbitrary long signature

Parameters​

ParameterType
payloadUint8Array

Returns​

Promise<Hex>

Implementation of​

RawSigner.sign


create()​

static create(seed): Promise<DirectEd25519Signer>;

Defined in: packages/overcast-core/src/protocol-signer.ts:113

Derive the public key from the seed and build the signer.

Parameters​

ParameterType
seedUint8Array

Returns​

Promise<DirectEd25519Signer>