mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 13:38:12 +00:00
fixup! feat(core): add basic Solana sign_tx call
This commit is contained in:
parent
9cfe8ab7dd
commit
40834eb108
@ -1,13 +1,15 @@
|
|||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
from apps.common.keychain import auto_keychain
|
from apps.common.keychain import with_slip44_keychain
|
||||||
|
|
||||||
|
from . import CURVE, PATTERNS, SLIP44_ID
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from trezor.messages import SolanaSignTx, SolanaSignedTx
|
from trezor.messages import SolanaSignTx, SolanaSignedTx
|
||||||
from apps.common.keychain import Keychain
|
from apps.common.keychain import Keychain
|
||||||
|
|
||||||
|
|
||||||
@auto_keychain(__name__)
|
@with_slip44_keychain(*PATTERNS, slip44_id=SLIP44_ID, curve=CURVE)
|
||||||
async def sign_tx(
|
async def sign_tx(
|
||||||
msg: SolanaSignTx,
|
msg: SolanaSignTx,
|
||||||
keychain: Keychain,
|
keychain: Keychain,
|
||||||
|
Loading…
Reference in New Issue
Block a user