mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
proto-signing: Expose DirectSignResponse interface
Also make DirectSecp256k1HdWallet constructor protected
This commit is contained in:
parent
bd08cad70b
commit
2c89e4bacd
@ -12,6 +12,7 @@
|
|||||||
- @cosmjs/launchpad-ledger: `LedgerSigner.sign` method renamed `signAmino`.
|
- @cosmjs/launchpad-ledger: `LedgerSigner.sign` method renamed `signAmino`.
|
||||||
- @cosmjs/proto-signing: Add new package for handling transaction signing with
|
- @cosmjs/proto-signing: Add new package for handling transaction signing with
|
||||||
protobuf encoding.
|
protobuf encoding.
|
||||||
|
- @cosmjs/proto-signing: Expose `DirectSignResponse` interface.
|
||||||
- @cosmjs/stargate: Add new package for Cosmos SDK Stargate support.
|
- @cosmjs/stargate: Add new package for Cosmos SDK Stargate support.
|
||||||
- @cosmjs/tendermint-rpc: Make `Client.detectVersion` private and let it return
|
- @cosmjs/tendermint-rpc: Make `Client.detectVersion` private and let it return
|
||||||
a version instead of a client.
|
a version instead of a client.
|
||||||
|
@ -80,7 +80,7 @@ export class DirectSecp256k1HdWallet implements OfflineDirectSigner {
|
|||||||
private readonly pubkey: Uint8Array;
|
private readonly pubkey: Uint8Array;
|
||||||
private readonly privkey: Uint8Array;
|
private readonly privkey: Uint8Array;
|
||||||
|
|
||||||
private constructor(
|
protected constructor(
|
||||||
mnemonic: EnglishMnemonic,
|
mnemonic: EnglishMnemonic,
|
||||||
hdPath: HdPath,
|
hdPath: HdPath,
|
||||||
privkey: Uint8Array,
|
privkey: Uint8Array,
|
||||||
|
@ -4,5 +4,5 @@ export { EncodeObject, Registry } from "./registry";
|
|||||||
export { DirectSecp256k1HdWallet } from "./directsecp256k1hdwallet";
|
export { DirectSecp256k1HdWallet } from "./directsecp256k1hdwallet";
|
||||||
export { DirectSecp256k1Wallet } from "./directsecp256k1wallet";
|
export { DirectSecp256k1Wallet } from "./directsecp256k1wallet";
|
||||||
export { decodePubkey, encodePubkey } from "./pubkey";
|
export { decodePubkey, encodePubkey } from "./pubkey";
|
||||||
export { isOfflineDirectSigner, OfflineDirectSigner, OfflineSigner } from "./signer";
|
export { DirectSignResponse, isOfflineDirectSigner, OfflineDirectSigner, OfflineSigner } from "./signer";
|
||||||
export { makeAuthInfoBytes, makeSignBytes, makeSignDoc } from "./signing";
|
export { makeAuthInfoBytes, makeSignBytes, makeSignDoc } from "./signing";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { HdPath } from "@cosmjs/crypto";
|
import { EnglishMnemonic, HdPath } from "@cosmjs/crypto";
|
||||||
import { AccountData } from "@cosmjs/launchpad";
|
import { AccountData } from "@cosmjs/launchpad";
|
||||||
import { cosmos } from "./codec";
|
import { cosmos } from "./codec";
|
||||||
import { DirectSignResponse, OfflineDirectSigner } from "./signer";
|
import { DirectSignResponse, OfflineDirectSigner } from "./signer";
|
||||||
@ -31,7 +31,13 @@ export declare class DirectSecp256k1HdWallet implements OfflineDirectSigner {
|
|||||||
/** Derived data */
|
/** Derived data */
|
||||||
private readonly pubkey;
|
private readonly pubkey;
|
||||||
private readonly privkey;
|
private readonly privkey;
|
||||||
private constructor();
|
protected constructor(
|
||||||
|
mnemonic: EnglishMnemonic,
|
||||||
|
hdPath: HdPath,
|
||||||
|
privkey: Uint8Array,
|
||||||
|
pubkey: Uint8Array,
|
||||||
|
prefix: string,
|
||||||
|
);
|
||||||
get mnemonic(): string;
|
get mnemonic(): string;
|
||||||
private get address();
|
private get address();
|
||||||
getAccounts(): Promise<readonly AccountData[]>;
|
getAccounts(): Promise<readonly AccountData[]>;
|
||||||
|
2
packages/proto-signing/types/index.d.ts
vendored
2
packages/proto-signing/types/index.d.ts
vendored
@ -4,5 +4,5 @@ export { EncodeObject, Registry } from "./registry";
|
|||||||
export { DirectSecp256k1HdWallet } from "./directsecp256k1hdwallet";
|
export { DirectSecp256k1HdWallet } from "./directsecp256k1hdwallet";
|
||||||
export { DirectSecp256k1Wallet } from "./directsecp256k1wallet";
|
export { DirectSecp256k1Wallet } from "./directsecp256k1wallet";
|
||||||
export { decodePubkey, encodePubkey } from "./pubkey";
|
export { decodePubkey, encodePubkey } from "./pubkey";
|
||||||
export { isOfflineDirectSigner, OfflineDirectSigner, OfflineSigner } from "./signer";
|
export { DirectSignResponse, isOfflineDirectSigner, OfflineDirectSigner, OfflineSigner } from "./signer";
|
||||||
export { makeAuthInfoBytes, makeSignBytes, makeSignDoc } from "./signing";
|
export { makeAuthInfoBytes, makeSignBytes, makeSignDoc } from "./signing";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user