Defined in: iframe-stamper/dist/index.d.ts:65Stamper to use with @turnkey/http’s TurnkeyClient
Creating a stamper inserts an iframe in the current page.
Defined in: iframe-stamper/dist/index.d.ts:76Creates a new iframe stamper. This function does not insert the iframe in the DOM.
Call .init() to insert the iframe element in the DOM.
Defined in: iframe-stamper/dist/index.d.ts:160Function to apply settings on allowed parameters in the iframe
This is used to style the HTML element used for plaintext in wallet and private key import.
Defined in: iframe-stamper/dist/index.d.ts:155Function to extract an encrypted bundle from the iframe
The bundle should be encrypted to Turnkey’s Signer enclave’s initial public key
Encryption should be performed with HPKE (RFC 9180).
The key format to encode the private key in before it’s encrypted and imported: HEXADECIMAL or SOLANA. Defaults to HEXADECIMAL.
This is used during the private key import flow.
Defined in: iframe-stamper/dist/index.d.ts:147Function to extract an encrypted bundle from the iframe
The bundle should be encrypted to Turnkey’s Signer enclave’s initial public key
Encryption should be performed with HPKE (RFC 9180).
This is used during the wallet import flow.
Defined in: iframe-stamper/dist/index.d.ts:95Returns the public key, or null if the underlying iframe isn’t properly initialized.
This differs from the above in that it reaches out to the live iframe to see if an embedded key exists.
Defined in: iframe-stamper/dist/index.d.ts:106Creates a new embedded key within an iframe. If an embedded key already exists, this will return it.
This is primarily to be used in conjunction with clearEmbeddedKey(): after an embedded key is cleared,
this can be used to create a new one.
Defined in: iframe-stamper/dist/index.d.ts:120Function to inject a new credential into the iframe
The bundle should be encrypted to the iframe’s initial public key
Encryption should be performed with HPKE (RFC 9180).
This is used during recovery and auth flows.
Defined in: iframe-stamper/dist/index.d.ts:140Function to inject an import bundle into the iframe
This is used to initiate either the wallet import flow or the private key import flow.
Defined in: iframe-stamper/dist/index.d.ts:128Function to inject an export bundle into the iframe
The bundle should be encrypted to the iframe’s initial public key
Encryption should be performed with HPKE (RFC 9180).
The key format to encode the private key in after it’s exported and decrypted: HEXADECIMAL or SOLANA. Defaults to HEXADECIMAL.
This is used during the private key export flow.
Defined in: iframe-stamper/dist/index.d.ts:135Function to inject an export bundle into the iframe
The bundle should be encrypted to the iframe’s initial public key
Encryption should be performed with HPKE (RFC 9180).
This is used during the wallet export flow.