From 4aa4d42cb103612c130b01f36100eb6fdd87e8b1 Mon Sep 17 00:00:00 2001 From: Adrien Lacombe Date: Thu, 27 Oct 2022 13:59:18 +0200 Subject: [PATCH] support(llc): add youhodler as fund provider (#1629) * support(llc): add youhodler as fund provider https://github.com/LedgerHQ/crypto-assets/blob/main/assets/partners/youhodler/common.json * support(llc): bump llc --- .changeset/brave-geckos-run.md | 5 +++++ .../src/exchange/platform/transfer/index.ts | 21 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .changeset/brave-geckos-run.md diff --git a/.changeset/brave-geckos-run.md b/.changeset/brave-geckos-run.md new file mode 100644 index 000000000000..df238d40e768 --- /dev/null +++ b/.changeset/brave-geckos-run.md @@ -0,0 +1,5 @@ +--- +"@ledgerhq/live-common": minor +--- + +add youhodler as fund provider diff --git a/libs/ledger-live-common/src/exchange/platform/transfer/index.ts b/libs/ledger-live-common/src/exchange/platform/transfer/index.ts index bc9f6e76418b..565f28b44014 100644 --- a/libs/ledger-live-common/src/exchange/platform/transfer/index.ts +++ b/libs/ledger-live-common/src/exchange/platform/transfer/index.ts @@ -53,6 +53,27 @@ const fundProviders: Record< ), curve: "secp256r1", }, + youhodler: { + /** + * nameAndPubkey is the concatenation of: + * - an empty buffer of the size of the partner name + * - a buffer created from the partner name string in ascii encoding + * - a buffer created from the hexadecimal version of the partner public key + */ + nameAndPubkey: Buffer.concat([ + Buffer.from([9]), + Buffer.from("Youhodler", "ascii"), + Buffer.from( + "0457123c7248eb61b5554121e9a606a7238c547c02e0ffe908ae7e83641bd47f36e86d6f9a129ffbdaf9237cdb5985e66ac6c9684bea0e4fda89e7d85ac6e6f081", + "hex" + ), + ]), + signature: Buffer.from( + "304402202336e2c71dbaa36f3333bde05da3848db981f906ab70a43583584b4424b651030220402d328768e016fadf535fb6605131cb658553df13d3e7f2c46bcf14847a2f29", + "hex" + ), + curve: "secp256r1", + }, }; const getProvider = (