HSM

Hardware Security Module — Thales Luna Cloud (DPoD)

Create HSM key pair

post

Generates an Ed25519 key pair on the HSM partition. Returns the Zetrix address and raw public key hex. The returned address is used as the identifier for subsequent sign requests.

Authorizations
AuthorizationstringRequired

Bearer access token. Include in all requests as: Authorization: Bearer <your_access_token>

Body

Request to create an HSM-backed Ed25519 key pair

labelstringOptional

Optional caller-supplied label suffix. Final key label = ZETRIX_ if provided, else ZETRIX_.

Example: my-wallet-key
purposestringOptional

Optional purpose description for this key

Example: payment-signing
passwordstring · min: 8 · max: 128Required

User password used to encrypt the HSM key label in DB storage

Example: s3cur3P@ssw0rd
Responses
chevron-right
200

OK

*/*
successbooleanOptional
timestampstring · date-timeOptional
traceIdstringOptional
post
/ztx/hsm/create-account
200

OK

Sign blob with HSM

post

Signs a hex-encoded transaction blob using the HSM-stored Ed25519 private key identified by the Zetrix address. The returned SignerEntity can be used directly in /tx/submit or /contract/submit.

Authorizations
AuthorizationstringRequired

Bearer access token. Include in all requests as: Authorization: Bearer <your_access_token>

Body

Request to sign a transaction blob using the HSM

blobstringRequired

Hex-encoded transaction blob to sign (obtained from /tx/generate-blob or /contract/generate-blob)

Example: 0A255A5458334A64656A33434B7443724253547851747456666E6456484C4C455A72765832754410...
passwordstring · min: 8 · max: 128Required

User password used to decrypt the stored HSM key label

Example: s3cur3P@ssw0rd
addressstringRequired

Zetrix address returned by /hsm/create-account

Example: ZTX3Jdej3CKtCrBSTxQttVfndVHLLEZrvX2uD
Responses
chevron-right
200

OK

*/*
successbooleanOptional
timestampstring · date-timeOptional
traceIdstringOptional
post
/ztx/hsm/sign-blob
200

OK

Sign message with HSM

post

Signs a UTF-8 message using the HSM-stored Ed25519 private key identified by the Zetrix address.

Authorizations
AuthorizationstringRequired

Bearer access token. Include in all requests as: Authorization: Bearer <your_access_token>

Body

Request to sign a UTF-8 message using the HSM

messagestringRequired

UTF-8 message to sign

Example: Hello, Zetrix!
passwordstring · min: 8 · max: 128Required

User password used to decrypt the stored HSM key label

Example: s3cur3P@ssw0rd
addressstringRequired

Zetrix address returned by /hsm/create-account

Example: ZTX3Jdej3CKtCrBSTxQttVfndVHLLEZrvX2uD
Responses
chevron-right
200

OK

*/*
successbooleanOptional
timestampstring · date-timeOptional
traceIdstringOptional
post
/ztx/hsm/sign-message
200

OK

Last updated