Preparing search index...
The search index is not available
cardano-sdk
cardano-sdk
@cardano-sdk/web-extension
<internal>
TrezorKeyAgent
Class TrezorKeyAgent
Hierarchy
KeyAgentBase
TrezorKeyAgent
Index
Constructors
constructor
Properties
#private
#private
is
Trezor
Initialized
Accessors
account
Index
bip32
Ed25519
chain
Id
extended
Account
Public
Key
purpose
serializable
Data
Methods
derive
Address
derive
Public
Key
export
Root
Private
Key
sign
Blob
sign
Cip8
Data
sign
Transaction
check
Device
Connection
create
With
Device
get
Xpub
initialize
Trezor
Transport
match
Signing
Mode
Constructors
constructor
new
Trezor
Key
Agent
(
__namedParameters
:
TrezorKeyAgentProps
, dependencies
:
KeyAgentDependencies
)
:
TrezorKeyAgent
Parameters
__namedParameters:
TrezorKeyAgentProps
dependencies:
KeyAgentDependencies
Returns
TrezorKeyAgent
Properties
Private
#private
#private
:
any
Private
#private
#private
:
any
Readonly
is
Trezor
Initialized
is
Trezor
Initialized
:
Promise
<
boolean
>
Accessors
account
Index
get
accountIndex
(
)
:
number
Returns
number
bip32
Ed25519
get
bip32Ed25519
(
)
:
Bip32Ed25519
Returns
Bip32Ed25519
chain
Id
get
chainId
(
)
:
ChainId
Returns
ChainId
extended
Account
Public
Key
get
extendedAccountPublicKey
(
)
:
Bip32PublicKeyHex
Returns
Bip32PublicKeyHex
purpose
get
purpose
(
)
:
KeyPurpose
Returns
KeyPurpose
serializable
Data
get
serializableData
(
)
:
SerializableKeyAgentData
Returns
SerializableKeyAgentData
Methods
derive
Address
derive
Address
(
paymentKeyDerivationPath
:
AccountAddressDerivationPath
, stakeKeyDerivationIndex
:
number
)
:
Promise
<
GroupedAddress
>
Parameters
paymentKeyDerivationPath:
AccountAddressDerivationPath
stakeKeyDerivationIndex:
number
Returns
Promise
<
GroupedAddress
>
derive
Public
Key
derive
Public
Key
(
derivationPath
:
AccountKeyDerivationPath
)
:
Promise
<
Ed25519PublicKeyHex
>
Parameters
derivationPath:
AccountKeyDerivationPath
Returns
Promise
<
Ed25519PublicKeyHex
>
export
Root
Private
Key
export
Root
Private
Key
(
)
:
Promise
<
Bip32PrivateKeyHex
>
Returns
Promise
<
Bip32PrivateKeyHex
>
sign
Blob
sign
Blob
(
)
:
Promise
<
SignBlobResult
>
Returns
Promise
<
SignBlobResult
>
sign
Cip8
Data
sign
Cip8
Data
(
)
:
Promise
<
Cip30DataSignature
>
Returns
Promise
<
Cip30DataSignature
>
sign
Transaction
sign
Transaction
(
txBody
:
TransactionBody
, __namedParameters
:
SignTransactionContext
)
:
Promise
<
Signatures
>
Parameters
txBody:
TransactionBody
__namedParameters:
SignTransactionContext
Returns
Promise
<
Signatures
>
Static
check
Device
Connection
check
Device
Connection
(
communicationType
:
CommunicationType
)
:
Promise
<
{
_passphrase_cached
:
undefined
|
boolean
;
auto_lock_delay_ms
:
null
|
number
;
backup_availability
:
null
;
backup_type
:
null
;
bootloader_hash
:
null
|
string
;
bootloader_locked
:
undefined
|
boolean
;
bootloader_mode
:
null
|
boolean
;
busy
:
undefined
|
boolean
;
capabilities
:
(
"Capability_Bitcoin"
|
"Capability_Bitcoin_like"
|
"Capability_Binance"
|
"Capability_Cardano"
|
"Capability_Crypto"
|
"Capability_EOS"
|
"Capability_Ethereum"
|
"Capability_Lisk"
|
"Capability_Monero"
|
"Capability_NEM"
|
"Capability_Ripple"
|
"Capability_Stellar"
|
"Capability_Tezos"
|
"Capability_U2F"
|
"Capability_Shamir"
|
"Capability_ShamirGroups"
|
"Capability_PassphraseEntry"
|
"Capability_Solana"
|
"Capability_Translations"
|
"Capability_Brightness"
|
"Capability_Haptic"
)
[]
;
device_id
:
null
|
string
;
display_rotation
:
null
|
number
;
experimental_features
:
null
|
boolean
;
firmware_present
:
null
|
boolean
;
flags
:
null
|
number
;
fw_major
:
null
|
number
;
fw_minor
:
null
|
number
;
fw_patch
:
null
|
number
;
fw_vendor
:
null
|
string
;
haptic_feedback
:
undefined
|
boolean
;
hide_passphrase_from_host
:
undefined
|
boolean
;
homescreen_format
:
"Toif"
|
"Jpeg"
|
"ToiG"
;
homescreen_height
:
undefined
|
number
;
homescreen_width
:
undefined
|
number
;
imported
:
null
|
boolean
;
initialized
:
null
|
boolean
;
internal_model
:
DeviceModelInternal
;
label
:
null
|
string
;
language
:
null
|
string
;
language_version_matches
:
undefined
|
boolean
;
major_version
:
number
;
minor_version
:
number
;
model
:
string
;
no_backup
:
null
|
boolean
;
optiga_sec
:
undefined
|
number
;
passphrase_always_on_device
:
null
|
boolean
;
passphrase_protection
:
null
|
boolean
;
patch_version
:
number
;
pin_protection
:
null
|
boolean
;
recovery_status
:
null
;
recovery_type
:
"NormalRecovery"
|
"DryRun"
|
"UnlockRepeatedBackup"
;
revision
:
null
|
string
;
safety_checks
:
null
;
sd_card_present
:
null
|
boolean
;
sd_protection
:
null
|
boolean
;
session_id
:
null
|
string
;
unfinished_backup
:
null
|
boolean
;
unit_btconly
:
undefined
|
boolean
;
unit_color
:
undefined
|
number
;
unit_packaging
:
undefined
|
number
;
unlocked
:
null
|
boolean
;
vendor
:
string
;
wipe_code_protection
:
null
|
boolean
;
}
>
Parameters
communicationType:
CommunicationType
Returns
Promise
<
{
_passphrase_cached
:
undefined
|
boolean
;
auto_lock_delay_ms
:
null
|
number
;
backup_availability
:
null
;
backup_type
:
null
;
bootloader_hash
:
null
|
string
;
bootloader_locked
:
undefined
|
boolean
;
bootloader_mode
:
null
|
boolean
;
busy
:
undefined
|
boolean
;
capabilities
:
(
"Capability_Bitcoin"
|
"Capability_Bitcoin_like"
|
"Capability_Binance"
|
"Capability_Cardano"
|
"Capability_Crypto"
|
"Capability_EOS"
|
"Capability_Ethereum"
|
"Capability_Lisk"
|
"Capability_Monero"
|
"Capability_NEM"
|
"Capability_Ripple"
|
"Capability_Stellar"
|
"Capability_Tezos"
|
"Capability_U2F"
|
"Capability_Shamir"
|
"Capability_ShamirGroups"
|
"Capability_PassphraseEntry"
|
"Capability_Solana"
|
"Capability_Translations"
|
"Capability_Brightness"
|
"Capability_Haptic"
)
[]
;
device_id
:
null
|
string
;
display_rotation
:
null
|
number
;
experimental_features
:
null
|
boolean
;
firmware_present
:
null
|
boolean
;
flags
:
null
|
number
;
fw_major
:
null
|
number
;
fw_minor
:
null
|
number
;
fw_patch
:
null
|
number
;
fw_vendor
:
null
|
string
;
haptic_feedback
:
undefined
|
boolean
;
hide_passphrase_from_host
:
undefined
|
boolean
;
homescreen_format
:
"Toif"
|
"Jpeg"
|
"ToiG"
;
homescreen_height
:
undefined
|
number
;
homescreen_width
:
undefined
|
number
;
imported
:
null
|
boolean
;
initialized
:
null
|
boolean
;
internal_model
:
DeviceModelInternal
;
label
:
null
|
string
;
language
:
null
|
string
;
language_version_matches
:
undefined
|
boolean
;
major_version
:
number
;
minor_version
:
number
;
model
:
string
;
no_backup
:
null
|
boolean
;
optiga_sec
:
undefined
|
number
;
passphrase_always_on_device
:
null
|
boolean
;
passphrase_protection
:
null
|
boolean
;
patch_version
:
number
;
pin_protection
:
null
|
boolean
;
recovery_status
:
null
;
recovery_type
:
"NormalRecovery"
|
"DryRun"
|
"UnlockRepeatedBackup"
;
revision
:
null
|
string
;
safety_checks
:
null
;
sd_card_present
:
null
|
boolean
;
sd_protection
:
null
|
boolean
;
session_id
:
null
|
string
;
unfinished_backup
:
null
|
boolean
;
unit_btconly
:
undefined
|
boolean
;
unit_color
:
undefined
|
number
;
unit_packaging
:
undefined
|
number
;
unlocked
:
null
|
boolean
;
vendor
:
string
;
wipe_code_protection
:
null
|
boolean
;
}
>
Static
create
With
Device
create
With
Device
(
__namedParameters
:
CreateTrezorKeyAgentProps
, dependencies
:
KeyAgentDependencies
)
:
Promise
<
TrezorKeyAgent
>
Parameters
__namedParameters:
CreateTrezorKeyAgentProps
dependencies:
KeyAgentDependencies
Returns
Promise
<
TrezorKeyAgent
>
Static
get
Xpub
get
Xpub
(
__namedParameters
:
GetTrezorXpubProps
)
:
Promise
<
Bip32PublicKeyHex
>
Parameters
__namedParameters:
GetTrezorXpubProps
Returns
Promise
<
Bip32PublicKeyHex
>
Static
initialize
Trezor
Transport
initialize
Trezor
Transport
(
__namedParameters
:
TrezorConfig
)
:
Promise
<
boolean
>
Parameters
__namedParameters:
TrezorConfig
Returns
Promise
<
boolean
>
Static
match
Signing
Mode
match
Signing
Mode
(
tx
:
Omit
<
{
additionalWitnessRequests
:
undefined
|
(
string
|
number
[]
)
[]
;
auxiliaryData
:
undefined
|
(
{ hash?: string | undefined; cVoteRegistrationParameters?: { format?: CardanoCVoteRegistrationFormat | undefined; votePublicKey?: string | undefined; ... 5 more ...; nonce: string; } | undefined; }
)
;
certificates
:
undefined
|
(
{ path?: string | number[] | undefined; pool?: string | undefined; poolParameters?: { metadata?: { url: string; hash: string; } | undefined; poolId: string; vrfKeyHash: string; pledge: string; ... 4 more ...; relays: { ...; }[]; } | undefined; ... 4 more ...; type: CardanoCertificateType; }
)
[]
;
chunkify
:
undefined
|
boolean
;
collateralInputs
:
undefined
|
(
{ path?: string | number[] | undefined; prev_hash: string; prev_index: number; }
)
[]
;
collateralReturn
:
undefined
|
Object
;
derivationType
:
undefined
|
LEDGER
|
ICARUS
|
ICARUS_TREZOR
;
fee
:
string
|
number
;
includeNetworkId
:
undefined
|
boolean
;
inputs
:
(
{ path?: string | number[] | undefined; prev_hash: string; prev_index: number; }
)
[]
;
mint
:
undefined
|
(
{ policyId: string; tokenAmounts: { amount?: string | undefined; mintAmount?: string | undefined; assetNameBytes: string; }[]; }
)
[]
;
networkId
:
number
;
outputs
:
Object
[]
;
protocolMagic
:
number
;
referenceInputs
:
undefined
|
(
{ prev_hash: string; prev_index: number; }
)
[]
;
requiredSigners
:
undefined
|
(
{ keyHash?: string | undefined; keyPath?: string | number[] | undefined; }
)
[]
;
scriptDataHash
:
undefined
|
string
;
signingMode
:
CardanoTxSigningMode
;
tagCborSets
:
undefined
|
boolean
;
totalCollateral
:
undefined
|
string
;
ttl
:
string
|
number
;
validityIntervalStart
:
undefined
|
string
;
withdrawals
:
undefined
|
(
{ path?: string | number[] | undefined; scriptHash?: string | undefined; keyHash?: string | undefined; amount: string; }
)
[]
;
}
,
"signingMode"
>
)
:
CardanoTxSigningMode
Parameters
tx:
Omit
<
{
additionalWitnessRequests
:
undefined
|
(
string
|
number
[]
)
[]
;
auxiliaryData
:
undefined
|
(
{ hash?: string | undefined; cVoteRegistrationParameters?: { format?: CardanoCVoteRegistrationFormat | undefined; votePublicKey?: string | undefined; ... 5 more ...; nonce: string; } | undefined; }
)
;
certificates
:
undefined
|
(
{ path?: string | number[] | undefined; pool?: string | undefined; poolParameters?: { metadata?: { url: string; hash: string; } | undefined; poolId: string; vrfKeyHash: string; pledge: string; ... 4 more ...; relays: { ...; }[]; } | undefined; ... 4 more ...; type: CardanoCertificateType; }
)
[]
;
chunkify
:
undefined
|
boolean
;
collateralInputs
:
undefined
|
(
{ path?: string | number[] | undefined; prev_hash: string; prev_index: number; }
)
[]
;
collateralReturn
:
undefined
|
Object
;
derivationType
:
undefined
|
LEDGER
|
ICARUS
|
ICARUS_TREZOR
;
fee
:
string
|
number
;
includeNetworkId
:
undefined
|
boolean
;
inputs
:
(
{ path?: string | number[] | undefined; prev_hash: string; prev_index: number; }
)
[]
;
mint
:
undefined
|
(
{ policyId: string; tokenAmounts: { amount?: string | undefined; mintAmount?: string | undefined; assetNameBytes: string; }[]; }
)
[]
;
networkId
:
number
;
outputs
:
Object
[]
;
protocolMagic
:
number
;
referenceInputs
:
undefined
|
(
{ prev_hash: string; prev_index: number; }
)
[]
;
requiredSigners
:
undefined
|
(
{ keyHash?: string | undefined; keyPath?: string | number[] | undefined; }
)
[]
;
scriptDataHash
:
undefined
|
string
;
signingMode
:
CardanoTxSigningMode
;
tagCborSets
:
undefined
|
boolean
;
totalCollateral
:
undefined
|
string
;
ttl
:
string
|
number
;
validityIntervalStart
:
undefined
|
string
;
withdrawals
:
undefined
|
(
{ path?: string | number[] | undefined; scriptHash?: string | undefined; keyHash?: string | undefined; amount: string; }
)
[]
;
}
,
"signingMode"
>
Returns
CardanoTxSigningMode
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
cardano-
sdk
@cardano-
sdk/cardano-
services
<internal>
errors
util
@cardano-
sdk/cardano-
services-
client
<internal>
@cardano-
sdk/core
<internal>
Asset
Asset
Name
Label
util
Cardano
Asset
Fingerprint
Asset
Id
Asset
Name
Cip1854
Extended
Account
Public
Key
DRepID
Pool
Id
Reward
Account
Transaction
Id
Vrf
Vk
Bech32
util
Cardano
Node
Util
Days
Hours
Milliseconds
Minutes
Provider
Util
Seconds
Serialization
Tx
BodyCBOR
TxCBOR
metadatum
util
@cardano-
sdk/e2e
<internal>
@cardano-
sdk/golden-
test-
generator
<internal>
@cardano-
sdk/governance
<internal>
cip36
@cardano-
sdk/input-
selection
<internal>
@cardano-
sdk/key-
management
<internal>
cip8
errors
util
@cardano-
sdk/ogmios
<internal>
ogmios
To
Core
@cardano-
sdk/projection
<internal>
Bootstrap
In
Memory
Mappers
@cardano-
sdk/util
<internal>
Base64
Blob
Hex
Blob
@cardano-
sdk/util-
dev
<internal>
Asset
Id
Docker
Util
Tx
Test
Util
cip19
Test
Vectors
handle
Provider
Mocks
mock
Providers
@cardano-
sdk/util-
rxjs
@cardano-
sdk/wallet
<internal>
cip30
storage
@cardano-
sdk/web-
extension
<internal>
cip30
Trezor
Key
Agent
constructor
#private
#private
is
Trezor
Initialized
account
Index
bip32
Ed25519
chain
Id
extended
Account
Public
Key
purpose
serializable
Data
derive
Address
derive
Public
Key
export
Root
Private
Key
sign
Blob
sign
Cip8
Data
sign
Transaction
check
Device
Connection
create
With
Device
get
Xpub
initialize
Trezor
Transport
match
Signing
Mode
Generated using
TypeDoc