Remove rawSecp256k1PubkeyToAddress

This commit is contained in:
Simon Warta 2021-03-22 16:57:50 +01:00
parent 843b82badd
commit 42e2fdb32c
3 changed files with 3 additions and 7 deletions

View File

@ -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

View File

@ -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));
}

View File

@ -13,7 +13,6 @@ export {
import * as logs from "./logs";
export { logs };
export { rawSecp256k1PubkeyToAddress } from "./address";
export { Coin, coin, coins, parseCoins } from "./coins";
export {