Skip to main content

Import from a SLIP-10/BIP-32 Seed

The example below shows how to use the REST API to import a key from a SLIP-10/BIP-32 seed.

POST: /v1/importedKey

Replace <keyname> and seed with your own values. Note, the seed chosen here is an example 32 byte array. For the available curve OIDs, see this list.

{
"label": "<keyname>",
"addressFormat": {
"format": "BTC"
},
"curveOid": "1.3.132.0.10",
"seed": "AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8=",
"attributes": {
"encrypt": false,
"decrypt": false,
"verify": true,
"sign": true,
"wrap": false,
"unwrap": false,
"derive": true,
"bip32": true,
"extractable": false,
"modifiable": true,
"destroyable": true,
"sensitive": true,
"copyable": false
},
"policy": {
"ruleUse": null,
"ruleBlock": null,
"ruleUnblock": null,
"ruleModify": null,
"keyStatus": {
"blocked": false
}
}
}

Considerations

Please note:

  • You must set the derive=true and slip10=true attributes to be able to use the imported key with SLIP-10.
  • The TSB_ENGINE and KEY_AUTH license are required to use SKA keys and generate wallet addresses. Without these licenses, you must remove the policy and the addressFormat from the request below. This entails that you will need to generate the wallet addresses yourself!
  • Address generation is only supported for SKA keys. See this tutorial for how to fetch the address of a key.
Get started withCloudHSM for free.
Other questions?Ask Sales.
Feedback
Need help?