Skip to content

Commit

Permalink
fix: Remove time payload from the tx signature payload (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinoosss committed Apr 29, 2024
1 parent cf4f820 commit 708a96d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/wallet/types/sign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ export interface TxSignPayload {
msgs: any[];
// the transaction memo
memo: string;
// signature generation time
time: string;
}

export const Secp256k1PubKeyType = '/tm.PubKeySecp256k1';
5 changes: 0 additions & 5 deletions src/wallet/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,6 @@ export class Wallet {
await this.provider.getAccountSequence(address);
const publicKey: Uint8Array = await this.signer.getPublicKey();

// The timestamp for the signature needs to be set to "zero time"
// See https://github.com/gnolang/gno/issues/810
const defaultSigTimestamp = '0001-01-01T00:00:00Z';

// Create the signature payload
const signPayload: TxSignPayload = {
chain_id: chainID,
Expand All @@ -269,7 +265,6 @@ export class Wallet {
},
msgs: decodeTxMessages(tx.messages), // unrolled message objects
memo: tx.memo,
time: defaultSigTimestamp,
};

// The TM2 node does signature verification using
Expand Down

0 comments on commit 708a96d

Please sign in to comment.