Skip to content

Commit

Permalink
debug - 1
Browse files Browse the repository at this point in the history
  • Loading branch information
marino39 committed Feb 2, 2024
1 parent 6b83b53 commit 7053f3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions intents/intent.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,10 @@ func (intent *Intent) isValidSECP256R1Session(session string, signature string)

func (intent *Intent) isValidSignature(session string, signature string) bool {
if intent.isValidSECP256R1Session(session, signature) {
fmt.Println("isValidSignatureSECP256R1")
return intent.isValidSignatureSECP256R1(session, signature)
} else {
fmt.Println("isValidSignatureSECP256R1")
return intent.isValidSignatureSPECP256K1(session, signature)
}
}
Expand Down Expand Up @@ -166,6 +168,9 @@ func (intent *Intent) isValidSignatureSPECP256K1(session string, signature strin

// isValidSignatureSPECP256K1 checks if the signature is valid for the given secp256r1 session
func (intent *Intent) isValidSignatureSECP256R1(session string, signature string) bool {
fmt.Println("session: ", session)
fmt.Println("signature: ", signature)

// session
sessionBuff := common.FromHex(session[3:])

Expand Down

0 comments on commit 7053f3b

Please sign in to comment.