Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction sig verifier #101

Merged
merged 7 commits into from
Nov 14, 2022
Merged

Conversation

AdoAdoAdo
Copy link
Contributor

No description provided.

@AdoAdoAdo AdoAdoAdo self-assigned this Nov 11, 2022
@sstanculeanu sstanculeanu self-requested a review November 11, 2022 12:40
)

// SigVerifier defines the methods available for a signature verifier
type SigVerifier interface {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not really needed, builders.TxSigVerifier can be used instead

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

if tx == nil {
return ErrNilTransaction
}
if len(pk) == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add a second check for max len of pk?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will fail on verify, so I don't see a need.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, agree

sstanculeanu
sstanculeanu previously approved these changes Nov 11, 2022
dragos-rebegea
dragos-rebegea previously approved these changes Nov 14, 2022
@iulianpascalau iulianpascalau self-requested a review November 14, 2022 11:35
@@ -213,7 +213,7 @@ func transactionToNodeTransaction(tx *data.Transaction) (*transaction.Transactio
}, nil
}

func transactionToUnsignedTx(tx *data.Transaction) *data.Transaction {
func TransactionToUnsignedTx(tx *data.Transaction) *data.Transaction {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing comment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@AdoAdoAdo AdoAdoAdo merged commit fdece99 into feat/freeze-account Nov 14, 2022
@iulianpascalau iulianpascalau deleted the transaction-sig-verifier branch November 14, 2022 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants