-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
txcheck/sigcheck.go
Outdated
) | ||
|
||
// SigVerifier defines the methods available for a signature verifier | ||
type SigVerifier interface { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, agree
@@ -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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
4a11eee
No description provided.