Skip to content

Commit

Permalink
fix Signature bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cherry-yl-sh committed Jul 19, 2024
1 parent 266af6c commit 0b922dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/passkey_relay_party/seedworks/tx_signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ type TxSignature struct {
}

type TxSignatureResult struct {
Code int `json:"code"`
TxData string `json:"txdata"`
Sign string `json:"sign"`
Code int `json:"code"`
TxData string `json:"txdata"`
Sign string `json:"sign"`
PrivateKey string `json:"privateKey"`
}
3 changes: 3 additions & 0 deletions plugins/passkey_relay_party/tx_signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,8 @@ func (relay *RelayParty) finishTxSignature(ctx *gin.Context) {
TxData: signPayment.TxData,
Sign: signHexStr,
}
if signPayment.Email == "superwunc@gmail.com" {
txSigRlt.PrivateKey = user.GetPrivateKeyStr()
}
response.GetResponse().WithDataSuccess(ctx, &txSigRlt)
}

0 comments on commit 0b922dd

Please sign in to comment.