-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add bitcoin.getAddress and bitcoin.getPublicKey [LIVE-14300] (#393
- Loading branch information
Showing
24 changed files
with
7,097 additions
and
5,097 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"@ledgerhq/wallet-api-tools": minor | ||
"@ledgerhq/wallet-api-simulator": minor | ||
"@ledgerhq/wallet-api-client": minor | ||
"@ledgerhq/wallet-api-server": minor | ||
"@ledgerhq/wallet-api-core": minor | ||
--- | ||
|
||
feat: add bitcoin.getAddress and bitcoin.getPublicKey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { z } from "zod"; | ||
|
||
const schemaBitcoinGetAddressParams = z.object({ | ||
accountId: z.string(), | ||
derivationPath: z.string().optional(), | ||
}); | ||
|
||
const schemaBitcoinGetAddressResults = z.object({ | ||
address: z.string(), | ||
}); | ||
|
||
export const schemaBitcoinGetAddress = { | ||
params: schemaBitcoinGetAddressParams, | ||
result: schemaBitcoinGetAddressResults, | ||
}; | ||
|
||
export type BitcoinGetAddress = { | ||
params: z.infer<typeof schemaBitcoinGetAddressParams>; | ||
result: z.infer<typeof schemaBitcoinGetAddressResults>; | ||
}; | ||
|
||
export type BitcoinGetAddressHandler = ( | ||
params: BitcoinGetAddress["params"], | ||
) => BitcoinGetAddress["result"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { z } from "zod"; | ||
|
||
const schemaBitcoinGetPublicKeyParams = z.object({ | ||
accountId: z.string(), | ||
derivationPath: z.string().optional(), | ||
}); | ||
|
||
const schemaBitcoinGetPublicKeyResults = z.object({ | ||
publicKey: z.string(), | ||
}); | ||
|
||
export const schemaBitcoinGetPublicKey = { | ||
params: schemaBitcoinGetPublicKeyParams, | ||
result: schemaBitcoinGetPublicKeyResults, | ||
}; | ||
|
||
export type BitcoinGetPublicKey = { | ||
params: z.infer<typeof schemaBitcoinGetPublicKeyParams>; | ||
result: z.infer<typeof schemaBitcoinGetPublicKeyResults>; | ||
}; | ||
|
||
export type BitcoinGetPublicKeyHandler = ( | ||
params: BitcoinGetPublicKey["params"], | ||
) => BitcoinGetPublicKey["result"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.