Skip to content

Commit

Permalink
Merge pull request #227 from tkhq/olivia/rm-pub-key
Browse files Browse the repository at this point in the history
Remove public key param for key export
  • Loading branch information
Olivia Thet authored Mar 15, 2024
2 parents 7018e91 + 48e2e5b commit bad32ca
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .changeset/polite-eagles-press.md

This file was deleted.

7 changes: 7 additions & 0 deletions packages/iframe-stamper/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @turnkey/iframe-stamper

## 1.2.0

### Minor Changes

- 0281b88: Remove optional publicKey parameter from injectKeyExportBundle.
- 0e3584a: Add optional keyFormat and publicKey parameters to injectKeyExportBundle. Add extractKeyEncryptedBundle.

## 1.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/iframe-stamper/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@turnkey/iframe-stamper",
"version": "1.1.0",
"version": "1.2.0",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"exports": {
Expand Down
5 changes: 1 addition & 4 deletions packages/iframe-stamper/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,20 +187,17 @@ export class IframeStamper {
* 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.
* The public key of the exported private key. Required when the key format is SOLANA.
* This is used during the private key export flow.
*/
async injectKeyExportBundle(
bundle: string,
keyFormat?: KeyFormat,
publicKey?: string
keyFormat?: KeyFormat
): Promise<boolean> {
this.iframe.contentWindow?.postMessage(
{
type: IframeEventType.InjectKeyExportBundle,
value: bundle,
keyFormat: keyFormat,
publicKey: publicKey,
},
"*"
);
Expand Down

0 comments on commit bad32ca

Please sign in to comment.