Skip to main content

Class: DirectSecp256k1Signer

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

Implements​

Properties​

curve​

readonly curve: Secp256k1 = SignatureCurve.Secp256k1;

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

The curve that his signer is using

Implementation of​

RawSigner.curve


publicKey​

readonly publicKey: Bytes32;

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

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:150

Signs an arbitrary input and returns an arbitrary long signature

Parameters​

ParameterType
payloadUint8Array

Returns​

Promise<Hex>

Implementation of​

RawSigner.sign


create()​

static create(privateKey): DirectSecp256k1Signer;

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

Parameters​

ParameterType
privateKeystring | number[]

Returns​

DirectSecp256k1Signer