diff --git a/CHANGELOG.md b/CHANGELOG.md index 660720ec..da09a6b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,9 @@ and this project adheres to `blockIdFlag` is `BlockIdFlag.Absent`. The decoding into `CommitSignature` is only updated for the class `Tendermint34Client`, not for `Client`. Please migrate to the former. +- @cosmjs/launchpad: `rawSecp256k1PubkeyToAddress` was removed. Instead use + `Bech32.encode(prefix, rawSecp256k1PubkeyToRawAddress(pubkeyRaw))` with + `rawSecp256k1PubkeyToRawAddress` from @cosmjs/amino. ### Deprecated diff --git a/packages/launchpad/src/address.ts b/packages/launchpad/src/address.ts deleted file mode 100644 index 97af9b74..00000000 --- a/packages/launchpad/src/address.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { rawSecp256k1PubkeyToRawAddress } from "@cosmjs/amino"; -import { Bech32 } from "@cosmjs/encoding"; - -export function rawSecp256k1PubkeyToAddress(pubkeyRaw: Uint8Array, prefix: string): string { - return Bech32.encode(prefix, rawSecp256k1PubkeyToRawAddress(pubkeyRaw)); -} diff --git a/packages/launchpad/src/index.ts b/packages/launchpad/src/index.ts index e5db48ee..11da4d29 100644 --- a/packages/launchpad/src/index.ts +++ b/packages/launchpad/src/index.ts @@ -13,7 +13,6 @@ export { import * as logs from "./logs"; export { logs }; -export { rawSecp256k1PubkeyToAddress } from "./address"; export { Coin, coin, coins, parseCoins } from "./coins"; export {