WALLET: Set Master Password

The Master Password acts as a recovery key in the event where the 2-FA Device or Biometrics are lost or inaccessible. The Master Password has the ability to cryptographically reset these Multi-Factor Authentication measures, so they can be re-instated.

Submitting the Master Password requires a Master Seed to be generated. Please use the "Get Master Seed" Endpoint to receive the Master Seed.

var hashed_mp = SHA256(master_password+master_seed)

or

var hashed_mp = SHA256('starwars'+'VzBlc2ZhaDZ6a201N2JjTXE3Qkd6SFBT')

A Linux Console example would be this:

$ echo -n starwarsVzBlc2ZhaDZ6a201N2JjTXE3Qkd6SFBT | openssl dgst -sha256
result = 870f4fd3c6063f2ab058b93bc538693ed0eb867fd029acd91553f4ac0ab72e84

WALLET: Set Master Password

post

The Master Password acts as a recovery key in the event where the 2-FA Device or Biometrics are lost or inaccessible. The Master Password has the ability to cryptographically reset these Multi-Factor Authentication measures, so they can be re-instated.

The Master Password cannot be changed once set and must be stored in a secure location to avoid any unauthorized third-parties from accessing the wallet and corresponding funds.

Submitting the Master Password requires a Master Seed to be generated. Please use the "Get Master Seed" Endpoint to receive the Master Seed.

The Master Password must be SHA256 hashed before submission in the following way:

  • var hashed_mp = SHA256(master_password+master_seed)

or

  • var hashed_mp = SHA256('starwars'+'VzBlc2ZhaDZ6a201N2JjTXE3Qkd6SFBT')

A Linux Console example would be this:

$ echo -n starwarsVzBlc2ZhaDZ6a201N2JjTXE3Qkd6SFBT | openssl dgst -sha256

result = 870f4fd3c6063f2ab058b93bc538693ed0eb867fd029acd91553f4ac0ab72e84

Authorizations
Body
objectOptionalExample: {"master_password":"870f4fd3c6063f2ab058b93bc538693ed0eb867fd029acd91553f4ac0ab72e84","master_seed":"VzBlc2ZhaDZ6a201N2JjTXE3Qkd6SFBT"}
Responses
200

OK

application/json
Responseobject
post
/wallet/setmasterpassword
POST /api/v1/wallet/setmasterpassword HTTP/1.1
Host: api.hybrid-chain.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 135

{
  "master_password": "870f4fd3c6063f2ab058b93bc538693ed0eb867fd029acd91553f4ac0ab72e84",
  "master_seed": "VzBlc2ZhaDZ6a201N2JjTXE3Qkd6SFBT"
}
200

OK

{
  "message": "Master Password was set successfully.",
  "success": true
}

Last updated

Was this helpful?