Skip to content

secp256k1: Support go generate w/o removing file.#2884

Merged
davecgh merged 1 commit intodecred:masterfrom
davecgh:secp256k1_clean_generate
Mar 2, 2022
Merged

secp256k1: Support go generate w/o removing file.#2884
davecgh merged 1 commit intodecred:masterfrom
davecgh:secp256k1_clean_generate

Conversation

@davecgh
Copy link
Copy Markdown
Member

@davecgh davecgh commented Feb 23, 2022

This modifies the logic that deals with generating, loading, and decompressing the compressed byte points to allow go generate to run correctly regardless of whether or not the generated file already exists.

It accomplishes this by making use of a function to obtain the compressed byte points string instead of directly referencing the
variable such that the function is nil by default and only set to the real function via the generated file.

@davecgh davecgh added this to the 1.8.0 milestone Feb 23, 2022
This modifies the logic that deals with generating, loading, and
decompressing the compressed byte points to allow go generate to run
correctly regardless of whether or not the generated file already
exists.

It accomplishes this by making use of a function to obtain the
compressed byte points string instead of directly referencing the
variable such that the function is nil by default and only set to the
real function via the generated file.
@davecgh davecgh force-pushed the secp256k1_clean_generate branch from 8f4537c to 64b67b0 Compare February 23, 2022 07:21
Copy link
Copy Markdown
Member

@matheusd matheusd left a comment

Choose a reason for hiding this comment

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

Tested both with and without the compressedbytepoints.go file present.

@davecgh davecgh merged commit 64b67b0 into decred:master Mar 2, 2022
@davecgh davecgh deleted the secp256k1_clean_generate branch March 2, 2022 04:03
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.

6 participants