Remove unused pubkeyTypes

This commit is contained in:
Simon Warta 2020-08-11 07:20:51 +02:00
parent 40ca197350
commit ae991d59b1
2 changed files with 1 additions and 4 deletions

View File

@ -37,7 +37,7 @@ export interface StdSignature {
}
export interface PubKey {
// type is one of the strings defined in pubkeyTypes
// type is one of the strings defined in pubkeyType
// I don't use a string literal union here as that makes trouble with json test data:
// https://github.com/CosmWasm/cosmjs/pull/44#pullrequestreview-353280504
readonly type: string;
@ -54,5 +54,3 @@ export const pubkeyType = {
/** @see https://github.com/tendermint/tendermint/blob/v0.33.0/crypto/sr25519/codec.go#L12 */
sr25519: "tendermint/PubKeySr25519" as const,
};
export const pubkeyTypes: readonly string[] = [pubkeyType.secp256k1, pubkeyType.ed25519, pubkeyType.sr25519];

View File

@ -36,4 +36,3 @@ export declare const pubkeyType: {
/** @see https://github.com/tendermint/tendermint/blob/v0.33.0/crypto/sr25519/codec.go#L12 */
sr25519: "tendermint/PubKeySr25519";
};
export declare const pubkeyTypes: readonly string[];