Rename field to SignResponse.signed

This commit is contained in:
Simon Warta
2020-09-24 13:54:14 +02:00
parent fbd8bbce9c
commit 4733769f1a
4 changed files with 4 additions and 4 deletions
@@ -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),
};
}
+1 -1
View File
@@ -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),
};
}
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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 {