mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Rename field to SignResponse.signed
This commit is contained in:
parent
fbd8bbce9c
commit
4733769f1a
@ -48,7 +48,7 @@ export class LedgerSigner implements OfflineSigner {
|
||||
const hdPath = this.hdPaths[accountIndex];
|
||||
const signature = await this.ledger.sign(message, hdPath);
|
||||
return {
|
||||
signedDoc: signDoc,
|
||||
signed: signDoc,
|
||||
signature: encodeSecp256k1Signature(accountForAddress.pubkey, signature),
|
||||
};
|
||||
}
|
||||
|
@ -263,7 +263,7 @@ export class Secp256k1Wallet implements OfflineSigner {
|
||||
const signature = await Secp256k1.createSignature(message, this.privkey);
|
||||
const signatureBytes = new Uint8Array([...signature.r(32), ...signature.s(32)]);
|
||||
return {
|
||||
signedDoc: signDoc,
|
||||
signed: signDoc,
|
||||
signature: encodeSecp256k1Signature(this.pubkey, signatureBytes),
|
||||
};
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ export interface SignResponse {
|
||||
* The sign doc that was signed.
|
||||
* This may be different from the input signDoc when the signer modifies it as part of the signing process.
|
||||
*/
|
||||
readonly signedDoc: StdSignDoc;
|
||||
readonly signed: StdSignDoc;
|
||||
readonly signature: StdSignature;
|
||||
}
|
||||
|
||||
|
2
packages/launchpad/types/signer.d.ts
vendored
2
packages/launchpad/types/signer.d.ts
vendored
@ -12,7 +12,7 @@ export interface SignResponse {
|
||||
* The sign doc that was signed.
|
||||
* This may be different from the input signDoc when the signer modifies it as part of the signing process.
|
||||
*/
|
||||
readonly signedDoc: StdSignDoc;
|
||||
readonly signed: StdSignDoc;
|
||||
readonly signature: StdSignature;
|
||||
}
|
||||
export interface OfflineSigner {
|
||||
|
Loading…
x
Reference in New Issue
Block a user