Variable: INVALID\_PRIVATE\_KEY\_REASONS
GalaChain core SDK 1.0.0-rc.8 / index / INVALID_PRIVATE_KEY_REASONS
Variable: INVALID_PRIVATE_KEY_REASONS
constINVALID_PRIVATE_KEY_REASONS: readonly ["wrong_length","bad_encoding","not_on_curve","no_key_provided"]
Defined in: packages/gala-core-sdk/dist/index.d.ts:61
Why a private key was refused (INVALID_PRIVATE_KEY.params.reason). A token for the app to map
to its own text, never English and never any part of the key.
wrong_length: raw bytes that are not 32 bytes long (a./bridgeSolana secret key: not 64 bytes once decoded).bad_encoding: a string that is neither 64 hex characters (optionally0x-prefixed, 63 is left-padded) nor a 44-character base64 string (./bridge: an Ethereum key that is not0xand 64 hex characters; a Solana secret key that is not base58, or whose public half does not match its secret half).not_on_curve: 32 bytes that are not a valid secp256k1 secret scalar.no_key_provided: a lazy key provider returned something that is not a string.