-
Notifications
You must be signed in to change notification settings - Fork 238
SBSECP256K1ValidateKey builtin
#22415
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
SBSECP256K1ValidateKeyBool builtinSBSECP256K1ValidateKey builtin
| } | ||
| } | ||
|
|
||
| object SBSECP256K1BoolTest { |
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.
Moved to DERTestLib
|
|
||
| import java.math.BigInteger | ||
|
|
||
| object DERTestLib { |
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.
Copied from the object SBSECP256K1BoolTest - now shared across 2 crypto primitive builtin tests (as part of the interpreter-test-lib)
remyhaemmerle-da
left a 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.
Nice.
| case _: NoSuchProviderException => | ||
| crash("JCE Provider BouncyCastle not found") | ||
| case _: NoSuchAlgorithmException => | ||
| crash("BouncyCastle provider fails to support SECP256K1") |
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.
I would move the unexpected error last
| // Copyright (c) 2025 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| package com.digitalasset.daml.lf |
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.
maybe we could factorize with other test for crypto primitives.
SBSECP256K1ValidateKeybuiltinSBSECP256K1ValidateKeybuiltin