-
Notifications
You must be signed in to change notification settings - Fork 68
dlog validator service: benchmark #1284 #1285
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
base: main
Are you sure you want to change the base?
Conversation
41d63af to
306516e
Compare
Signed-off-by: Angelo De Caro <[email protected]>
61b9a21 to
314caa9
Compare
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
| "github.com/hyperledger-labs/fabric-token-sdk/token/core/zkatdlog/nogh/v1/issue/mock" | ||
| v1 "github.com/hyperledger-labs/fabric-token-sdk/token/core/zkatdlog/nogh/v1/setup" | ||
| "github.com/hyperledger-labs/fabric-token-sdk/token/core/zkatdlog/nogh/v1/token" | ||
| benchmark2 "github.com/hyperledger-labs/fabric-token-sdk/token/services/benchmark" |
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.
there appears to be just one imported benachmark package left here - why isn't it just called "benchmark"?
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.
why are these keys in the git? wouldn't it be better to create them on the fly as part of the setup of the tests/benchmarks? e.g., that would make the git more stable when the structure of these keys change for some reason.
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.
what's the difference between the following?
token/core/zkatdlog/nogh/v1/transfer_test.go
token/core/zkatdlog/nogh/v1/transfer/transfer_test.go
|
|
||
| func TestValidator(t *testing.T) { | ||
| t.Run("Validator is called correctly with a non-anonymous issue action", func(t *testing.T) { | ||
| configurations, err := benchmark.NewSetupConfigurations("./../testdata", []uint64{testUseCase.Bits}, []math.CurveID{testUseCase.CurveID}) |
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.
looks like the following 4 lines of code are repeated in many tests here. Consider using some common getter.
Signed-off-by: Angelo De Caro <[email protected]>
This PR does the following: