Skip to content
Adam Brady edited this page Oct 4, 2015 · 1 revision

The namespace for init related things is vaultex.init.

initialized(callback)

Returns the status of the connected node

initialize(options, callback)

Initializes the vault.

options:

Name Default Required Description
secret_shares n/a Number of shares you wish to generate
secret_threshold n/a Number of shares you wish to require to unseal the vault
pgp_keys n/a Array of PGP keys used to encrypt shares on response

getGenerateRootAttempt(callback)

Returns current root generation attempt.

startGenerateRootAttempt(options, callback)

Starts a new root generation attempt.

Name Default Required Description
otp n/a See Vault Documentation
pgp_key n/a See Vault Documentation

cancelGenerateRootAttempt(callback)

Cancels the current in-progress root generation attempt.

updateGenerateRootAttempt(options, callback)

Name Default Required Description
key n/a See Vault Documentation
nonce n/a See Vault Documentation