Skip to main content

Types

A glossary of types.

Account

NameTypeRequiredDefaultDescription
addressstringyes-A base32 encoded public key with a 4-byte checksum appended as defined in keys and addresses.
namestringnoundefinedA human-readable name for this account.

AuthenticateWithPasskeyParameters

NameTypeRequiredDefaultDescription
userUserInformationyes-User details.

AuthenticateWithPasswordParameters

NameTypeRequiredDefaultDescription
passwordstringyes-The password used to encrypt the account private keys.
userUserInformationyes-User details.

BaseError

NameTypeRequiredDefaultDescription
messagestringyes-A message associated with the error.
isKatavaultErrortrueyes-Used to determine if this a Katavault error.
typestringyes-A reference for this error.

CreateKatavaultParameters

NameTypeRequiredDefaultDescription
debugbooleannofalseWhether to log debug messages.
client{ icon?: string; name: string; }no-The client's name and icon URL.

ImportAccountWithMnemonicParameters

NameTypeRequiredDefaultDescription
mnemonicstringyes-A whitespace or comma separated 25-word mnemonic seed phrase containing BIP-039 words.
namestringno-The name of the account.

ImportAccountWithPrivateKeyParameters

NameTypeRequiredDefaultDescription
namestringno-The name of the account.
privateKeyUint8Arrayyes-The raw private key used to derive the Ed25519 key pair.

SetAccountNameByAddressParameters

NameTypeRequiredDefaultDescription
addressstringyes-The address of the account to update.
namestringyes-The name of the account.

SignParameters

NameTypeRequiredDefaultDescription
addressstringyes-The address of the account to be used to sign the message.
encodingbase64 | hexnoundefinedThe output encoding of the signature. If no encoding is specified, the signature will be in raw bytes (Uint8Array).
messagestring | Uint8Arrayyes-A UTF-8 encoded message or raw bytes to sign.

UserInformation

NameTypeRequiredDefaultDescription
displayNamestringno-A human-readable display name for the user. This does not have to be unique and is used to display in the UI.
usernamestringyes-A globally unique identifier for the user. This could be, for example, an email address.