Skip to content

Conversation

@carlpulley-da
Copy link
Contributor

@carlpulley-da carlpulley-da commented Nov 24, 2025

  • implement SBSECP256K1ValidateKey builtin
  • testing for SBSECP256K1ValidateKey builtin

@carlpulley-da carlpulley-da self-assigned this Nov 24, 2025
@carlpulley-da carlpulley-da changed the title SBSECP256K1ValidateKeyBool builtin SBSECP256K1ValidateKey builtin Nov 25, 2025
@carlpulley-da carlpulley-da marked this pull request as ready for review November 25, 2025 11:55
@carlpulley-da carlpulley-da requested a review from a team November 25, 2025 11:55
@carlpulley-da carlpulley-da changed the base branch from main to cjp/issue-29484 November 26, 2025 09:26
}
}

object SBSECP256K1BoolTest {
Copy link
Contributor Author

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 {
Copy link
Contributor Author

@carlpulley-da carlpulley-da Nov 26, 2025

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)

Copy link
Collaborator

@remyhaemmerle-da remyhaemmerle-da left a comment

Choose a reason for hiding this comment

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

Nice.

Comment on lines +834 to +837
case _: NoSuchProviderException =>
crash("JCE Provider BouncyCastle not found")
case _: NoSuchAlgorithmException =>
crash("BouncyCastle provider fails to support SECP256K1")
Copy link
Collaborator

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
Copy link
Collaborator

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.

Base automatically changed from cjp/issue-29484 to main December 8, 2025 17:36
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.

2 participants