Skip to content

Commit 268494c

Browse files
committed
chore: fixing some rebase issues
1 parent 3836d76 commit 268494c

File tree

3 files changed

+30
-321
lines changed

3 files changed

+30
-321
lines changed

yarn-project/aztec.js/src/account/entrypoint/auth_witness_account_entrypoint.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class AuthWitnessAccountEntrypoint implements IAuthWitnessAccountEntrypoi
6666
return this.signer.constructSignature(message, this.privateKey).toBuffer();
6767
}
6868

69-
async createAuthWitness(message: Buffer, _opts?: CreateTxRequestOpts): Promise<Fr[]> {
69+
async createAuthWitness(message: Buffer): Promise<Fr[]> {
7070
const signature = this.sign(message);
7171
const publicKey = await generatePublicKey(this.privateKey);
7272

yarn-project/aztec.js/src/aztec_rpc_client/wallet.ts

+2-13
Original file line numberDiff line numberDiff line change
@@ -153,19 +153,8 @@ export class AuthWitnessEntrypointWallet extends BaseWallet {
153153
* @param messageHash - The message hash to sign
154154
* @param opts - The options.
155155
*/
156-
async signAndGetAuthWitness(messageHash: Buffer, opts: CreateTxRequestOpts = {}): Promise<Fr[]> {
157-
return await this.accountImpl.createAuthWitness(messageHash, opts);
158-
}
159-
160-
/**
161-
* Signs the `messageHash` and adds the witness to the RPC.
162-
* This is useful for signing messages that are not directly part of the transaction payload, such as
163-
* approvals .
164-
* @param messageHash - The message hash to sign
165-
* @param opts - The options.
166-
*/
167-
async signAndAddAuthWitness(messageHash: Buffer, opts: CreateTxRequestOpts = {}): Promise<void> {
168-
const witness = await this.accountImpl.createAuthWitness(messageHash, opts);
156+
async signAndAddAuthWitness(messageHash: Buffer): Promise<void> {
157+
const witness = await this.accountImpl.createAuthWitness(messageHash);
169158
await this.rpc.addAuthWitness(Fr.fromBuffer(messageHash), witness);
170159
return Promise.resolve();
171160
}

0 commit comments

Comments
 (0)