Class ArdorAppBridge
java.lang.Object
com.jelurida.ardor.integration.wallet.ledger.application.ArdorAppBridge
- All Implemented Interfaces:
ArdorAppInterface
-
Method Summary
Modifier and TypeMethodDescriptiondecryptBuffer(String pathStr, String publicKeyHex, String nonceHex, String dataHex) encryptBuffer(String pathStr, String publicKeyHex, String messageBytesHex) static ArdorAppInterfacegetApp()getPublicKeyData(int[] bip32Path, boolean isGetPublicKeyAndChainCode) getPublicKeyData(String pathStr) Given a parent bip32 path - return the master public key for this path.byte[]getWalletPublicKeys(String pathStr, boolean isGetMasterKey) Retrieves the public key given the offset from the HD pathbooleanloadWalletTransaction(String buffer) voidshowAddress(String pathStr) byte[]signWalletTransaction(String pathStr)
-
Method Details
-
getApp
-
getWalletPublicKeys
Retrieves the public key given the offset from the HD path- Specified by:
getWalletPublicKeysin interfaceArdorAppInterface- Parameters:
pathStr- of the given addressisGetMasterKey- also get the master public key and chain code- Returns:
- the public key
-
getPublicKeyData
Given a parent bip32 path - return the master public key for this path. We can use this master public key to generate any number of child public keys without a connected ledger device. This public key is an ed25519 key so cannot be used as a normal public key.- Specified by:
getPublicKeyDatain interfaceArdorAppInterface- Parameters:
pathStr- of the given address- Returns:
- the public key and chain code
-
getPublicKeyData
- Specified by:
getPublicKeyDatain interfaceArdorAppInterface
-
loadWalletTransaction
- Specified by:
loadWalletTransactionin interfaceArdorAppInterface
-
signWalletTransaction
- Specified by:
signWalletTransactionin interfaceArdorAppInterface
-
signToken
- Specified by:
signTokenin interfaceArdorAppInterface
-
encryptBuffer
- Specified by:
encryptBufferin interfaceArdorAppInterface
-
decryptBuffer
- Specified by:
decryptBufferin interfaceArdorAppInterface
-
showAddress
- Specified by:
showAddressin interfaceArdorAppInterface
-
getLastError
- Specified by:
getLastErrorin interfaceArdorAppInterface
-