Skip to main content

Import from Bip32 Seed

The example below shows how to use the Rest-API endpoint to import a key from a BIP32 seed, with BTC address generation and signing capabilities.

The TSB_ENGINE and KEY_AUTH license is required to create SKA-Keys and generate BTC-Addresses.

note

If you do not have a SmartKeyAttributes subscription, you must remove the policy and the addressFormat from the request below. Be careful, you have to generate the Wallet-Address by yourself!

POST: /v1/importedKey

Description: Import key from a BIP32 seed.

Replace <keyname> and seed with your own values. Note, the seed choosen here is an example 32 byte array.

{
"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
}
}
}