Skip to content

@armada/sdk / index / InvalidKeyMaterialError

Class: InvalidKeyMaterialError

Defined in: src/errors.ts:52

Imported or derived key material failed validation (SPEC §4.2): malformed hex, wrong length, a zero scalar, or a Baby Jubjub point that is off-curve / outside the prime-order subgroup / the identity. Rejected, never silently clamped — a clamped key yields a wrong wallet that scans nothing.

Extends

Constructors

Constructor

new InvalidKeyMaterialError(message, options?): InvalidKeyMaterialError

Defined in: src/errors.ts:6

Parameters

message

string

options?
cause?

unknown

Returns

InvalidKeyMaterialError

Inherited from

ArmadaError.constructor

Properties

code

readonly code: "INVALID_KEY_MATERIAL" = 'INVALID_KEY_MATERIAL'

Defined in: src/errors.ts:53

Overrides

ArmadaError.code