mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Remove rawSecp256k1PubkeyToAddress
This commit is contained in:
parent
843b82badd
commit
42e2fdb32c
@ -49,6 +49,9 @@ and this project adheres to
|
|||||||
`blockIdFlag` is `BlockIdFlag.Absent`. The decoding into `CommitSignature` is
|
`blockIdFlag` is `BlockIdFlag.Absent`. The decoding into `CommitSignature` is
|
||||||
only updated for the class `Tendermint34Client`, not for `Client`. Please
|
only updated for the class `Tendermint34Client`, not for `Client`. Please
|
||||||
migrate to the former.
|
migrate to the former.
|
||||||
|
- @cosmjs/launchpad: `rawSecp256k1PubkeyToAddress` was removed. Instead use
|
||||||
|
`Bech32.encode(prefix, rawSecp256k1PubkeyToRawAddress(pubkeyRaw))` with
|
||||||
|
`rawSecp256k1PubkeyToRawAddress` from @cosmjs/amino.
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
|
|
||||||
|
@ -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));
|
|
||||||
}
|
|
@ -13,7 +13,6 @@ export {
|
|||||||
import * as logs from "./logs";
|
import * as logs from "./logs";
|
||||||
export { logs };
|
export { logs };
|
||||||
|
|
||||||
export { rawSecp256k1PubkeyToAddress } from "./address";
|
|
||||||
export { Coin, coin, coins, parseCoins } from "./coins";
|
export { Coin, coin, coins, parseCoins } from "./coins";
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user