Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: add external key config #129

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

sehyunc
Copy link
Contributor

@sehyunc sehyunc commented Dec 24, 2024

Purpose

This PR adds the external key config and standardizes config fields to export a getBaseUrl helper instead of a config-specific helper e.g. getRelayerBaseUrl or getAuthServerUrl. This exposes a more predictable interface for all configs. It also adds a renegadeKeyType field to configs to specify whether the key is an external managed key or an internally managed key.

Testing

  • Tested locally
  • Tested in testnet

@sehyunc sehyunc force-pushed the sehyun/add-external-config branch from 7b79d68 to 0d77cf5 Compare December 24, 2024 00:24
@sehyunc sehyunc requested a review from joeykraut December 24, 2024 00:37
@sehyunc sehyunc force-pushed the sehyun/add-external-config branch 3 times, most recently from 4eb14c4 to d9e55ae Compare December 24, 2024 00:48
Copy link
Member

@joeykraut joeykraut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean

import { type BaseConfig, keyTypes } from './createConfig.js'
import type * as rustUtils from './utils.d.ts'

export type CreateBYOKConfigParameters = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not: External rather than byok as discussed

Same below

@sehyunc sehyunc force-pushed the sehyun/add-external-config branch from d9e55ae to 8a9159f Compare December 24, 2024 00:50
@sehyunc sehyunc force-pushed the sehyun/add-external-config branch from 8a9159f to f21a89f Compare December 24, 2024 00:50
@sehyunc sehyunc changed the base branch from main to feat/external-key-impl December 24, 2024 00:52
@sehyunc sehyunc merged commit 914a193 into feat/external-key-impl Dec 24, 2024
1 check passed
@sehyunc sehyunc deleted the sehyun/add-external-config branch December 24, 2024 00:52
sehyunc added a commit that referenced this pull request Dec 27, 2024
* core: add external key config (#129)

core: add external config, modify BaseConfig

* core: add symmetric key getter to config (#130)

* core: add symmetric key getter to config

* core: ingest changes into websocket

* wasm, core: implement keychain rotation for external key (#131)

* wasm, core: implement keychain rotation for external key

* wasm, core: impl key rotation for withdraw;

* wasm, core: impl key rotation for create order

* wasm, core: impl key rotation for cancel order

* core: format

* wasm: cleaner rotation

* wasm: abstract key rotation logic into helper

* wasm, core: impl external key deposit action (#132)

* wasm: add sign callback invocation helper

* wasm, core: impl external key deposit action

* wasm, core: impl external key withdraw action (#133)

* wasm, core: impl external key withdraw action

* wasm: simplify signing fns

* wasm: organize signing fn

* wasm, core: impl external key create order action (#134)

* wasm, core: impl external key create order action

* wasm, core: impl external key cancel order action (#135)

* wasm, core: remove need for key_type in Rust context (#136)

* wasm, core: remove need for key_type in Rust context

* core: add safety checks to actions

* wasm, core: impl external key get pk scalars (#137)

* wasm: do not prehash message when using external signer (#138)

wasm: remove prehash assumption

* chore: lint

* core: impl await task completion for externally managed keys (#139)

* core: impl get order + pay fees for external keys (#140)

core: impl get order + pay fees for externally managed keys

* wasm, core, node: impl external wallet key generation script (#141)

* node: export GeneratedSecrets type

* wasm, core: impl external key create wallet (#142)

* wasm, core: impl external key create wallet

* wasm, core: impl external key lookup wallet (#144)

* wasm, core: impl external key refresh wallet (#143)

core: impl refresh wallet for externally managed keys

* core: add public key getter and setter fns to external config (#145)

core: add public key getter and setter in external config

* core: fix create order in matching pool args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants