New package: calculate ckBTC minter deposit addresses in Motoko

When converting BTC to ckBTC with the ckBTC minter the user needs to know his Bitcoin deposit address. It can be obtained by calling the get_deposit_address function of the ckBTC minter.

But the user can also be a canister. And in some cases the canister wants to get many deposit addresses for each of its users. In this scenario it is beneficial if the canister can calculate the Bitcoin deposit address itself without having to call the ckBTC miner each time. This is now possible with this new Motoko package: Mops • Motoko Package Manager

5 Likes

For reference: for an external user we have provided this npm package to do the same: @research-ag/ckbtc-address-js - npm

1 Like